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