Unable to send email

telnet smtp.mydomain 587

Trying IP..
Connected to smtp.mydomain.com.
Escape character is '^]'.
220 smtp.mydomain.com ESMTP

i rebuilt countless time and i am able to successfully send email with the online test site

the issue is that discourse doesnt send any email at all, for registering or resetting password


theres no logs in
skipped, bounced, received and rejected

i already read that and it still doesnt work. i use mail tester and that works fine, no port are blocked

Started POST "/session/forgot_password" for 162.158.134.56 at 2020-07-22 15:59:02 +0000
Processing by SessionController#forgot_password as */*
  Parameters: {"login"=>"mail@gmail.com"}
Completed 200 OK in 20ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 5382)

im hosting my own mailserver and sending emails works fine from roundcube. only issue is that discourse cant send any email at all and theres no logs that show errors or issues

my maildomain is not ip. its based on name

did you try and put DISCOURSE_SMTP_ENABLE_START_TLS as false ?

1 Like

yes, didnt work…

did you un-comment this line found at the bottom of the app.yml file

- exec: rails r "SiteSetting.notification_email='web@example.com'"

yes, its also in app.yml, uncommented