Debugging an email problem with Discourse


I can't ask this question on the Discourse forum because I installed the Bitnami stack into my Docker container and the Docker people won't answer questions if you don't use their container - so I thought there might be some Rubyists who have had some experience with Discourse or at least might be interested enough to help me debug this problem (I am assuming it is Ruby-related).

I have the container working fine here:

BUT . . emails aren't working . .

Installing into a Docker container was sort of an exercise but I if I can sort out this last problem, I can actually make use of the install - and doing a Bitnami install is MUCH nicer than the standard install!.

I can send emails to the host with telnet and swaks but not with Discourse - settings:

Delivery Method
port 2525
authentication plain
enable_starttls_auto false

gives: "There was a problem sending the test email. Please double-check your mail settings, verify that your host is not blocking mail connections, and try again."

BUT swaks actually works giving:

# swaks --to --server -p 2525
=== Trying
=== Connected to
<- 220 ESMTP
  -> EHLO forum
<- 250-8BITMIME
<- 250-SIZE 0
  -> MAIL FROM:<root@forum>
<- 250 ok
  -> RCPT TO:<>
<- 250 ok
  -> DATA
<- 354 go ahead
  -> Date: Mon, 04 Jun 2018 04:12:01 +0000
  -> To:
  -> From: root@forum
  -> Subject: test Mon, 04 Jun 2018 04:12:01 +0000
  -> Message-Id: <20180604041201.023991@forum>
  -> X-Mailer: swaks v20170101.0
  -> This is a test mailing
  -> .
<- 250 ok 1528085521 qp 28575
  -> QUIT
<- 221
=== Connection closed with remote host.

and the mail is actually delivered - I've tried lots of permutations of the Discourse config but can't see what is wrong. Any helpful suggestions appreciated!



Philip Rhoades

PO Box 896
Cowra NSW 2794