# בעיית SMTP עם Amazon SES

**URL:** <https://meta.discourse.org/t/smtp-problem-with-amazon-ses/273575>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [2 באוגוסט,‏ 2023,‏ 12:37am UTC](https://meta.discourse.org/t/smtp-problem-with-amazon-ses/273575 "2023-08-02T00:37:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_王](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_%E7%8E%8B/32/318340_2.png) [@Alex\_王](https://meta.discourse.org/u/Alex_%E7%8E%8B)\
**Post date:** [2 באוגוסט,‏ 2023,‏ 12:37am UTC](https://meta.discourse.org/t/smtp-problem-with-amazon-ses/273575/1 "2023-08-02T00:37:30Z")

</div>

I use AWS EC2 and AWS SES to host my discourse. However after trying half a day I cannot let the SMTP work.  
I have follow the

> [@Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshoot-email-on-a-new-discourse-install/16326):
>
> You just installed Discourse via [the install guide](https://github.com/discourse/discourse/blob/main/docs/INSTALL.md), but email doesn’t seem to work. Unfortunately this means you can’t log in as an admin to finalize the install. cry Let’s troubleshootize! Try the doctor woman_health_workerIf you run ./discourse-doctor it will check several ways that your mail configuration might be broken, and offer advice. Try that first. Did you enter email settings correctly? The simplest way is to run ./discourse-setup again. Did you enter everything correctly? B…

I got  
 ![image](https://global.discourse-cdn.com/meta/original/4X/d/f/2/df2ab56fcfcee8a837b1fdc8f74e48c9be067971.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/5/c/b5c20c19f6bbeefbca9c375259aedc1664c32ba6.png)  
but my email ([wangziyu0917@gmail.com](mailto:wangziyu0917@gmail.com)) cannot receive the verify email.  
and the log sometimes says “Job exception: Net::SMTPAuthenticationError”  
I dont know why I am sure the SMTP username and passwords are correct.  
And I tried this:  
[Testing your connection to the Amazon SES SMTP interface using the command line - Amazon Simple Email Service](https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp-client-command-line.html)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/6/1/a/61a6bdf65769962d8ae71bf6fbcbff28ec5b2afd.png)

currently my AWS SES is in sandbox, but I verified my email([wangziyu0917@gmail.com](mailto:wangziyu0917@gmail.com))

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/a/8/7a8a249da0c82959891fe9729eb04953860d05b9.png)

HELP ME PLEASE 😭

---

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2 באוגוסט,‏ 2023,‏ 12:45am UTC](https://meta.discourse.org/t/smtp-problem-with-amazon-ses/273575/2 "2023-08-02T00:45:07Z")

</div>

you may want to have a look at these topics:

> [@Troubleshooting Amazon AWS SES sending email via SMTP](https://meta.discourse.org/t/troubleshooting-amazon-aws-ses-sending-email-via-smtp/163100):
>
> I’m having trouble moving from SendGrid to Amazon SES. Could someone kindly share their settings from app.yml or confirm mine are correct? ## TODO: The SMTP mail server used to validate new accounts and send notifications DISCOURSE\_SMTP\_ADDRESS: email-smtp.eu-west-2.amazonaws.com DISCOURSE\_SMTP\_PORT: 587 DISCOURSE\_SMTP\_USER\_NAME: xxxxxxx DISCOURSE\_SMTP\_PASSWORD: "xxxxxxxxxx" DISCOURSE\_SMTP\_ENABLE\_START\_TLS: true # (optional, default true) DISCOURSE\_SMTP\_AUTHENTICATION: …

> [@Sending emails with SMTP credentials using Amazon SES works… But not from Discourse](https://meta.discourse.org/t/sending-emails-with-smtp-credentials-using-amazon-ses-works-but-not-from-discourse/233795):
>
> I’ve configured Amazon SES. I’m out of the sandbox, which means I can send emails to unverified addresses. From [Amazon SES doc](https://docs.aws.amazon.com/ses/latest/dg/request-production-access.html): When your account is out of the sandbox, you can send email to any recipient, regardless of whether the recipient’s address or domain is verified. However, you still have to verify all identities that you use as “From”, “Source”, “Sender”, or “Return-Path” addresses… I’ve also configured my SMTP credentials. Sending a test email to an unverified recipient email w…

---

<div class="post-metadata">

**Author:** ![Alex\_王](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_%E7%8E%8B/32/318340_2.png) [@Alex\_王](https://meta.discourse.org/u/Alex_%E7%8E%8B)\
**Post date:** [2 באוגוסט,‏ 2023,‏ 12:49am UTC](https://meta.discourse.org/t/smtp-problem-with-amazon-ses/273575/3 "2023-08-02T00:49:58Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/f/2/2/f2291c12edf6db820947b0448dcdd941b0824939.png)  
This is the latest log when I attempt to register

---

<div class="post-metadata">

**Author:** ![Alex\_王](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_%E7%8E%8B/32/318340_2.png) [@Alex\_王](https://meta.discourse.org/u/Alex_%E7%8E%8B)\
**Post date:** [2 באוגוסט,‏ 2023,‏ 12:50am UTC](https://meta.discourse.org/t/smtp-problem-with-amazon-ses/273575/4 "2023-08-02T00:50:37Z")

</div>

THANKS but I have check these, I dont think these can help

---

<div class="post-metadata">

**Author:** ![Alex\_王](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_%E7%8E%8B/32/318340_2.png) [@Alex\_王](https://meta.discourse.org/u/Alex_%E7%8E%8B)\
**Post date:** [2 באוגוסט,‏ 2023,‏ 12:59am UTC](https://meta.discourse.org/t/smtp-problem-with-amazon-ses/273575/5 "2023-08-02T00:59:47Z")

</div>

OMG I solved it, I need to add my domain ([www.aoxodo.com](http://www.aoxodo.com)) to the ses, cause it is using this domain to send email
