# SMTP do not work

**URL:** https://meta.discourse.org/t/smtp-do-not-work/184884
**Category:** Self-hosting
**Created:** [March 30, 2021, 6:34pm UTC](https://meta.discourse.org/t/smtp-do-not-work/184884 "2021-03-30T18:34:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Wolf\_TMB](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Wolf\_TMB](https://meta.discourse.org/u/Wolf_TMB)
#### Post date: [March 30, 2021, 6:34pm UTC](https://meta.discourse.org/t/smtp-do-not-work/184884/1 "2021-03-30T18:34:17Z")

</div>

I use SMTP beget, via telnet emails are sent, but discourse can’t send the email.  
Ports tried 25, 2525, 465 (587 - not supported)  
SMTP user - [admin@DOMAIN.com](mailto:admin@DOMAIN.com)  
What could be the reason?

Log:  
Creating scope :open. Overwriting existing method Poll.open.  
Rendering layouts/email\_template.html.erb  
Rendered layouts/email\_template.html.erb (Duration: 1.2ms | Allocations: 30)  
Delivered mail [576bff71-b5c9-434c-ab08-3ee0bcbd7920@forum.DOMAIN.com](mailto:576bff71-b5c9-434c-ab08-3ee0bcbd7920@forum.DOMAIN.com) (69.7ms)  
Job exception: 504 PLAIN authentication mechanism not supported

---

<div class="post-metadata">

### Author: ![Wolf\_TMB](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Wolf\_TMB](https://meta.discourse.org/u/Wolf_TMB)
#### Post date: [April 3, 2021, 5:31pm UTC](https://meta.discourse.org/t/smtp-do-not-work/184884/2 "2021-04-03T17:31:49Z")

</div>

Help me please, I’m sad ☹

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [April 3, 2021, 7:01pm UTC](https://meta.discourse.org/t/smtp-do-not-work/184884/3 "2021-04-03T19:01:36Z")

</div>

Try this

> [@SMTP connection problem, docker installation](https://meta.discourse.org/t/smtp-connection-problem-docker-installation/41981/3):
>
> If you use [discourse\_docker](https://github.com/discourse/discourse_docker), try setting this in your app.yml: DISCOURSE\_SMTP\_AUTHENTICATION: login If you don’t use docker, try setting this in your discourse.conf: smtp\_authentication = login By default, Discourse uses plain authentication (which is not what MS Exchange expects):

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [April 3, 2021, 7:58pm UTC](https://meta.discourse.org/t/smtp-do-not-work/184884/4 "2021-04-03T19:58:10Z")

</div>

And this: [Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326)
