From owner-freebsd-questions Mon Feb 3 2:50:13 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12AEB37B405 for ; Mon, 3 Feb 2003 02:50:12 -0800 (PST) Received: from highland.isltd.insignia.com (highland.isltd.insignia.com [195.74.141.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86FA543F3F for ; Mon, 3 Feb 2003 02:50:09 -0800 (PST) (envelope-from Jim.Hatfield@insignia.com) Received: from scorpio.isltd.insignia.com (scorpio.isltd.insignia.com [172.16.1.1]) by highland.isltd.insignia.com (8.12.6/8.12.6) with ESMTP id h13Ao85x010122 for ; Mon, 3 Feb 2003 10:50:08 GMT (envelope-from Jim.Hatfield@insignia.com) Received: from exchange-uk.isltd.insignia.com (exchange-uk [172.16.1.6]) by scorpio.isltd.insignia.com (8.11.3/8.11.3) with ESMTP id h13Ao8118921 for ; Mon, 3 Feb 2003 10:50:08 GMT Received: by exchange-uk.isltd.insignia.com with Internet Mail Service (5.5.2653.19) id <3949H28G>; Mon, 3 Feb 2003 10:50:07 -0000 Message-ID: <2F03DF3DDE57D411AFF4009027B8C3670289D74F@exchange-uk.isltd.insignia.com> From: "local.freebsd.questions" To: "'freebsd-questions@freebsd.org'" Subject: Re: SpamAssassin Date: Mon, 3 Feb 2003 10:50:05 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Scanned-By: MIMEDefang 2.28 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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