Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2007 23:26:58 -0500
From:      "Noel Jones" <noeldude@gmail.com>
To:        "User Questions" <freebsd-questions@freebsd.org>
Subject:   Re: Postfix/SpamAssassin Guru?
Message-ID:  <cce506b0708242126t53310ab3h68e8c2af7b55bbd8@mail.gmail.com>
In-Reply-To: <46CF580B.5090706@boosten.org>
References:  <50DA0D96-3321-4ED0-AC2B-65AB65D62BAC@gmail.com> <20070824095900.CF34.GERARD-SEIBERT@seibercom.net> <79C0FC51-664A-46FA-A56F-146F32ABC2AD@gmail.com> <46CF580B.5090706@boosten.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/24/07, Peter Boosten <peter@boosten.org> wrote:
>
>
> Eric Crist wrote:
> > On Aug 24, 2007, at 9:05 AMAug 24, 2007, Gerard wrote:
> >
> >> On August 24, 2007 at 09:32AM Eric Crist wrote:
> >>
> >>
> >
> > I've got Postfix with Dovecot and virtual users setup.  What I'm looking
> > for is some filtering based on the flags SpamAssassin sets, so that I
> > can route any messages tagged as Spam to a Spam directory with a users
> > maildir.
>
> Assuming you got SA running:
> In my main.cf:
> header_checks = regexp:/etc/postfix/header_checks
>
>
> This is in my header_checks:
>
> /^X-Spam-Flag: YES/     REDIRECT mailbox@you.desire
>
>
> Peter

Note that REDIRECT acts on all recipients of a message, and cannot be
customized per-user.  In the above example, *all* tagged spam would be
delivered to a single mailbox.  OK if that's what you want.

an easier way is to run spamassassin under the control of amavisd-new
and let amavisd-new add address extensions such as user+spam and to
let dovecot file the mail in a spam folder.

-- 
Noel Jones



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