Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Apr 2003 01:30:53 -0500
From:      Rick Fournier <rick@rptn.net>
To:        Kirk Strauser <kirk@strauser.com>, freebsd-questions@freebsd.org
Subject:   Re: Sendmail + Cyrus + Procmail(?) + SpamAssassin
Message-ID:  <200304010130.57161.rick@rptn.net>
In-Reply-To: <87k7eeyc57.fsf@pooh.honeypot.net>
References:  <87k7eeyc57.fsf@pooh.honeypot.net>

next in thread | previous in thread | raw e-mail | index | archive | help
=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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304010130.57161.rick>