jeboehm / docker-mailserver

Docker Mailserver based on the famous ISPMail guide
MIT License
353 stars 92 forks source link

Option to disable rspamd #236

Closed tiberios1 closed 1 year ago

tiberios1 commented 1 year ago

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?

jeboehm commented 1 year ago

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.

tiberios1 commented 1 year ago

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?

jeboehm commented 1 year ago

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

tiberios1 commented 1 year ago

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

jeboehm commented 1 year ago

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.

tiberios1 commented 1 year ago

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

jeboehm commented 1 year ago

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