From owner-freebsd-questions@FreeBSD.ORG Sat Aug 25 04:27:00 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB11D16A468 for ; Sat, 25 Aug 2007 04:27:00 +0000 (UTC) (envelope-from noeldude@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.185]) by mx1.freebsd.org (Postfix) with ESMTP id 3E04D13C46A for ; Sat, 25 Aug 2007 04:27:00 +0000 (UTC) (envelope-from noeldude@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so995722fka for ; Fri, 24 Aug 2007 21:26:58 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=B9KdobK3K4WQa78QuRGD79rJmRUoZYYtomqmYOy91z3jNqpEuH05FedRMnnYzjNqKFi5/tG6faqoH5DEkB4DktcIqhl0SybOV3qo/vBVkm1q0CkAnh2skb9wRejCnMLYOFffQo4RZF4TJelhcq32+vC+z3kvlytp8JvEBD0acsE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Gc9lZ1N59JqmdfnS5Q60m5qYHlJSub4upwQz/m6Aj2S6ldxibyt/RcHMH7DHsLvIpCF8qmcFemt5JJ6x0fShOhRPJtr0x+7YhkGRLzu1Vyo0qE84gIdrAM3qoTFoN03pm4OJSgpa/3St7gpZfbdSBlXXz9tCuGaaY3pWt9jlZ1E= Received: by 10.82.174.20 with SMTP id w20mr8241405bue.1188016018599; Fri, 24 Aug 2007 21:26:58 -0700 (PDT) Received: by 10.82.178.3 with HTTP; Fri, 24 Aug 2007 21:26:58 -0700 (PDT) Message-ID: Date: Fri, 24 Aug 2007 23:26:58 -0500 From: "Noel Jones" To: "User Questions" In-Reply-To: <46CF580B.5090706@boosten.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> Subject: Re: Postfix/SpamAssassin Guru? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2007 04:27:00 -0000 On 8/24/07, Peter Boosten 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