|
|
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}' |
Login |