----- 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?