[Dovecot] need help with dovecot-lda

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


Hello!

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

> At  5PM +0100 on 14/12/12 Andreas Meyer wrote:

> > dovecot   unix  -       n       n       -       -       pipe
> >   flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/dovecot-lda -f
> >   ${sender} -d ${recipient}

> What happens if you run
> 
>     echo "foo" | /usr/libexec/dovecot/dovecot-lda \
>         -f xyz at anup.de -d xyz at anup.de

# id vmail
uid=5000(vmail) gid=5000(vmail) Gruppen=5000(vmail)

# su vmail echo "foo" | /usr/libexec/dovecot/dovecot-lda -f anmeyer at anup.de -d anmeyer at anup.de
an empty email with 0 B gets delivered to the maildir of anmeyer at anup.de

# echo "foo" | /usr/libexec/dovecot/dovecot-lda -f anmeyer at anup.de -d anmeyer at anup.de
email with foo in the body is delivered to the maildir.

# delta:/var/spool/vhosts/anup.de/anmeyer/new # ll
insgesamt 4
-rw------- 1 vmail vmail 0 15. Dez 11:26 1355567160.M902698P23725.delta,S=0,W=0
-rw------- 1 vmail vmail 4 15. Dez 11:26 1355567171.M334599P23728.delta,S=4,W=5

> in the shell (as the vmail user)? Does it fail with exit code 67? This
> is EX_NOUSER, and is the standard way for LDAs to signal 'I don't know
> how to deliver to this user'. Either xyz at anup.de is not a valid address
> at that domain, or you haven't made the auth-userdb socket available to
> the vmail user. See http://wiki2.dovecot.org/LDA, under the section
> 'Virtual users'.

I already added

service auth {
    unix_listener auth-userdb {
      mode = 0600
      user = vmail # User running dovecot-lda
      group = vmail # Or alternatively mode 0660 + dovecot-lda user in this group
    }
}

to the dovecot.conf. How does dovecot know there is a socket in
/var/spool/postfix/private/dovecot? And how does dovecot-lda know
to look there. Am I missunderstanding something?

If I send an email from the desktop I have in the mail.log
Dec 15 11:35:25 delta postfix/virtual[23910]: E0BC61B3128A: to=<anmeyer at anup.de>, relay=virtual, delay=0.18, delays=0.09/0.01/0/0.09, dsn=4.1.1, status=SOFTBOUNCE (unknown user: "anmeyer at anup.de")

and the mail is stuck in the queue
# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
E0BC61B3128A      559 Sat Dec 15 11:35:24  anmeyer at anup.de
                                             (unknown user: "anmeyer at anup.de")
                                         anmeyer at anup.de

I am lost. I don't if the mail is handed over to dovecot-lda and if so
why it can't find the passwd-file.

> 
> Ben
> 

   Andreas



More information about the dovecot mailing list