The amavis virus scanner can be used with courier without too much
trouble. The site for this scanner is www.amavis.org . Just configure
with --enable-postfix and make a few modifications to
amavis/mta/postfix_send . Comment out the open and close filehandles
and print to STDOUT instead of MAIL (just remove the MAIL filehandle
from the two print statements.) Compile and install the script and
configure courier to use maildrop as its local delivery agent. Here's
what I have for my maildroprc:
import SENDER
import RECIPIENT
import HOME
if ($SENDER ne "")
{
FROM=$SENDER
}
else
{
FROM="unknown"
}
xfilter "/usr/sbin/amavis $FROM $RECIPIENT"
LS=`ls ${HOME}/.mailfilter`
if ( $LS eq "" )
{
to "./Maildir/."
}
All incoming mail will be filtered, even if a user has created their own
filter scripts. I've not looked into filtering outgoing mail for virii
yet. Also, I've had trouble with correct permissions being set for the
script and the scanner it runs. I had to chmod 777 /var/amavis and
/var/virusmails and on line 236 of the amavis script mkdir($TEMPDIR,0777)
instead of 0700. The script runs as the maildrop user and if this is not
always courier, then I'm not sure how to set better permissions. The
script could be changed to use /tmp instead of /var ...
--
EECS Systems Staff
-Michael Woods
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users