6 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] postfix, virtual user...
FromSent OnAttachments
Eduardo GargiuloMay 24, 2002 11:09 am 
sean...@tcob1.netMay 25, 2002 10:22 am 
Eduardo GargiuloMay 27, 2002 6:06 am 
Richard JohnsonMay 27, 2002 10:25 am 
Matthias AndreeMay 27, 2002 10:57 am 
Richard JohnsonMay 27, 2002 1:53 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] postfix, virtual users and tagged addressesActions...
From:Richard Johnson (rdu@river.com)
Date:May 27, 2002 1:53:43 pm
List:net.sourceforge.lists.courier-maildrop

At 19:57 +0200 on 27/05/2002, Matthias Andree wrote:

"Richard Johnson" <rdu@river.com> writes:

I've got virtual maildir users who want to start using arbitrary '-' or '+' tagged addresses (e.g. user@example.com delivered to account us@example.com). ...

What does your maildrop transport (in master.cf) look like?

(Changing maildrop is probably harder than changing postfix config. :-)

My maildrop transport in master.cf is a copy of the example for maildrop's README.postfix with user and host lowercase canonicalization (flags u & h):

| maildrop unix - n n - - pipe | flags=uhR user=vmail argv=/usr/local/bin/maildrop -d ${recipient}

However, changing that to rewrite the intended destination as:

| ... -d ${user}@${nexthop}

at least rewrites the recipient properly for maildrop. Of course, if the recipient is Bcc:ed as one of multiple local recipients, there's no indication of which tag was used, if any.

Sadly, trying to fix that by adding an -A option:

| flags=uhR ... -d ${user}@${nexthop} -A "X-Originally-To: ${recipient}" or | flags=uhR ... -d ${user}@${nexthop} -A "X-Tag: ${extension}"

just causes maildrop to throw a blank line in at the start of the message file instead of putting the desired aux header in the message.

I'm not certain how to go about getting the tag info into the headers using this technique.

Richard