------------------------- SpamAssassin - www.spamassassin.org Intall it and get it working to your satisfaction on a local account. Once the local system is working set up for the remote Exchange users using the site-wide configuration files. I copied the /etc/mail/spamassassin/ files to /root/.spamassassin For the Outlook 2K users to tweak their own hit score settings set up: spam_level_char H spam_level_stars 1 Now the users can set up a rule in their mail programs to look for: X-Spam-Level: HHHHH if they want a score of 5.0 or better = spam X-Spam-Level: HHH if they want a score of 3.0 or better = spam etc..... For Outlook 97/98/OE filtering Change the subject of SPAM mail to *****SPAM***** ------------------------- Sendmail - www.sendmail.org -RH9 distribution Install it and get it working to your satisfaction with local mail. RH9 8.12.8 sendmail-devel-8.12.8-5.90 sendmail-cf-8.12.8-5.90 sendmail-8.12.8-5.90 check for compiled support MILTER using: sendmail -bt -d0.1 < /dev/null RH9 installed as above supported it Support for running Spamassasin email filter machine in front of MS Exchange exDomain.com = domain with Exchange Server exHost.exDomain.com = host running Exchange Server software spamFilterBox.domain.com = box acting as SpamAssassin filter change MX record DNS entry for exDomain.com to add spamFilterBox.domain.com spamFilterBox.domain.com has highest priority; e.g. MX 5 spamFilterBox.domain.com. MX 10 exHost.exDomain.com. add the line to /etc/mail/mailertable: to forward the mail to the exchange server exDomain.com esmtp:[exHost.exDomain.com] add the line to /etc/mail/relay-domains: to relay mail for the exchange domain exDomain.com add the lines to /etc/mail/access: to reject mail addressed to old or bogus accounts note: get the valid user list from exchange via LDAP: (ldapsearch -x -b "" -h exHost.exDomain.com rdn=*) exDomain.com REJECT validUser1@exDomain.com OK validUser2@exDomain.com OK add the line to /etc/mail/sendmail.mc to use dns black list for known spammers FEATURE(`dnsbl',`sbl.spamhaus.org',`Rejected (http://spamhaus.org/)')dnl ------------------------- Spamass-Milter - http://savannah.nongnu.org/projects/spamass-milt/ ./configure make make install contrib/spamass-milter-redhat.rc copied to /etc/init.d/spamass-milter modifications: M_SOCKET=/var/run/sendmail/spamass.sock make sure all executable paths are consistant with "which spamass-milter" output modify chkconfig parameters to start before sendmail chkconfig --add spamass-milter add the following line to sendmail.mc: INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/sendmail/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m') ------------------------- Helpful links: http://www.peregrinehw.com/downloads/SpamAssassin/INSTALL-spamassmilter http://marc.theaimsgroup.com/?l=redhat-list&w=2&r=1&s=milter&q=b