Print

Amavisd - SpamAssassin & ClamAV
Setting up amavisd-new with spamassassin and clamav to provide a comprehensive anti-virus and anti-spam solution.


Testing SPAM Samples:
# su -l -s /bin/sh -c "/usr/bin/spamassassin -x -t" amavis < /tmp/spam.raw


Learning SPAM Samples:
# su -l -s /bin/sh -c "/usr/bin/sa-learn --spam" amavis < /tmp/spam.raw


Learning HAM Samples:
# su -l -s /bin/sh -c "/usr/bin/sa-learn --ham" amavis < /tmp/spam.raw


Forget Samples:
# su -l -s /bin/sh -c "/usr/bin/sa-learn --forget" amavis < /tmp/spam.raw


Benchmark The Scanning (Both scanned and unscanned with SA):
# zgrep "Hits:" /var/log/maillog* | sed -re "s/.* (0-9+) ms/\1/" | awk '{a+=$1}END{print a/NR}'


Benchmark The Scanning (Mail not scanned with SA):
# zgrep "Hits: -" /var/log/maillog* | sed -re "s/.* (0-9+) ms/\1/" | awk '{a+=$1}END{print a/NR}'




Copyright © 2000-2009, AllWorldIT
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
The registered trademark Linux® is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.