From owner-freebsd-questions@FreeBSD.ORG Mon Mar 31 22:31:03 2003 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 555A137B401 for ; Mon, 31 Mar 2003 22:31:03 -0800 (PST) Received: from dark.mtl.rptn.net (mtl.rptn.net [216.113.17.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9C1043FBD for ; Mon, 31 Mar 2003 22:31:01 -0800 (PST) (envelope-from rick@rptn.net) Received: (from root@localhost) by dark.mtl.rptn.net (8.12.9/8.12.5) id h316V0j0058244; Tue, 1 Apr 2003 01:31:00 -0500 (EST) (envelope-from rick@rptn.net) Received: from zombie.mtl.rptn.net (zombie.mtl.rptn.net [192.168.1.20]) by dark.mtl.rptn.net (8.12.9/8.12.5av) with ESMTP id h316UvGg058231; Tue, 1 Apr 2003 01:30:57 -0500 (EST) (envelope-from rick@rptn.net) From: Rick Fournier To: Kirk Strauser , freebsd-questions@freebsd.org Date: Tue, 1 Apr 2003 01:30:53 -0500 User-Agent: KMail/1.5 References: <87k7eeyc57.fsf@pooh.honeypot.net> In-Reply-To: <87k7eeyc57.fsf@pooh.honeypot.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200304010130.57161.rick@rptn.net> X-Virus-Scanned: by AMaViS perl-11 Subject: Re: Sendmail + Cyrus + Procmail(?) + SpamAssassin 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: Tue, 01 Apr 2003 06:31:03 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey, Well for the worth of it, I use Sendmail, Procmail, SpamAssassin and IMAP-U= W=20 but with my setup the IMAP software used, is totaly irrelevant. My setup is as follows: $ tail /usr/local/etc/procmailrc DROPPRIVS=3Dyes :0fw: /var/run/spamassassin.lock * < 256000 | /usr/local/bin/spamc $ tail $HOME/.procmailrc :0: * ^X-Spam-Status: Yes $PROCMAILDIR/junk $ tail $HOME/.forward "|IFS=3D' '&&exec /usr/local/bin/procmail -f-||exit 75 $USER" Maybe this can help you out... Rick, On April 1, 2003 01:17 am, Kirk Strauser wrote: > Up until this morning, I had a working setup where Sendmail used Procmail > for local delivery, and the global procmailrc called SpamAssassin (via > spamc) to insert an "X-Spam-Status:" header into incoming emails. I used > Procmail rather than a milter because my server is a secondary MX for an > associate's domains, and the poor unenlightened soul doesn't want his ema= il > to be processed. Since a milter processes all email passing through a > machine, and Procmail only works on mail being delivered locally, it was > the perfect fit. > > I installed Cyrus IMAP 2.1.12 from ports today, and was able to make > Sendmail deliver directly to it without too much work. However, now I > really want to insert Procmail (or at least spamc) somewhere into the > pipeline so that my mail is conveniently marked for disposal again. I've > found about 100 half-way recipes on Google (web and Usenet); some call > Procmail as the local mailer and ignore Cyrus altogether, and some set > Procmail to by Cyrus' delivery agent. However, not one single setup that= I > tried seemed to work. No matter what I did, either procmailrc was ignore= d, > or mail was silently discarded without being delivered. > > It's now well past my bed time, my brain is all muzzy, and I'm "this clos= e" > to giving up on the whole project. Before I do, I have to ask: has > *anyone* made Sendmail+Cyrus+Procmail+SpamAssassin work? In order of most > undesirable to least: > > 1) Sendmail needs to stay. Switching MTA's isn't something I can do right > now. > > 2) I don't want to give up SpamAssassin. I've been without it for about = 12 > hours, and the amount of spam in my previously-pristine inbox is > sickening. > > 3) I don't want to give up Procmail, because I don't want to process mail > that's merely passing through my machine. > > 4) I don't want to give up Cyrus because I'm trying to get some experience > with it locally before deploying it on customers' production systems. > > Anyone who can help me with the least amount of pain (see the above metri= c) > will have my eternal gratitude. Or at least a hearty "Thanks!" once I've > had a sleep cycle and some caffeine. =2D --=20 Rick Fournier (rick@rptn.net) PGP Key: 31846E22 (http://www.rptn.net/rick.asc) Key Fingerprint: B1E3 AE2E C867 F491 BF9F 9485 7818 122D 3184 6E22 =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+iTIeeBgSLTGEbiIRAjLxAJ42NZP1TNc7jNnjjYbXJPfvdz9dnACgtwVt YyRGwAk7P2fbhHquTkAN7GA=3D =3DwN4/ =2D----END PGP SIGNATURE-----