From owner-freebsd-questions@FreeBSD.ORG Wed Dec 28 14:46:11 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 50B5C16A41F for ; Wed, 28 Dec 2005 14:46:11 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D475B43D78 for ; Wed, 28 Dec 2005 14:46:06 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 1432 invoked from network); 28 Dec 2005 14:46:06 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 28 Dec 2005 14:46:05 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 1964E28423; Wed, 28 Dec 2005 09:46:05 -0500 (EST) Sender: lowell@be-well.ilk.org To: Angelin Lalev References: <43B2729B.1030203@sv-bg.com> From: Lowell Gilbert Date: 28 Dec 2005 09:46:05 -0500 In-Reply-To: <43B2729B.1030203@sv-bg.com> Message-ID: <44slsdmg9e.fsf@be-well.ilk.org> Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: qmail + vpopmail + procmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 14:46:11 -0000 Angelin Lalev writes: > It's been a long time since my last day as a system administrator, > but recently I needed to install a qmail server for a friend. > Although I had forgoten many things, I've managed to make > a working netqmail 1.05 + SMTP-AUTH + TLS patch + > qmail-scanner + spam-assassin + courier imap + vpopmail (mysql db) > installation, following scattered trough internet documents and > howto's. > But now my friend's clients want all mail that is tagged as spam > (in my case, prefixed with "[SPAM]" in the subject) moved to > separate courier imap folder (for example .SPAM). > I figured out (maybe I make error here) that I need procmail > to deliver the mail to the different courier-imap folders in the Maildir. > I couldn't find on the net clear algorithm that does that. (or at least > I failed reproducing it). > Anyone could help? I haven't used Courier, but I thought it used Maildir mailboxes natively, and procmail can deliver to Maildir. So all you would need to do is configure procmail accordingly (the procmailrc(5) has configuration, and procmailex(5) has recipes), and it should Just Work. But I haven't actually done it myself; I'm just trusting the documentation (!). -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/