-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
It will be nice to add in the install script the creation and modification of all specific files for MailScanner.
As described in https://docs.mailwatch.org/using/faq.html
Why are messages quarantined again when I release them in MailWatch?
This is because you need to bypass certain checks for messages from 127.0.0.1 to allow the released messages to pass through MailScanner without being quarantined again.
This one in conf.d/00_mailwatch.conf
Set the following in /etc/Mailscanner/Mailscanner.conf:
Filename Rules = %etc-dir%/filename.rules
Filetype Rules = %etc-dir%/filetype.rules
Dangerous Content Scanning = %rules-dir%/content.scanning.rules
Is Definitely Not Spam = %rules-dir%/spam.whitelist.rules
Then the following files should be set-up as follows:
filename.rules
From: 127.0.0.1 /etc/MailScanner/filename.rules.allowall.conf
FromOrTo: default /etc/MailScanner/filename.rules.conf
filetype.rules
From: 127.0.0.1 /etc/MailScanner/filetype.rules.allowall.conf
FromOrTo: default /etc/MailScanner/filetype.rules.conf
Edit the following files in /etc/MailScanner/rules:
content.scanning.rules
From: 127.0.0.1 no
FromOrTo: default yes
spam.whitelist.rules
From: 127.0.0.1 yes
FromOrTo: default no
Create the following files in /etc/MailScanner:
filename.rules.allowall.conf
allow .* - -
filetype.rules.allowall.conf
allow .* - -
Metadata
Metadata
Assignees
Labels
No labels