SOLVED! Re: Sendmail + Cyrus + Procmail(?) + SpamAssassin

Alexander Farber Alexander.Farber at t-online.de
Thu Apr 3 06:54:15 PST 2003


Hi,

On Tue, Apr 01, 2003 at 04:00:56PM -0600, Kirk Strauser wrote:
> At 2003-04-01T06:17:40Z, Kirk Strauser <kirk at strauser.com> writes:
> > It's now well past my bed time, my brain is all muzzy, and I'm "this
> > close" to giving up on the whole project.  Before I do, I have to ask: has
> > *anyone* made Sendmail+Cyrus+Procmail+SpamAssassin work?
> 
> I fixed my problem.  The writeup is at
> 
> http://subwiki.honeypot.net/cgi-bin/view/Freebsd/SendMailAndCyrus
> 
> under "Using ProcMail for local delivery".  I hope this helps someone in the
> same situation.

I use fetchmail -> procmail -> SpamAssasin -> Courier-IMAP on OpenBSD
and it works fine - procmail is able to deliver to Courier-IMAP folders,
you just have to name them .blah/ (and BTW you don't have to have locks
on them so you don't need the last colon in :0:) Here is my ~/.procmailrc:

    PATH=/bin:/usr/bin:/usr/local/bin
    MAILDIR=$HOME/Maildir		# you'd better make sure it exists
    DEFAULT=$MAILDIR/INBOX		# completely optional
    LOGFILE=$MAILDIR/logfile	# recommended
    VERBOSE=on
    YEARMONTH=`date +%Y-%m`

    :0
    * ^TO_.*openbsd\.(org|com)
    .$YEARMONTH-OpenBSD/

    :0
    * ^TO_.*freebsd\.(org|com)
    .$YEARMONTH-FreeBSD/

    :0
    * ^List-Id:.*gentoo-user\.gentoo\.org
    {
	:0hf
	| formail -fc | sed -e '/^Subject:/ s,\[gentoo-user\] ,,g'

	:0:
	.$YEARMONTH-Gentoo/
    }

    :0fw
    * < 262144
    | spamassassin

    :0
    * ^X-Spam-Status: Yes
    .Spam/

    :0
    .$YEARMONTH-Inbox/



More information about the freebsd-questions mailing list