FuzzyOcr uses different methods to analyzes the content and properties of images to distinguish between normal mails (Ham) and spam mails. FuzzyOcr can detect many types of image spam and can protect your server and users from spammers easily.
How do Install FuzzyOCR on FreeBSD?
First, update ports tree, enter:# portsnap fetch updateNow, install FuzzyOCR, type:
# cd /usr/ports/mail/p5-FuzzyOcr-devel
# make install cleanCopy FuzzyOcr config and words files to SpamAssassin configuration directory, type:
# cp /usr/local/share/examples/FuzzyOcr/FuzzyOcr.* /usr/local/etc/mail/spamassassin Open /usr/local/etc/mail/spamassassin/init.pre file, enter:
# vi /usr/local/etc/mail/spamassassin/init.pre Add following line to enable FuzzyOcr, enter:
# FuzzyOcrOpen /usr/local/etc/mail/spamassassin/FuzzyOcr.cf, enter:
loadplugin Mail::SpamAssassin::Plugin::FuzzyOcr
# vi /usr/local/etc/mail/spamassassin/FuzzyOcr.cfMake sure you set focr_logfile to /var/log/FuzzyOcr.log, enter:
focr_logfile /var/log/FuzzyOcr.logSave and close the file. Restart your anti spam gateway engine such as mailscanner:
# /usr/local/etc/rc.d/mailscanner restartNOTE: If you are not using mailscanner, restart sa-spamd:
# /usr/local/etc/rc.d/sa-spamd restartHow do I test if FuzzyOCR is working or not?
Simply download test sample spam email images from the official website. Or try following commands:# cd /tmp
# mkdir test;cd test
# fetch http://users.own-hero.net/~decoder/fuzzyocr/sample-mails.tar.gz
# tar -zxvf sample-mails.tar.gz
# spamassassin -t < ocr-gif.emlYou can also see log in /var/log/maillog and /var/log/FuzzyOcr.log files:
# tail -f /var/log/FuzzyOcr.log
# tail -f /var/log/maillog
No comments:
Post a Comment