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:
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:
Auto-Submitted: auto-generated
Precedence: list
List-ID: [My Forum] <forum.example.com>
X-Auto-Response-Suppress: All
Additional stack trace:
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/, 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:
- Has anyone experienced similar issues with Office 365 and Discourse?
- Can I suppress the problematic headers?
- Should I disable the Microsoft Graph Plugin and switch to standard POP3/IMAP?
- 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)
Does anyone have experience with this issue or suggestions for solutions?
Thanks in advance!