[Dovecot] do not lose mail when dovecot is dead

Daniel leva at az.isten.hu
Sat Jan 12 22:54:02 EET 2008


On Saturday 12 January 2008 21:50:48 Asheesh Laroia wrote:
> 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?
Yes, I've been experimenting with the latter for a few hours now, and it 
is currently being tested.

Thanks!

Daniel


More information about the dovecot mailing list