# Discourse Email Issue - AutoGeneratedEmailError on All Outgoing Emails

**URL:** https://meta.discourse.org/t/discourse-email-issue-autogeneratedemailerror-on-all-outgoing-emails/370436
**Category:** Support
**Created:** [June 16, 2025, 8:31pm UTC](https://meta.discourse.org/t/discourse-email-issue-autogeneratedemailerror-on-all-outgoing-emails/370436 "2025-06-16T20:31:31Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![th-afm](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@th-afm](https://meta.discourse.org/u/th-afm)
#### Post date: [June 16, 2025, 8:31pm UTC](https://meta.discourse.org/t/discourse-email-issue-autogeneratedemailerror-on-all-outgoing-emails/370436/1 "2025-06-16T20:31:31Z")

</div>

Hi,

I’m experiencing an issue with my Discourse forum and hoping someone can help.

**Problem:** All outgoing emails (digests, notifications, PMs) are being rejected with the error `Email::Receiver::AutoGeneratedEmailError`. This happens to 100% of emails across different domains.

**What I’m seeing:**

- Email logs under “Rejected” showing dozens of entries
- All with the same error: `Email::Receiver::AutoGeneratedEmailError`
- Affected emails: Digests, welcome messages, etc.
- Timeframe: Last 6 minutes, but likely ongoing longer

**Error message from logs:**

```plaintext
Email::Receiver::AutoGeneratedEmailError
Occurs when the "precedence" header is set to list, junk, bulk or auto_reply, 
or when any other header contains auto-submitted, auto-replied or auto-generated.

```

**Sample headers:**

```plaintext
Auto-Submitted: auto-generated
Precedence: list
List-ID: [My Forum] <forum.example.com>
X-Auto-Response-Suppress: All

```

**Additional stack trace:**

```plaintext
activesupport-7.2.2.1/lib/active_support/broadcast_logger.rb:130:in `block in warn'
/var/www/discourse/lib/email/processor.rb:183:in `log_email_process_failure'
/var/www/discourse/plugins/msgraph-poll-discourse-plugin/plugin.rb:70:in `call`

```

**My setup:**

- Discourse version: Latest
- Email provider: Office 365 / Exchange
- Plugin: Microsoft Graph Poll Plugin active
- SMTP configured through Office 365

**Email deliverability:** When I send test emails from the forum to [https://www.mail-tester.com/](https://www.mail-tester.com/), I get a 9/10 score, so the basic email configuration and deliverability seems to be working fine.

**My suspicion:** The Microsoft Graph Plugin or Discourse’s default headers are causing receiving email servers to classify emails as “auto-generated” and reject them.

**Questions:**

1. Has anyone experienced similar issues with Office 365 and Discourse?
2. Can I suppress the problematic headers?
3. Should I disable the Microsoft Graph Plugin and switch to standard POP3/IMAP?
4. Are there Discourse settings that might help?

**What I’ve tried so far:**

- Verified email configuration
- Checked SMTP settings
- Tested deliverability (9/10 score on [mail-tester.com](http://mail-tester.com))

Does anyone have experience with this issue or suggestions for solutions?

Thanks in advance!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 16, 2025, 9:13pm UTC](https://meta.discourse.org/t/discourse-email-issue-autogeneratedemailerror-on-all-outgoing-emails/370436/2 "2025-06-16T21:13:37Z")

</div>

> [@th-afm](#):
>
> - Email logs under “Rejected” showing dozens of entries
> - All with the same error: `Email::Receiver::AutoGeneratedEmailError`

The Rejected tab of the email logs should be showing incoming emails that have been rejected, rather than outgoing ones. There’s an admin setting `Block auto generated emails` that is enabled by default, which may account for the ones you’re seeing in there.

Are there any other errors in your `/logs` about failed email jobs, or similar?

---

<div class="post-metadata">

### Author: ![th-afm](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@th-afm](https://meta.discourse.org/u/th-afm)
#### Post date: [June 17, 2025, 5:41am UTC](https://meta.discourse.org/t/discourse-email-issue-autogeneratedemailerror-on-all-outgoing-emails/370436/3 "2025-06-17T05:41:47Z")

</div>

First of all, thank you for your help.

I emptied the logs yesterday and today I have this.

 ![The image shows a transfer console with a number of error messages and reported requests to the local email server](https://global.discourse-cdn.com/meta/original/4X/d/b/5/db51d35922899caeab6d76346c4f9a0c93b3daa0.png)

might also be helpful.

 ![Produzi ette jalendati räsplatamoed la marogolgi Saved log and Email errors in Content on backmagic.com (Beschriftet durch KI)](https://global.discourse-cdn.com/meta/original/4X/1/d/6/1d653547efa6c66e711a8fa336f9314cbfa4bdfd.png)

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [June 17, 2025, 6:00am UTC](https://meta.discourse.org/t/discourse-email-issue-autogeneratedemailerror-on-all-outgoing-emails/370436/4 "2025-06-17T06:00:35Z")

</div>

I think your real problem is those `Net::SMTPServerBusy` errors.

That still leaves the weird incoming emails.  
Can you click on the ℹ icon and tell us what it says?

It seems you edited all those email domains and forum/category names? I’d rather have you black out stuff than making things up, since it is hard to tell which parts have been made up and which parts are real now.

---

<div class="post-metadata">

### Author: ![th-afm](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@th-afm](https://meta.discourse.org/u/th-afm)
#### Post date: [June 17, 2025, 7:15am UTC](https://meta.discourse.org/t/discourse-email-issue-autogeneratedemailerror-on-all-outgoing-emails/370436/5 "2025-06-17T07:15:16Z")

</div>

> [@RGJ](#):
>
> It seems you edited all those email domains and forum/category names? I’d rather have you black out stuff than making things up, since it is hard to tell which parts have been made up and which parts are real now.

Ok I thought that would be better. I didn’t make it up completely, I just wanted to make it anonymous.

From is always the e-mail address of the forum.  
To is the email address of the user  
Subject is often the activity summary but also PNs or notifications when someone replies to a thread.  
Error is always Email::Receiver::AutoGeneratedEmailError

> [@RGJ](#):
>
> Can you click on the ℹ icon and tell us what it says?

Email can not be processed: Email::Receiver::AutoGeneratedEmailError

 ![Log](https://global.discourse-cdn.com/meta/original/4X/1/6/7/1672fb3bf0dff095566a31dcde838f85a6dbb794.png)

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [June 17, 2025, 11:21pm UTC](https://meta.discourse.org/t/discourse-email-issue-autogeneratedemailerror-on-all-outgoing-emails/370436/6 "2025-06-17T23:21:44Z")

</div>

I think there’s something wrong with your Microsoft Exchange email configuration, if it’s delivering all outgoing email straight back to your Discourse server. There’s no indication that this is a bounce or reject, there’s just a single `Received:` header as if it’s forwarding to the next SMTP hop.

---

<div class="post-metadata">

### Author: ![th-afm](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@th-afm](https://meta.discourse.org/u/th-afm)
#### Post date: [June 20, 2025, 6:56am UTC](https://meta.discourse.org/t/discourse-email-issue-autogeneratedemailerror-on-all-outgoing-emails/370436/7 "2025-06-20T06:56:58Z")

</div>

Ok thanks everyone, I’ll check it out and get back to you when I know more.
