I've got a few questions about how to get maildrop to co-operate with
the rest of my courier setup. By the way, thanks to everyone who helped
me get my IMAP questions solved - it was of great help - it turned out
that I needed to set the uid and gid of my virtual users to that of a
*real* system user, rather than of a unique user, like in passwd, then
set all my users and groups for the Maildirs for that real user. Once I
did that, things went much better.

Anyway, the problem is that I'm a moderator for a YahooGroup (you can
stop laughing now), and moderators receive all the junk mail that the
[EMAIL PROTECTED] receive, and in my case, that's a lot.
there's a header that identifies that source, and I want to filter on
that header and purge out all that mail. So, in courierd, I've set
DEFAULTDELIVERY to "| /usr/lib/courier/bin/maildrop" instead of
"./Maildir", so all mail goes through maildrop. and in the virtual
user's directory I've placed a .mailfilter file with the following code
(with the incriminating YahooGroup name and domain removed here):

#---begin code---

MAILBOX="/home/maildirs/mygroup.org/moderator/Maildir"

if (/^X-eGroups-Moderators: mygroup/:hD)
{
        exit
}
else
{
        to $MAILBOX
}

#---end code---

The current symptoms are that any test mail I send to any of my other
virtual users vanishes into the ether, and email sent to the moderator
account results either in the same or in an error in the MAIL FROM
field.

As always, suggestions are helpful. I know that there's a separate
maildrop list, but I figured that there's a significant crosslisting of
people and I'm generally using the package as a whole.

Thanks,

David M. Stowell
<[EMAIL PROTECTED]>




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to