On Wed, 24 Jul 2002 09:37:02 +0100, [EMAIL PROTECTED] ()
wrote:

>I'd like to use spamassassin to filter our e-mail.  However the poweres
that be have dcreed that our mail service shall run on MS Exchange.  Is
there a way to insert Spamassassin into the system so that it will filter
incoming mail before it reaches the Exchange server?

Using a FreeBSD machine running sendmail as the mail gateway,
forwarding all mail for individuals to an Exchange server.

Entries in the alias database for staff look like this:

jim.hatfield:   "|sa [EMAIL PROTECTED]"

and sa is a shell script:

#!/bin/sh
#
# Pipe mail through spamc then route on via sendmail
# Get the envelope sender address from the "From " line
#
read from sender rest
{
 echo "$from $sender $rest"
 /bin/cat
} | /usr/local/bin/spamc | /usr/sbin/sendmail -f $sender -oi $1

On FreeBSD the script is located in /usr/libexec/sm.bin.

This assumes that the spamd daemon is running.

Per-user whitelisting does not work since there are no
user accounts on the mail gateways, however you can have
global whitelisting by using /etc/mail/spamassassin/local.cf.

We still use sendmail 8.11.x, I haven't tested this with 8.12.x.

If (like us) you archive mails to some Exchange distribution
lists to Public Folders, you can then run an agent script on the 
Public Folder which traps mails with X-Spam-Flag in the 
headers and diverts them to a "spam" subfolder of the Public
Folder.


-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to