[Dovecot] need help with dovecot-lda

Daniel Parthey daniel.parthey at informatik.tu-chemnitz.de
Sat Dec 15 20:23:58 EET 2012


Andreas Meyer wrote:
> > > hm, what does dovecot-lda do? I think it tries to connect to
> > > /usr/var/run/dovecot/auth-userdb ?
> > 
> > Try to trace the open syscalls of dovecot-lda and its children:
> > 
> > strace -f -eopen /usr/libexec/dovecot/dovecot-lda -f anmeyer at anup.de -d anmeyer at anup.de
> > 
> 
> # strace -f -eopen /usr/libexec/dovecot/dovecot-lda -f anmeyer at anup.de -d anmeyer at anup.de
> open("/usr/lib/dovecot/tls/i686/sse2/libdovecot-lda.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/dovecot/tls/i686/libdovecot-lda.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/dovecot/tls/sse2/libdovecot-lda.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/dovecot/tls/libdovecot-lda.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/dovecot/i686/sse2/libdovecot-lda.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/dovecot/i686/libdovecot-lda.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/dovecot/sse2/libdovecot-lda.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/dovecot/libdovecot-lda.so.0", O_RDONLY) = 3
> open("/usr/lib/dovecot/libdovecot-storage.so.0", O_RDONLY) = 3
> open("/usr/lib/dovecot/libdovecot.so.0", O_RDONLY) = 3
> open("/usr/lib/dovecot/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> open("/lib/libc.so.6", O_RDONLY)        = 3
> open("/usr/lib/dovecot/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/lib/librt.so.1", O_RDONLY)       = 3
> open("/usr/lib/dovecot/libssl.so.0.9.8", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/libssl.so.0.9.8", O_RDONLY) = 3
> open("/usr/lib/dovecot/libcrypto.so.0.9.8", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/libcrypto.so.0.9.8", O_RDONLY) = 3
> open("/usr/lib/dovecot/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/lib/libz.so.1", O_RDONLY)        = 3
> open("/usr/lib/dovecot/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/lib/libdl.so.2", O_RDONLY)       = 3
> open("/lib/libpthread.so.0", O_RDONLY)  = 3
> open("/var/log/dovecot-lda-errors.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0600) = 6
> open("/var/log/dovecot-lda.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0600) = 7
> open("/usr/lib/dovecot", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 8
> open("/usr/lib/dovecot/lib90_sieve_plugin.so", O_RDONLY) = 8
> open("/usr/lib/dovecot/libdovecot-sieve.so.0", O_RDONLY) = 8
> open("/var/log/dovecot-lda-errors.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0600) = 6
> open("/var/log/dovecot-lda.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0600) = 7

Of course you will need to deliver a mail via stdin.
Otherwise dovecot-lda will stall and wait for input,
it doesn't even try to connect to auth-userdb.

This might work:

echo "foo" | strace -f -eopen /usr/libexec/dovecot/dovecot-lda -f anmeyer at anup.de -d anmeyer at anup.de

Regards
Daniel
-- 
https://plus.google.com/103021802792276734820



More information about the dovecot mailing list