I can receive emails from a trusted domain to my MiaB server just fine, and it’s been working fine for well over a year now. Just recently, certain emails that weren’t flagged as Junk before are now being flagged as such. I read the forum posts (I’ve been searching to try to find this, maybe I overlooked something but I’ve tried) about training SpamAssassin, but moving the mail to the inbox and such doesn’t seem to be working. I also tried manually whitelisting these domains, but it didn’t seem to work either?
Does anyone have any suggestion I could try? It’s not a huge deal, just seems like something that should be an easy enough fix. We regularly receive emails from 4-5 trusted domains, and we’d prefer them not being flagged as Junk at the server level instead of doing user filters for each one of us if possible.
I then restarted stuffs because I never know exactly what to restart:
$ sudo service spamassassin restart
$ sudo service spampd restart
$ sudo service postfix restart
This seems to have worked, maybe I needed to restart more than just the spamassassin service?
X-Spam-Status: No, score=-94.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,
SPF_FAIL,SPF_HELO_NONE,USER_IN_WELCOMELIST,USER_IN_WHITELIST
autolearn=no autolearn_force=no version=3.4.2
Seems like adding whitelist_from username@example.com to the bottom of /etc/spamassassin/local.cf then restarting those three services does the trick. I’ll do more testing from the other domains I don’t have control of and see. Thank you!
I wonder if spamassassin penalties haven’t been changed. Emails from my public library recently started all showing up in my spam folder with:
X-Spam-Report:
* -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
* [score: 0.0000]
* 2.0 DMARC_FAIL_NONE DMARC check failed (p=none)
* 5.0 SPF_FAIL SPF check failed
* 0.0 T_SPF_HELO_PERMERROR SPF: test of HELO record failed
* (permerror)
X-Spam-Score: 5.1
You can see that the score is 5.1 – the threshold is 5. Clearly they have a poorly configured mail server so I guess there’s nothing to do but whitelist the address.
@openletter what is your suggestion for the file for a custom whitelist? Is there anything else that need to be modified to make sure postfix sees the file?
You can call the file anything, though note that it seems all the files in with .cf in that folder. Just follow the instructions above that that is all you need to do.
I get the rationale for the change but it’s a little odd that they are issuing a deprecation warning without implementing the new option (WELCOMELIST_FROM). Apparently it is not to be implemented until version 4.x.