Better default value for SA_KILL variable#3058
Conversation
|
EDIT: This should already provide the desired behaviour by default... what are we actually fixing with this then? This is a no from me 👎 I have documented why in the associated issue. Basically We have other ENV to support the alternative behaviour this PR is attempting to resolve, it would be better to adjust the defaults instead. ENV and values were contributed by the original DMS author in Feb 2016, with minimal context. They are the default upstream values (and the ENV docs are taken directly from comments there too). Debian Bullseye image with Amavis package defaults (no DMS involved): `/etc/amavis/conf.d/20-debian_defaults`:We can see that we're currently just leaving these ENV to their respective defaults upstream and expecting users to change them if they're not happy with that. That probably isn't an issue, except that we have As detailed below, If you needed some flexibility to conditionally treat some spam differently, such as allowing spam to arrive into the junk folder, but discarding/bouncing mail with a very high spam score (differentiating between maybe spam and definitely spam), this could be a reason to go with a higher Resources for references:Here is an article that looks into tweaking the values a bit for what works better for them. I don't know about those values or relevance now, but it explains the config nicely with some feedback on their experience (some mail still not being detected as spam, some getting treated as spam):
More technical reference on the config, that also seemed helpful:
|
|
Oh, I misunderstood this too then. Thanks for the clarification! I'd not merge this as is then too, but maybe this PR can bring an enhanced documentation? |
Some might set this both to
Because we changed it to Setting
But |
EDIT: This was my bad, as shown with snippet at the end of this comment, it should still be
Is it? I thought Dovecot sieve scripts were for handling any mail arriving into the inbox, protocol agnostic? Mail that is delivered to DMS goes through SA and Amavis, which would add the spam header to trigger the sieve script would it not?: docker-mailserver/target/dovecot/sieve/before/60-spam.sieve Lines 1 to 4 in 9df71c2 Then IMAP and POP3 are for mail clients to retrieve mail from Dovecot after the fact? Why would POP3 be excluded from the feature?
That's what I understand. I am not familiar with spam scores as I don't actually run DMS (all this time and I still just contribute to a project I don't use 😂 ), so I don't know what a good value would be for
I am not sure. In what scenario do you want to mark mail as spam, but not handle it differently? (I'm not sure if the action If there was a reasonable "definitely spam" score that
Honestly considering what this would do, it just sounds like the smarter choice is to default to docker-mailserver/target/scripts/startup/setup-stack.sh Lines 923 to 934 in 05db27f Ok so if bouncing mail is the problem when that ENV is flipped, we could also use Alternatively, we better document that disabling |
That's my assumption, or at least part of it, because POP3 does not now the concept of folders. So moving SPAM to junk folder has no effect. In POP3 this have to be configured client side in the MUA as a rule (not in scope of DMS). You are right, that Sieve processing also apply to POP3, but moving a mail to junk folder in particular will have no effect (from POP3 view).
This allows to tag mails as SPAM beginning with a score of 6 and rejecting mails with a score of >=10.
|
|
This seems acceptable 👍 Although I prefer there to be an actual demand to warrant the change 🤔 Since it only affects the users explicitly opt-ing in to bouncing mail marked as spam, this change may result in receiving unwanted spam in their inbox. Improving docs probably makes more sense.
I thought that this is about what happens when mail arrives to Postfix, it gets filtered through Amavis + SA, then sent to Dovecot for mail storage. The MUA then can access that mailbox via IMAP or POP3. It should still be in Dovecot's junk folder for that mailbox, and marked as spam in the mail headers?
My understanding is that sieve is on Dovecot's end with how it manages mail storage. Agnostic from MUA access regardless of protocol.
Ok, so for the defaults, this makes no difference right? Due to
I suppose with release notes, if there is more spam being delivered when they'd rather it bounced, they can manually change Amavis config observations (not too important)EDIT: I have noticed in the relevant Amavis docs section:
I thought I had seen something like a percentage somewhere, and was going to raise this as a concern with increasing the That config file has some other info that might be worth noting: Related issue historyFor better traceability via referencing existing issues / PRs
|
|
I noticed that this only changed a default in the optional Due to #3112 PR wanting to move |
Description
Fixes #3028 (comment)
Type of change
Checklist:
docs/)