On Sat, 12 Jan 2008, Daniel wrote:
Currently, I'm executing deliver from a wrapper script: # master.cf: dovecot-lda unix [...] argv=[...]/dovecot-lda_wrapper.pl ${recipient}
That script finds out the username which must be passed to deliver's -d option, because dovecot's user names are not the same as the recipient email addresses of the user's, so I can not just execute deliver directly with the -d ${recipient} option. This hack prevented deliver's exit code to get recognized by postfix.
Can you fix your dovecot-lda_wrapper.pl to either "exec" deliver, so that when it exits your process exits with the same number, or to do the Perl equivalent of "exit $?" - that is, exit the wrapper process with the exit code of the Dovecot LDA?
-- Asheesh.
-- Imitation is the sincerest form of television. -- Fred Allen