Home Download Installation Contact

TryToSpam Blocker (tm) Logo
Installation Instructions:
  • tar -xzf TryToSpam-YEAR-MONTH-DAY.tar.gz
  • cd TryToSpam
  • ./runme.pl
  • Follow the prompts...


"LearnAsSpam" Public Folder In Exchange:

========
In Exchange
========
Create a folder in exchange under public folders... give full permissions for 'Domain Users'.
Create a new user, like "spamassassin' with some simple password.
Make sure that the imap protocol is enabled in exchange. (It might be by default)

========
In Linux
========
su -s /bin/bash amavis;
cd;
vi .fetchmailrc;

then enter this:

poll exchange.local.domain.com protocol IMAP:
user spamassassin with password spamassassinpassword
!wq

then;
chmod 710 .fetchmailrc;
/usr/bin/fetchmail -a -v -n --folder "Public Folders/LearnAsSpam" -m '/usr/bin/sa-learn --spam' (look at the output to make sure you are connecting to exchange)

crontab -e (still as amavis user)
0 * * * * /usr/bin/fetchmail -a -s -n --folder "Public Folders/LearnAsSpam" -m '/usr/bin/sa-learn --spam' > /dev/null