# Yet other SMTP 587 port email various errors

**URL:** <https://meta.discourse.org/t/yet-other-smtp-587-port-email-various-errors/264267>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [May 8, 2023, 2:07pm UTC](https://meta.discourse.org/t/yet-other-smtp-587-port-email-various-errors/264267 "2023-05-08T14:07:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Hyan](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@Hyan](https://meta.discourse.org/u/Hyan)\
**Post date:** [May 8, 2023, 2:07pm UTC](https://meta.discourse.org/t/yet-other-smtp-587-port-email-various-errors/264267/1 "2023-05-08T14:07:40Z")

</div>

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 peeraddr=xxx.xxx.xxx.xxx:587 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`

---

_[View the full topic](https://meta.discourse.org/t/yet-other-smtp-587-port-email-various-errors/264267)._
