MailScanner :: Setting up release from Quarantine
The following is plagiarized from:
http://weait.com/content/mailwatch-release-quarantine-fails-solved
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.
Set the following in /etc/Mailscanner/Mailscanner.conf:
1. MailScanner.conf
nano /etc/MailScanner/MailScanner.conf
Filename Rules = %etc-dir%/filename.rules
#changed from %etc-dir%/filename.rules.conf
Filetype Rules = %etc-dir%/filetype.rules
#changed from %etc-dir%/filetype.rules.conf
Dangerous Content Scanning = %rules-dir%/content.scanning.rules
Is Definitely Not Spam = %rules-dir%/spam.whitelist.rules
// In my case I left the whitelist line unchanged to continue using SQL whitelisting.
2. File Name Rules
Then the following files should be set-up as follows:
Maksure all gaps are TABs not spaces!
nano /etc/MailScanner/filename.rules OR /bin/cat << EOF >> /etc/MailScanner/filename.rules
#
# Allow Quarantine releases
#
From: 127.0.0.1 /etc/MailScanner/filename.rules.allowall.conf
FromOrTo: default /etc/MailScanner/filename.rules.conf
EOF
3. File type Rules
nano /etc/MailScanner/filetype.rules
OR
/bin/cat << EOF >>
#
# Allow Quarantine releases
#
From: 127.0.0.1 /etc/MailScanner/filetype.rules.allowall.conf
FromOrTo: default /etc/MailScanner/filetype.rules.conf
EOF
4. Content Scannering Rules
nano /etc/MailScanner/rules/content.scanning.rules
OR
/bin/cat << EOF >>
#
# Allow Quarantine releases
#
From: 127.0.0.1 no
FromOrTo: default yes
EOF
5. Spam Whilelist Rules
The following was not used as using SQL Whitelists
nano /etc/MailScanner/rules/spam.whitelist.rules
OR
/bin/cat << EOF >> /etc/MailScanner/rules/spam.whitelist.rules
#
# Allow Quarantine releases
#
From: 127.0.0.1 yes
FromOrTo: default no
EOF
6. Filename Rules Allowall
nano /etc/MailScanner/filename.rules.allowall.conf
OR
/bin/cat << EOF >> /etc/MailScanner/filename.rules.allowall.conf
allow .* - -
EOF
7. Filetype Rules Allowall
nano /etc/MailScanner/filetype.rules.allowall.conf
OR
/bin/cat << EOF >> /etc/MailScanner/filetype.rules.allowall.conf
allow .* - -
EOF
Happy Releasing from Quarantine.

