# אימייל הפעלה לא מגיע, אימייל בדיקה עובד

**URL:** https://meta.discourse.org/t/activation-email-not-being-delivered-test-email-working/164659
**Category:** Self-hosting
**Created:** [20 בספטמבר,‏ 2020,‏ 9:17pm UTC](https://meta.discourse.org/t/activation-email-not-being-delivered-test-email-working/164659 "2020-09-20T21:17:05Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![PappaK](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@PappaK](https://meta.discourse.org/u/PappaK)
#### Post date: [20 בספטמבר,‏ 2020,‏ 9:17pm UTC](https://meta.discourse.org/t/activation-email-not-being-delivered-test-email-working/164659/1 "2020-09-20T21:17:05Z")

</div>

Hi,

I’m having a problem with the activation mail. It is being sent from what i can see in the logs, however I’m not receiving anything. When I use the discourse doctor Im receiving the mail just fine.  
Is there a difference between the two?

To add to the confusion, last week I was receiving the activation mail, but because DNS propogation was not working, the activation button could not be pressed. This has since been fixed. However no other changes were made, but the added A-record to point to the IP, so I’m confused as to what changed so that email is no longer being delivered?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [20 בספטמבר,‏ 2020,‏ 9:37pm UTC](https://meta.discourse.org/t/activation-email-not-being-delivered-test-email-working/164659/2 "2020-09-20T21:37:03Z")

</div>

Check your mail provider logs, do they show the email as traversing their system?

Have you checked junk mail?

---

<div class="post-metadata">

### Author: ![PappaK](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@PappaK](https://meta.discourse.org/u/PappaK)
#### Post date: [21 בספטמבר,‏ 2020,‏ 5:51am UTC](https://meta.discourse.org/t/activation-email-not-being-delivered-test-email-working/164659/3 "2020-09-21T05:51:00Z")

</div>

Not sure i have acces to email provider logs, I’ve used Microsoft365 Enterprise for email so far (I know it’s not optimal, and we are planning on changing it). But i do not have admin acces, which i think is required to find the logs? I can’t find any from my acces point atleast.

Nothing in Junk.

Tried looking at the production log again, does this look correct to you?:

Processing by FinishInstallationController#register as HTML  
Parameters: {“utf8”=\>“✓”, “authenticity\_token”=\>“\*\*\*==”, “email”=\>“my@email”, “username”=\>“PappaK”, “password”=\>“[FILTERED]”, “commit”=\>“Register”}  
Redirected to mydomain. com  
Completed 302 Found in 24ms (ActiveRecord: 0.0ms | Allocations: 4888)  
Started GET “/finish-installation/confirm-email” for IP at 2020-09-21 05:37:43 +0000  
Processing by FinishInstallationController#confirm\_email as HTML  
Rendering finish\_installation/confirm\_email.html.erb within layouts/finish\_installation  
Rendered finish\_installation/confirm\_email.html.erb within layouts/finish\_installation (Duration: 1.0ms | Allocations: 388)  
Rendered layouts/\_head.html.erb (Duration: 13.4ms | Allocations: 2930)  
Completed 200 OK in 18ms (Views: 16.5ms | ActiveRecord: 0.0ms | Allocations: 4738)

Seems odd that there isn’t a confirm that email has been sent like from the email test:

Delivered mail my@email. com (682.5ms)

Removed som identifying details from the logs.

---

<div class="post-metadata">

### Author: ![PappaK](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@PappaK](https://meta.discourse.org/u/PappaK)
#### Post date: [21 בספטמבר,‏ 2020,‏ 6:05am UTC](https://meta.discourse.org/t/activation-email-not-being-delivered-test-email-working/164659/4 "2020-09-21T06:05:17Z")

</div>

Just tried using mail-tester with the Discours-doctor test and it failed aswell it did however establish SMTP connection first:

SMTP server connection successful.  
Sending to [test-2g0mti7f5@srv1.mail-tester.com](mailto:test-2g0mti7f5@srv1.mail-tester.com). . .  
Sending mail failed.

Using the Discourse-doctor test for my company mail still works just fine - using my personal mail it says it was accepted by the SMTP server but I’m not recieving the mail.

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [21 בספטמבר,‏ 2020,‏ 6:16am UTC](https://meta.discourse.org/t/activation-email-not-being-delivered-test-email-working/164659/5 "2020-09-21T06:16:51Z")

</div>

Did you check the spam folder?

---

<div class="post-metadata">

### Author: ![PappaK](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@PappaK](https://meta.discourse.org/u/PappaK)
#### Post date: [21 בספטמבר,‏ 2020,‏ 6:29am UTC](https://meta.discourse.org/t/activation-email-not-being-delivered-test-email-working/164659/6 "2020-09-21T06:29:00Z")

</div>

Yes, not receiving anything in spam in any mailbox.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [21 בספטמבר,‏ 2020,‏ 7:27am UTC](https://meta.discourse.org/t/activation-email-not-being-delivered-test-email-working/164659/7 "2020-09-21T07:27:12Z")

</div>

Is the O365 account authorized to send email using the address that you’ve configured for Discourse?

---

<div class="post-metadata">

### Author: ![PappaK](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@PappaK](https://meta.discourse.org/u/PappaK)
#### Post date: [21 בספטמבר,‏ 2020,‏ 8:17am UTC](https://meta.discourse.org/t/activation-email-not-being-delivered-test-email-working/164659/8 "2020-09-21T08:17:45Z")

</div>

Followed the advice from this thread:

> [@Office 365 SMTP settings](https://meta.discourse.org/t/office-365-smtp-settings/40400/2):
>
> Are you sure the terms of service for office 365 allow this? Discourse can send potentially thousands of emails per hour on a busy instance. For example, using Gmail for your outgoing Discourse mail service is absolutely prohibited by the Gmail terms of service. I would be quite shocked if this was not also the case for Outlook / Hotmail / Office365. (For incoming mails, e.g. reply-by-mail it’s less of a big deal since the volumes are so low.)

Added the connector and used the MX-adress given from O365 admin site.

I decided to rebuild the entire Droplet (from DigitalOcean) after having rebuild the app, to see if that would help. And it did! I now have the forum running and could receive the activation email on my admin account.  
However i still can’t receive email when i try to create an account with my personal gmail, I’m getting the following error message in the ‘skipped’ section under email settings in the forum admin page:  
5…4 TenantAttribution; Relay Access Denied [HE…-eur04.prod.protection.outlook.com]

Looks like this might be the solution:

> **[NDR error 550 5.7.64 TenantAttribution when sending emails through Microsoft...](https://learn.microsoft.com/en-us/troubleshoot/exchange/email-delivery/ndr/tenantattribution-ndr)**
>
> Describes an issue in which you receive a 550 5.7.64 TenantAttribution; Relay Access Denied SMTP error when sending mail through Microsoft 365.

But i haven’t tried it yet. I will update once i have time to implement the change from the link.

Quick sidenote - will rebuilding the app mess with any settings i made after activation my admin account?

---

<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: [21 בספטמבר,‏ 2020,‏ 2:57pm UTC](https://meta.discourse.org/t/activation-email-not-being-delivered-test-email-working/164659/9 "2020-09-21T14:57:34Z")

</div>

By default discourse will send from `noreply@discourse.domain.com` A common problem is that your mail host insists that you send from `domain.com`. [Troubleshooting email on a new Discourse install](https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326) describes how to change it.
