Our MailScanner install script automatically adds an entry to the mailscanner rules files to prevent this issue. If for some reason these files have been modified or corrupted or these entries are missing, you will need to add them again.
This is the line that configures MailScanner to bypass the checks for emails released from quarantine:
From: 127.0.0.1 and From: postmaster@hostname no
The above line should be in the following files in the /usr/mailscanner/etc/rules/ directory:
filename.rules.rules
filetype.rules.rules
virus.scanning.rules
The file /usr/mailscanner/etc/rules/spam.whitelist.rules should contain this line:
From: 127.0.0.1 and From: postmaster@hostname yes
In all cases you should replace the word "hostname" with the full hostname of your server.
It is best to put the line at or near the top (beginning) of each file.
You should restart MailScanner after you have edited the rules files.