Hi,
Here some mods for qmail-scanner. Feel free to test the mods, but beware: Use it at your own risk !
MOD NOTIFY RECIPS
Change /etc/qmail-scanner.ini to: NOTIFY="recips"
Because of this limitation http://qmail-scanner.sourceforge.net/FAQ.php#cfg qmail-scanner won't notify recipients unless you have configured local domains.
Edit: /usr/share/qmail-scanner/qmail-scanner-reconfigure.psa
INSERT this MOD:
#MOD BY BART#
FILED=/var/qmail/control/rcpthosts
DOMS=/var/spool/qscan/localdomains.txt
COUNT="f"
for i in `cat $FILED`; do
if [ $COUNT = "f" ]; then
BXTY="$i"
COUNT="n"
else
BXTY="$BXTY,$i"
fi
done
echo "$BXTY" > $DOMS
chown qscand:qscand $DOMS
And add this line to the /configure section:
--local-domains $BXTY \
Save the file and run: qmail-scanner-reconfigure
Now your local domains should be included in head of qmail-scanner-queue.pl, right after:
# This file was auto-generated by:
Note: Because domains can change, you should make a cronjob to refresh the domain list daily. Example: 0 4 * * * root qmail-scanner-reconfigure 2>&1
Finally test your configuration by sending a virus-tes-mail to a mailbox on the server. Example Eicar test:
http://www.mtgsy.net/dns/virustest.php
You should get a warn message from qmail-scanner on recipients mailbox, if not you did something wrong.
Keep in mind that every update of qmail-scanner overwrites this MOD, so you'll have to redo the MOD. To prevent unwanted updates set this parameter in your /etc/yum.conf: exclude=qmail-scanner
...and disable it if you want to update.
Have Fun !
Bart