Yet other SMTP 587 port email various errors

Different SMTP servers may occur different errors even with 587 port if testing with ./discourse-doctor

  1. TLS and STARTTLS are mutually exclusive
    This error has never mentioned in meta so far, you should set explicitly DISCOURSE_SMTP_FORCE_TLS: false otherwise it contradicts DISCOURSE_SMTP_ENABLE_START_TLS, as it is true by default. This may not always the case, but it’s worth a try.

  2. SSL_connect returned=1 errno=0 state=error: wrong version number
    Again, set DISCOURSE_SMTP_FORCE_TLS: false resolves the issue

  3. Net::SMTPAuthenticationError this can be caused by wrong username password of your credentials you set or can be resolved by setting DISCOURSE_SMTP_AUTHENTICATION: login

1 Like

For Mailgun, on an fresh install i had to do:


./discourse-doctor was reporting:

======================================== ERROR ========================================
                                    UNEXPECTED ERROR


the whole troubleshoot document Troubleshoot email on a new Discourse install - documentation / sysadmin - Discourse Meta didn’t solve my issue.

Found this thread about amending it that would have helped me: Cannot send email - problem with port 465 - installation - Discourse Meta

Then found this Yet Another thread you posted that showed some flips for me to do.

1 Like