Hi.
I found that the problem was with the fetchmail script. Although the fetchmail man page seems to say that fetchmail will send mail to port 25, mail was actually going to the new smtp port I had set in /etc/services. (Now assp is listening on port 25, and smtp is on port 125.)
To point fetchmail to the correct port, I modified the following file from Vincent's script:
/etc/e-smith/templates-custom/etc/fetchmail/90fetchmail
I changed the following line:
$mdbg="-d0 --silent --syslog ";
to this:
$mdbg="-d0 --silent --syslog --smtphost 127.0.0.1/25 ";
Then expanded the template:
/sbin/e-smith/expand-template /etc/fetchmail
Now fetchmail collects the mail, sends it to assp on port 25, then it gets scanned by clamav. Whew!
FYI, the assp script needs some tweaking to work with fetchmail.
First, you need to modify the config.pl script to remove 127.0.0.1 from the $acceptAllMail= line. If you don't, fetchmail messages won't get scanned for spam, and all addresses will be added to your whitelist, even those from spammers. (This script, currently version 0.1.5, equates whitelist addresses with acceptable relays.)
(from my config.pl)
# denies relaying for hosts besides these
# these hosts also contribute to the whitelist
$acceptAllMail="192.168.0.";
Next you need to modify the assp.pl script to allow relaying from 127.0.0.1 . If you don't, then some things don't work right. See the new part below:
if($acceptAllMail && $ip=~/^($acceptAllMail)/io) {
$Con{$client}->{relayok}=1;
mlog($client,"relaing ok");
print DEBUG "$client relaying ok: $ip\n" if $DEBUG;
}
#New part starts here
if ($ip eq '127.0.0.1') {
$Con{$client}->{relayok}=1;
mlog(0,"127.0.0.1 relaying ok");
print DEBUG "$client relaying ok: $ip\n" if $DEBUG;
}
#New part ends here
I also found a couple of good clamav how-to's if anyone is having trouble installing it.
http://www.star-support.com/downloads/mitel/contrib/clamav/http://www.tech-geeks.org/contrib/loveless/clamav/clam_install_notes.txtShawn