# Net::SMTPAuthenticationError devido ao servidor mailgun errado

**URL:** https://meta.discourse.org/t/net-smtpauthenticationerror-due-to-wrong-mailgun-server/278420
**Category:** Self-hosting
**Tags:** email
**Created:** [Setembro 9, 2023, 3:23pm UTC](https://meta.discourse.org/t/net-smtpauthenticationerror-due-to-wrong-mailgun-server/278420 "2023-09-09T15:23:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hostingpeep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hostingpeep/32/325514_2.png) [@hostingpeep](https://meta.discourse.org/u/hostingpeep)
#### Post date: [Setembro 9, 2023, 3:23pm UTC](https://meta.discourse.org/t/net-smtpauthenticationerror-due-to-wrong-mailgun-server/278420/1 "2023-09-09T15:23:22Z")

</div>

Olá Comunidade! Após instalar o Discourse, estou com dificuldades na configuração de e-mail. Fiz a configuração necessária com o Mailgun. Enviar e-mail para [admin@domain.com](mailto:admin@domain.com) do meu [mail.google.com](http://mail.google.com) (gmail normal) está funcionando bem. Mas quando o uso com a configuração do app.yml, recebo o seguinte erro e não recebo e-mail. É o primeiro e-mail, não consigo me inscrever no meu fórum.

**Acho que é devido à autenticação simples. Li isso em um dos tópicos. Mas não sei a solução.**

Discourse doctor:

 ![](https://global.discourse-cdn.com/meta/original/4X/6/a/3/6a35caf06e98bef747acd202c4d54732e2446900.png)  
app.yml  
 ![](https://global.discourse-cdn.com/meta/original/4X/6/2/7/6276b7a747410aca3e7816d0d2778e1275b881fe.png)  
Dei uma olhada em outros tópicos de smtp sobre este problema.

- [UNEXPECTED ERROR Net::SMTPAuthenticationError](https://meta.discourse.org/t/unexpected-error-net-smtpauthenticationerror/236424)
- [Port 443 of computer does not appear to be accessible using](https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible-using/160267)
- [Unable to send mails using Discourse](https://meta.discourse.org/t/unable-to-send-mails-using-discourse/51296)
- [Cannot send email - problem with port 465 - #9 by RGJ](https://meta.discourse.org/t/cannot-send-email-problem-with-port-465/246004/9)
- [Yet other SMTP 587 port email various errors](https://meta.discourse.org/t/yet-other-smtp-587-port-email-various-errors/264267)
- [Smtp doctor test using port 465 even though its configured to use 2525 - #11 by Bryan\_Joseph](https://meta.discourse.org/t/smtp-doctor-test-using-port-465-even-though-its-configured-to-use-2525/238372/11)

Obrigado pelo seu tempo e suporte.

---

<div class="post-metadata">

### Author: ![hostingpeep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hostingpeep/32/325514_2.png) [@hostingpeep](https://meta.discourse.org/u/hostingpeep)
#### Post date: [Setembro 9, 2023, 5:50pm UTC](https://meta.discourse.org/t/net-smtpauthenticationerror-due-to-wrong-mailgun-server/278420/2 "2023-09-09T17:50:28Z")

</div>

Ok, encontrei a solução. Eu estava usando o servidor US do Mailgun, mas na verdade é EU. Então foi um erro.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [Setembro 9, 2023, 6:41pm UTC](https://meta.discourse.org/t/net-smtpauthenticationerror-due-to-wrong-mailgun-server/278420/3 "2023-09-09T18:41:48Z")

</div>

Eu também fiquei preso nesse!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Outubro 9, 2023, 6:41pm UTC](https://meta.discourse.org/t/net-smtpauthenticationerror-due-to-wrong-mailgun-server/278420/4 "2023-10-09T18:41:52Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
