[Dovecot] need help with dovecot-lda

Andreas Meyer anmeyer at anup.de
Sat Dec 15 21:12:58 EET 2012


Ben Morrow <ben at morrow.me.uk> wrote:

> > Sending an email from the desktop results in the same error:
> > 
> > # mailq
> > -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
> > CB9771B3025F      559 Sat Dec 15 16:39:48  anmeyer at anup.de
> >                                              (unknown user: "anmeyer at anup.de")
> >                                          anmeyer at anup.de
> 
> *Right*. Now we're getting somewhere: it looks like the problem is in
> your Postfix configuration.
> 
> 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}

> Ben
> 

Andreas



More information about the dovecot mailing list