Tried to setup discourse and have issue with email setup.
I have mail.mydomain.com connected to a mail server configured in NAS with host name
I can send/receive mail firstname.lastname@example.org from thunderbird
So I setup discourse app.yml as below
DISCOURSE_SMTP_ADDRESS: smtp.myquickid.synology.me DISCOURSE_SMTP_PORT: 587 DISCOURSE_SMTP_USER_NAME: email@example.com DISCOURSE_SMTP_PASSWORD: "plainpassword!" DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true) #DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
Since I have issue with certificate, I set TLS to false however mail can’t be sent
$ tail /var/discourse/shared/standalone/log/rails/production.log shows .... Sent mail to firstname.lastname@example.org (30.1ms) Job exception: 530 5.7.0 Must issue a STARTTLS command first
I think this is caused by setting TLS to false.
Also setting the port 25 gives same thing.
I did check both
$ telnet smtp.myquickid.synology.me 25 $ telnet smtp.myquickid.synology.me 587
all work fine.
How to solve this problem?