Emailing quarantined emails
Jan-Peter Koopmann
Jan-Peter.Koopmann at SECEIDOS.DE
Mon Feb 23 15:18:02 GMT 2004
> I've tried that, but all it does is re-quarantine itself.
Been there... :-)
Make filename and filetype checks dependend on who is sending the stuff.
Instead of
Filename Rules = %etc-dir%/filename.conf
Filetype Rules = %etc-dir%/filetype.conf
do something like
Filename Rules = %etc-dir%/rules/filename.rules
Filetype Rules = %etc-dir%/rules/filetype.rules
Create two sets of filename.conf/filetype.conf files (e.g.
filename.rules.release.conf and filetype.rules.release.conf). In the
.release.conf files allow all files that you want to be able to release
from the Quarantine. Then in filename.rules put something like
From: postmaster at yourdomain.com
/usr/local/etc/MailScanner/filename.rules.release.conf
FromOrTo: default
/usr/local/etc/MailScanner/filename.rules.conf
In MailWatch conf.php adjust the QUARANTINE_FROM_ADDR to match the one
in the rules-file:
define(QUARANTINE_FROM_ADDR, 'postmaster at yourdomain.com');
That should do the trick.
Regards,
JP
More information about the MailScanner
mailing list