I'm having a hell of a time getting postfix with virtual mailboxes via
mysql backend to work. I've checked permissions and configurations
over and over and can't find why i'm getting the error. I'm running
maildrop 2.0.2 on OpenBSD 4.2.
$ maildrop -V 3 -d pebb...@example.com
maildrop: authlib: groupid=3100
maildrop: authlib: userid=3100
maildrop: authlib: logname=pebb...@example.com,
home=/var/spool/virtual_mailboxes/, mail=example.com/pebbles/
maildrop: Changing to /var/spool/virtual_mailboxes/
rrr
Message start at 0 bytes, envelope sender=pebb...@example.com
Matching /^Delivered-To:\s*.+/ against rrr
Not matched.
Matching /(.*)@([^@])/ against
Matching /([^\+]+)\+(.*)/ against
Matching /^X-Spam-Status: Yes/ against rrr
Not matched.
maildrop: Attempting .mailfilter
maildrop: Delivering to example.com/pebbles/
maildrop: Unable to open mailbox.
My /etc/courier/maildroprc file:
/^Delivered-To:\s*.+/
RECIPIENT=getaddr ${MATCH}
# split the recipient into user and domain parts
USER=""
DOMAIN=""
if ( ${RECIPIENT} =~ /(.*)@([^@])/ )
{
USER=${MATCH1}
DOMAIN=${MATCH2}
}
else
{
#no domain part
USER=${RECIPIENT}
}
# extract extension from user-part
# we assume '+' is the delimiter. if you use another char, adjust..
EXTENSION=""
if ( ${USER} =~ /([^\+]+)\+(.*)/ )
{
#extension found
USER=${MATCH1}
EXTENSION=${MATCH2}
}
MAILDIR="/var/spool/virtual_mailboxes/$DOMAIN/$USER/Maildir"
if (/^X-Spam-Status: Yes/)
{
to $MAILDIR/.Spam/
}
Thanks in advance,
/miscara
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/