9 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Problem with maildrop...
FromSent OnAttachments
AdminMar 3, 2004 12:40 pm 
Devin RubiaMar 3, 2004 1:04 pm 
Sam VarshavchikMar 3, 2004 3:54 pm 
AdminMar 4, 2004 9:52 am 
Jeremy KitchenMar 4, 2004 10:05 am 
AdminMar 4, 2004 10:10 am 
Brook HumphreyMar 4, 2004 10:16 am 
AdminMar 4, 2004 10:34 am 
Brook HumphreyMar 4, 2004 12:39 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Problem with maildroprc and Postfix virtual usersActions...
From:Admin (adm@gcmuni.net)
Date:Mar 4, 2004 9:52:44 am
List:net.sourceforge.lists.courier-maildrop

----- Original Message ----- From: "Devin Rubia" <dev@thezone.net> To: "Admin" <adm@gcmuni.net> Cc: <cour@lists.sourceforge.net> Sent: Wednesday, March 03, 2004 2:50 PM Subject: Re: [maildropl] Problem with maildroprc and Postfix virtual users

On Wed, Mar 03, 2004 at 02:28:34PM -0600, Admin wrote:

I've got Postfix setup with virtual users in a MySQL database. Maildrop is the transport. Everythign works fine, mail is delivered likes it's supposed to be.

I would like to have a filter that puts all mail marked as "spam" (via SpamAssassin/Amavisd-new) to be delivered to a "Junk Mail" folder in each users maildir.

The problem is the maildroprc file. As it is now, each users can create (via Squirrelmail plugin) their own .mailfilter file, which works. However, my maildroprc file seemingly DOES NOT process the "if" statements.

Here's my maildroprc:

if (/^X-Spam-Status: Yes/)

{ to "$HOME/.Junk Mail" }

Try dropping the vertical whitespace, viz:

if (/^X-Spam-Status: Yes/) { to "$HOME/.Junk Mail" }

There's a specific warning about this in the maildropfilter manpage.

Sorry, I actually did NOT have any whitespace in my maildroprc file, the one I posted was one I was editing.

So, my file actually looks like this:

if (/^X-Spam-Status: *Yes/) { to "Maildir/.Junk Mail" }

There are not blank lines, and no trailing spaces anywhere- I checked. Still, all mail is going to the Junk Mail folder. Meanwhile, user's .mailfilter files work fine.

Any ideas?