-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[enhancement]: Add option to filter out reports and rename report.analysis.forward
to report.analysis.discard
#1088
Comments
This is done for performance reasons to avoid parsing each received message to see whether it is a report or not. That is why report detection is a simple check of the recipient address. You should choose a unique report address that does not receive any other type of messages, or enable forwarding. |
@mdecimus The defaults set |
It is just |
I don't want my postmaster address bombarded with useless reports I can't even read through the email client. I really don't care if emails come 50ms slower to it. I don't get your performance argument |
Then change the default address to something else that is not postmaster? Postmaster is the safe default for most setups. |
Or perhaps fix the obvious issue? Nowhere does it say that it any non-report emails will just be sent to the abyss. Nor does it make sense to do it this way. Your "performance" argument makes absolutely zero sense. It makes no difference if reports are delivered 5ms later, it makes no difference if non-reports to addresses listed in report analysis are delivered 5ms later. There's no issue with performance either way, nor is "performance" necessary here in the first place. This is a bug, simple as that. |
I repeat, this is not a bug, by default |
The popup reads to me "if the email is analyzed as a report it will not be forwarded", not "DANGER 🚨 🚨 🚨 🚨 🚨 " |
Makes sense, I'll add "IF FORWARDING IS DISABLED YOU WILL LOSE ALL EMAILS 🚨 🚨 🚨 🚨 🚨 🚨 🚨 " and "DANGER 🚨 🚨 🚨 🚨 🚨 " to the documentation and the webadmin. |
Why not just make it actually deliver non-reports though? How would this affect performance? Was it ever an actual issue or is the performance problem theoretical? As far as I can tell it would only stall the queue_message task for a few ms and only for emails sent to report addresses. |
I genuinely doubt just awaiting on the analyze_report would have any real impact on performance assuming queue_message doesn't stall the entire server, and if it does it would be a better idea to fix that, rather than doing whatever this is for some reason... I've looked at it a bit, and I guess it would stall the SMTP connection, but a report is literally only ever sent daily and probably using a separate connection. And the analysis barely does much work in the first place... |
What you are proposing is already possible by setting |
As I said before, I want an option to only skip forwarding reports. I still want to get non-reports, I still want to get reports that failed to get analyzed if that happens. This is a behavior that was described on the webadmin and the one that I would like and expect (hence why I consider this a bug, and your proposed solution more of a workaround than a fix). |
Also, |
report.analysis.forward
to report.analysis.discard
Sorry if I came off rude. I am not in a great mental state, and this also lost me money. |
No worries, I'll add a note to the documentation and keep this issue open for the functionality you need. |
@mdecimus by the way, the value for So if (In general, the way the webadmin shows default values is fundamentally incorrect, there is no way to determine what values the configuration actually has without reading the source code carefully...) |
No, it is set when there is no
As explained above, those default settings are only written when
A fallback value is not used as we need to allow admins to disable this setting.
I've just fixed this (but not yet pushed the fix).
The webadmin should display the exact default value that the mail server is using when that key is not present. If that is not the case for a setting then it is a bug in the webadmin. |
Many of such bugs have been found in the last few weeks, and more are yet to be found... |
What happened?
No emails are forwarded to the intended recipient, only successfully parsed reports shouldn't be.
How can we reproduce the problem?
Send an email to an address assigned to an account with inbound report analysis enabled. No emails, including non-report emails, will ever come through if forwarding is disabled.
mail-server/crates/smtp/src/inbound/data.rs
Lines 329 to 346 in a491c63
Version
v0.11.x
What database are you using?
None
What blob storage are you using?
None
Where is your directory located?
None
What operating system are you using?
None
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: