4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] postfix & maildrop
FromSent OnAttachments
Jean ThéryJun 10, 2005 5:03 pm 
Ralf HildebrandtJun 11, 2005 2:31 am 
Tony EarnshawJun 11, 2005 3:01 am 
Devin RubiaJun 13, 2005 7:27 am 
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 & maildropActions...
From:Devin Rubia (dev@thezone.net)
Date:Jun 13, 2005 7:27:11 am
List:net.sourceforge.lists.courier-maildrop

On Sat, Jun 11, 2005 at 02:02:12AM +0200, Jean Thry wrote:

i'm using : - postfix-2.2.3_1,1 - maildrop-1.8.0_3 - courier-imap-4.0.3,1 - courier-authlib-base-0.56 - courier-authlib-mysql-0.56

(all from FreeBSD ports) (without routing to maildrop transport postfix exec normal operations)

i've made a transport and routed mails in it in master.cf : maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop} ${sender} -w 90

when i send mail i get this in maillog:

Jun 11 01:04:42 ao postfix/pipe[96040]: 50B7A896: to=<us@domain.tld>, relay=maildrop, delay=0, status=bounced (user unknown. Command output: Invalid user specified. )

but if i execute a "cat mail | maildrop -d $user" in a shell (su vmail) it work

Have you correctly configured courier-authlib to be able to lookup users in your (I assume) MySQL database?

What does "${user}@${nexthop}" generate? Is it something that exists in your user database?

Also, all that stuff you have on the maildrop command line is not really needed unless you intend to parse it in your mailfilters later on.

You can probably get away with just:

maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} -w 90