Date: Mon, 3 Feb 2003 10:50:05 -0000 From: "local.freebsd.questions" <freebsd-questions-local@insignia.com> To: "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org> Subject: Re: SpamAssassin Message-ID: <2F03DF3DDE57D411AFF4009027B8C3670289D74F@exchange-uk.isltd.insignia.com>
next in thread | raw e-mail | index | archive | help
On Sat, 1 Feb 2003 16:22:45 -0000 , jpmichel@jcontinuum.ca ("Justin P. Michel") wrote: >Is there anyone that has a simple set-up guide for Spam Assassin? I've >installed it from the ports, but have no idea where to go next. Checking >the web has only brought me documents which further confuse me. Well here's one way. - I hacked the port Makefile to remove the dependency on razor-agents, since I didn't want that or all the stuff which it drags in. - I use the spamc/spamd variant of SpamAssassin. - the mail gateways have no user accounts, they merely relay to internal Exchange servers. Each user has an alias file entry like: jim.hatfield: "|sa jim.hatfield@exchange-uk.isltd.insignia.com" - /usr/libexexec/sm.bin/sa looks like this: #!/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 - there's only one whitelist file in /etc/mail/spamassassin/local.cf The double-queuing makes the mail log a bit more difficult to parse but the benefit of being able to filter on a per-user basis (some people insist that their mail isn't filtered, so they have aliases which don't pipe their mail through sa) works for us. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2F03DF3DDE57D411AFF4009027B8C3670289D74F>