# E-Mails to Office 365 mailboxes are not delivered when using Amazon Simple Mail Service (SES)

**URL:** <https://community.auth0.com/t/e-mails-to-office-365-mailboxes-are-not-delivered-when-using-amazon-simple-mail-service-ses/82519>\
**Category:** Get Help\
**Tags:** email, aws, verification-email\
**Created:** [April 28, 2022, 2:50am UTC](https://community.auth0.com/t/e-mails-to-office-365-mailboxes-are-not-delivered-when-using-amazon-simple-mail-service-ses/82519 "2022-04-28T02:50:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.schnyder](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/michael.schnyder/32/36947_2.png) [@michael.schnyder](https://community.auth0.com/u/michael.schnyder)\
**Post date:** [April 28, 2022, 2:50am UTC](https://community.auth0.com/t/e-mails-to-office-365-mailboxes-are-not-delivered-when-using-amazon-simple-mail-service-ses/82519/1 "2022-04-28T02:50:16Z")

</div>

Dear Community

I’m maintaining 4 tenants, and have setup the E-Mail provider as documented. For all 4 tenants I have tested sending the test email after the configuration. For all of them the test mail has been successfully delivered to my Office 365 managed E-Mail box.

How ever, here it gets strange… For two of the four tenants, the E-Mail sending for password recovery does not work for Office 365 accounts. It works for [outlook.com](http://outlook.com), but not for Office365.

For both tenants, I see in the log, that the E-Mail has been triggered, but still it is not delivered. AWS does not show any abnormalities - which is expected as other E-Mail addresses work.

I read here in the forum that other people had similar issues. For some it got resolved by deleting the tenant, for others, a configuration change was required I suppose.

I have tested various E-Mail from addresses to send E-Mails. There is no restriction on the SMTP server on what to use. Currently the sender E-Mail for both the tests and the actual E-Mail is the same, but no luck.

These are two log ids where it does not work (two different tenants)

- 90020220428024210466925003786495861006985174998254092290
- 90020220427152559373924908218593518600164496958413602818

Appreciate any help on this challenge.

Similar posts

- [Verification Email not being delivered - Auth0 Community](https://community.auth0.com/t/verification-email-not-being-delivered/76030)
- [Issue with password reset mail not being sent - Auth0 Community](https://community.auth0.com/t/issue-with-password-reset-mail-not-being-sent/8280/5)  
—\> I’m checking this right now, but hope this bug is not there anymore.

-Michael

---

<div class="post-metadata">

**Author:** ![michael.schnyder](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/michael.schnyder/32/36947_2.png) [@michael.schnyder](https://community.auth0.com/u/michael.schnyder)\
**Post date:** [April 29, 2022, 9:25am UTC](https://community.auth0.com/t/e-mails-to-office-365-mailboxes-are-not-delivered-when-using-amazon-simple-mail-service-ses/82519/2 "2022-04-29T09:25:23Z")

</div>

Just tried the second option, and disabled and re-enabled the template `reset_email` and tested again on the admin UI

Its still the same. Below you see the two log records on one of the tenants where it did not work.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/8/1/81d4540e28ab0adfab902acfc09e2ebad45d06de.png)

From the two log records. One works which is a [outlook.com](http://outlook.com) address, the other one does not work which is an Office365 address.

Still on SES, there is no problem, and other applications can successfully send messages to the Office 365 application. Still two other, exactly same configured tenants still work with the exact same Office 365 mailbox.

Is there anyone that can help here? If we cannot get this running in due time, we would have to move to another provider.

-Michael

---

<div class="post-metadata">

**Author:** ![michael.schnyder](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/michael.schnyder/32/36947_2.png) [@michael.schnyder](https://community.auth0.com/u/michael.schnyder)\
**Post date:** [April 29, 2022, 9:32am UTC](https://community.auth0.com/t/e-mails-to-office-365-mailboxes-are-not-delivered-when-using-amazon-simple-mail-service-ses/82519/3 "2022-04-29T09:32:04Z")

</div>

I don’t really know what to do next, may I have some attention from @konrad.sopala or @dan.woda

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 29, 2022, 2:53pm UTC](https://community.auth0.com/t/e-mails-to-office-365-mailboxes-are-not-delivered-when-using-amazon-simple-mail-service-ses/82519/4 "2022-04-29T14:53:00Z")

</div>

Hi @michael.schnyder,

Welcome to the Auth0 Community!

A couple of housekeeping items; If you reply to your own thread, it knocks it out of the unanswered queue. Try the _edit_ function if you need to add info to your post.

Additionally, if you need urgent/time-sensitive support, all of our paid plans include dedicated support. No need to @mention our team directly, please be patient while we get to your topic!

As for your issue:

If it is working for one email client, but not another, that would suggest the client is the source of the issue. Are the emails making it to SES? This would confirm that suspicion.

Have you looked to see if the emails are being quarantined?

> **[Find and release quarantined messages as a user](https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/quarantine-end-user?view=o365-worldwide)**
>
> Users can learn how to view and manage quarantined messages in Exchange Online Protection (EOP) that should have been delivered to them.

> [@Office 365 identifying default Auth0 email templates as phishing. On multiple tenants](https://community.auth0.com/t/office-365-identifying-default-auth0-email-templates-as-phishing-on-multiple-tenants/51517):
>
> No matter what changes I make. It seems like all of my Auth0 outbound emails are going into quarantine for Office365 users. Sendgrid and Mandrill will both show the mail as delivered but it gets stopped at the Office365 server and sent to quarantine for “High Confidence Phishing” Even using default Auth0 email templates and different email providers(sendgrid and mandrill). Emails are going into quarantine for what seems like only office 365 users. I could be wrong though. Ive reached out to mi…

---

<div class="post-metadata">

**Author:** ![michael.schnyder](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/michael.schnyder/32/36947_2.png) [@michael.schnyder](https://community.auth0.com/u/michael.schnyder)\
**Post date:** [May 9, 2022, 8:43am UTC](https://community.auth0.com/t/e-mails-to-office-365-mailboxes-are-not-delivered-when-using-amazon-simple-mail-service-ses/82519/5 "2022-05-09T08:43:28Z")

</div>

Thank you very much! I was off for a week, hence the delay.

Apologies for tagging, and completely agreed that the community version has no guaranteed support. I’m helping a startup to launch their product and before we commit to a service, we want to make sure that everything works.

The link you posted was very helpful. Turns out that the mails sent from the production and test instance (as we call it, i.e. tenants) are being blocked by O365.

Interestingly that does not happen with the other two environments (tenants) that we have. So by now i have three tenants (Local, Dev and Test) that all use the same configuration when sending E-Mails, but only two of them work: Local and Dev.

Do you know other cases where someone was able to track down what triggers the mail of becoming Phishing?

**Update** : I did run some testing with the two tenants that connect to the same AWS Region to send out mails.

- **Tenant 1** (Dev) works as long as I don’t use any of the following E-Mail addresses info@, account@, support@… If I use any of those, the message is filtered by Office 365.
- For **Tenant 2** (Test), I’m not able to produce any working configuration. The E-Mail templates, name, URls to S3 resources are all the same.
- And for **Tenant 3** (Prod). The problem is the same as in Tenant 2

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 9, 2022, 4:37pm UTC](https://community.auth0.com/t/e-mails-to-office-365-mailboxes-are-not-delivered-when-using-amazon-simple-mail-service-ses/82519/7 "2022-05-09T16:37:25Z")

</div>

I’m glad you were able to track it down, to a degree.

Here are a few things I’ve found via Google.

- Check the headers to see how they are being marked: [Anti-spam message headers - Office 365 | Microsoft Learn](https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/anti-spam-message-headers?view=o365-worldwide#x-forefront-antispam-report-message-header-fields)

- Check your domain to see if it is blocked: [https://www.spamhaus.org/query](https://www.spamhaus.org/query)

- Sometimes the email content can be the issue. ([Source](https://aws.amazon.com/premiumsupport/knowledge-center/ses-email-flagged-as-spam/)).

Just FYI, I am not an email/SPAM expert and can only help so much here. I am pulling directly from Google. Once the email has successfully left Auth0, it’s up to the provider to make the next move.

---

<div class="post-metadata">

**Author:** ![michael.schnyder](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/michael.schnyder/32/36947_2.png) [@michael.schnyder](https://community.auth0.com/u/michael.schnyder)\
**Post date:** [May 10, 2022, 2:46am UTC](https://community.auth0.com/t/e-mails-to-office-365-mailboxes-are-not-delivered-when-using-amazon-simple-mail-service-ses/82519/8 "2022-05-10T02:46:31Z")

</div>

Thanks Dan!

I have tested all tenants for blacklists using [mail-tester.com](http://mail-tester.com). Here are the results

**Dev Tenant** : Everything Okay, only one broken link, which I fixed. Emails get delivered.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/c/6c584c4f78f07315e85649101d10070a3d4ca343.png)

**Test Tenant**. Also looks okay, but there is one single Blacklist entry. E-Mails don’t get delivered

 ![image](https://global.discourse-cdn.com/auth0/original/3X/3/6/36f977c1e4b736b55e2f6d7242acbf3a5a1d70b5.png)

**Prod Tenant** : Also looks okay, but there is one single Blacklist entry. E-Mails don’t get delivered

 ![image](https://global.discourse-cdn.com/auth0/original/3X/5/7/57c828d4c5ef5077452899f541eebefffc9ccb86.png)

Seems that the configuration on Office 365 is super sensitive to it. Investigating now, how AWS could be blacklisted sometimes although I’m using the same region for both Dev and Test. Prod is in fact a different region.

Also found links to remove the sender IP from the Office 365 blacklist, let’s see if that helps, although the blacklisting seems to come from SORBS  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/b/abd874a24af47d71aa6ce0a74e18fc66e9e5bf08.png)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 28, 2022, 10:34pm UTC](https://community.auth0.com/t/e-mails-to-office-365-mailboxes-are-not-delivered-when-using-amazon-simple-mail-service-ses/82519/9 "2022-06-28T22:34:09Z")

</div>


