At 8PM +0100 on 15/12/12 you (Andreas Meyer) wrote: > Ben Morrow <b...@morrow.me.uk> wrote: > > > Create a script something like this > > > > #!/bin/sh > > > > echo "--- FROM [$1] TO [$2]" >>/tmp/lda-log > > /usr/bin/id >>/tmp/lda-log > > /usr/bin/env >>/tmp/lda-log > > exec /usr/libexec/dovecot/dovecot-lda -f "$1" -d "$2" > > > > (you may need to adjust the paths to id and env; the point is to avoid > > relying on $PATH) and change the master.cf entry to invoke > > > > /path/to/script ${sender} ${recipient} > > > > instead of dovecot-lda. Then deliver some mail and see what, if > > anything, gets written to /tmp/lda-log. > > Done that, made the script executable, restarted postfix and sent > two mails from the desktop. The stuck in the queue, no file lda-log > in /tmp. > > dovecot unix - n n - - pipe > flags=DRhu user=vmail:vmail argv=/etc/postfix/script.sh ${sender} > ${recipient}
OK, then I think the problem is entirely on the Postfix side: it's not even attempting to deliver the mail to Dovecot. You need to ask on a Postfix list. Ben