jeboehm/docker-mailserver

Option to disable rspamd

tiberios1 opened this issue · 7 comments

Is your feature request related to a problem? Please describe.
I currently pay for an antispam service so I'd like to disable local spam filtering.

Describe the solution you'd like
A simple option in the .env file to disable rspamd.

Describe alternatives you've considered
N/A

Additional context
As an aside, when rspamd is learning ham - does it check all folders or just the inbox?

Hi @tiberios1
rspamd is learning ham every time you move a mail FROM the junk folder into ANY other folder.

Regarding your feature request: Since rspamd is also used to DKIM sign outgoing mails, it's not possible to disable it completely. You could override its configuration so that the required score for rejecting mails is much higher.

I have a simple email that comes from a cronjob that is always flagged as spam despite moving it to another folder each time. This has been happening for months so it doesn't feel like it is learning, is there a way to check that? Also where would I be overriding it's configuration if I wanted to do that?

Could you show me the X-Spamd-Result header of the flagged mails please?

I've just checked and there is no X-Spamd-Result header, just X-Spam: Yes

Please check the Rspamd History (in the Rspamd webinterface) when the mail is sent. You can click at the plus sign at every row to get detailed information about the scoring. Please attach that as a screenshot, but be careful not to share sensitive information.

I managed to fix this by updating the crontab that was running the job to have a MAILFROM line.

Awesome!
I’ld like to close this. If you need help to override the rspamd scorings, don’t hesitate to open a new issue.