qmail + vpopmail + procmail

Michael P. Soulier msoulier at digitaltorque.ca
Wed Dec 28 08:25:37 PST 2005


On 12/28/05, Angelin Lalev <lalev at sv-bg.com> wrote:
> 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?

This is up to the end user to do. My $HOME/.qmail looks like so

| preline procmail ~/.procmailrc

>From there, you can filter in .procmailrc like...

:0
^Subject:.*SPAM
$MAILDIR/junkmail/

where MAILDIR=$HOME/Maildir, or some other appropriate place for the user's MUA.

Mike
--
Michael P. Soulier <msoulier at digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein


More information about the freebsd-questions mailing list