stalwartlabs / mail-server

Secure & Modern All-in-One Mail Server (IMAP, JMAP, POP3, SMTP)
https://stalw.art
5.19k stars 214 forks source link

[enhancement]: Avoid sending reports for DMARC/delivery reports #173

Closed ghagl closed 4 months ago

ghagl commented 10 months ago

Which feature or improvement would you like to request?

An option to avoid sending reports for received dmarc or delivery reports.

Is your feature request related to a problem?

I have DMARC with reports enabled (to postmaster@) and it seems that it leads to a feedback loop, meaning that my server receives a DMARC report that leads to my server then submitting a DMARC report, and so it continues in an infinite loop. For now I have reduced the frequency of DMARC aggregate reports in Stalwart's settings.

Code of Conduct

Avamander commented 10 months ago

I suspect you are not sending the reports from a subdomain that has reporting disabled. Looking at my own dataset, detecting such a loop is unlikely to be trivial. Meaning it would be much better to change configuration to avoid this.

This same thing has happened with other software, such as rspamd: https://github.com/rspamd/rspamd/issues/4095

ghagl commented 9 months ago

For now I use report-uri.com and this loop disappeared then. Probably looking to migrate reporting to a non-reporting subdomain sometime soon