From owner-freebsd-questions@FreeBSD.ORG Mon Jan 26 05:23:56 2004 Return-Path: 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 7FA6816A4CE for ; Mon, 26 Jan 2004 05:23:56 -0800 (PST) Received: from simmts6-srv.bellnexxia.net (simmts6.bellnexxia.net [206.47.199.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57A1943D41 for ; Mon, 26 Jan 2004 05:23:53 -0800 (PST) (envelope-from techservices@onlinehobbyist.com) Received: from freebie.perlnerd.com ([67.70.139.160]) by simmts6-srv.bellnexxia.netESMTP <20040126132352.KGIU9336.simmts6-srv.bellnexxia.net@freebie.perlnerd.com> for ; Mon, 26 Jan 2004 08:23:52 -0500 Received: from onlinehobbyist.com (monster [192.168.1.181]) i0QDNnJf001493 for ; Mon, 26 Jan 2004 08:23:49 -0500 (EST) (envelope-from techservices@onlinehobbyist.com) Message-ID: <401514E7.2060608@onlinehobbyist.com> Date: Mon, 26 Jan 2004 08:23:51 -0500 From: Clint Gilders Organization: OnlineHobbyist.com, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en, fr-ca, de, en-us MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <200401242251.14708.ecrist@adtechintegrated.com> <3.0.5.32.20040125170203.01e45de0@10.0.0.15> <200401252021.19637.ecrist@adtechintegrated.com> In-Reply-To: <200401252021.19637.ecrist@adtechintegrated.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Spam Assassin? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2004 13:23:56 -0000 Here's how I have spam assassin setup on my mail server. I installed spam assassin using perl's CPAN module, so I'm not sure how different it is from the ports install. You need to have the spam assassin daemon (spamd) running. I imagine the port installs a startup script in /usr/local/etc/rc.d . If not, you can just add '/usr/bin/spamd &' to your /etc/rc.local In my user's home directories I have a .forward file. In that file is a line like (the quotes are part of the file): "|IFS=' ' && exec /usr/local/bin/procmail -Yf- || exit 75 #USERNAME" replace USERNAME with the correct username. I also have a .procmailrc file in the user's home directory. It looks something like: PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin:$HOME/bin MAILDIR=/var/mail/USERNAME #LOGFILE=$HOME/Mail/backup/logfile #This will process the mail and flag it :0fw * < 256000 |/usr/bin/spamc #Uncomment the section below to delete spam on the server. #:0: #* ^X-Spam-Flag: Yes #/dev/null #other procmail rules go here Again, replace USERNAME with the correct username. With that default setup, users will receive spam, but it will flagged in the headers and have a blurb at the beginning which they can use to create filters in their mail client. I delete spam right on the server in my accounts. You'll also have a procmailrc file in /usr/local/etc/ that you can put global (server wide) mail processing rules in. Once spam assassin is functioning on a user's account there will be a .spamassassin folder in the home dir. You can use the .spamassassin/user_prefs file to fine tune their spam assassin if need be. Hope this helps. -- Clint Gilders Director of Technology Services OnlineHobbyist.com, Inc. Eric F Crist wrote: > Ok folks, > > I'm very, very overwhelmed here. I think it comes from trying to setup too > many things at once. I have sendmail running (from base install). I need to > get SpamAssassin and Procmail working, with users having the ability to > opt-out of the spam filtering. I mainly offer POP3 mail access (via qpopper) > and I'm thinking of adding in Squirrelmail support with IMAP. I have a > working mail/pop server and everything is fine there. The spam assassin port > and procmail ports have been through a make install clean and I haven't the > foggiest idea on how to get the two of them working together with sendmail. > Please help. > > TIA >