[Dovecot] Dovecot auth process delays exiting if LDAPS passdb used
Timo Sirainen
tss at iki.fi
Mon Jun 11 18:32:35 EEST 2012
On 11.6.2012, at 18.24, SATOH Fumiyasu wrote:
> If an auth client remains a connection to dovecot/auth,
> dovecot/auth does NOT exit immediately when dovecot master exits.
Ah, now we're getting somewhere :) Yes, this is correct and intentional. But it should still close the listeners, so this shouldn't happen:
May 24 00:42:10 build-aix6 mail:err|error dovecot: master: Error: service(auth): Socket already exists: /opt/osstech/var/run/dovecot/auth-login
> (1) Install Postfix and Dovecot.
>
> # apt-get install postfix dovecot
>
> (2) Configure Postfix /etc/postfix/main.cf with the following:
>
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_security_options =
> smtpd_sasl_type = dovecot
> smtpd_sasl_path = private/auth
>
> (3) Configre Dovecot /etc/dovecot/conf.d/10-master with the following:
>
> service auth {
> unix_listener auth-userdb {
> }
> unix_listener /var/spool/postfix/private/auth {
> mode = 0666
> }
> }
>
> (4) Start postfix and dovecot service.
>
> # /etc/init.d/dovecot start
> # /etc/init.d/postfix start
>
> (5) Invoke Postfix smtpd(8), it connects to dovecot/auth socket.
>
> $ telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 sugar.osstech.co.jp ESMTP Postfix
> AUTH PLAIN dummy
> 535 5.7.8 Error: authentication failed:
> QUIT
> 221 2.0.0 Bye
> Connection closed by foreign host.
>
> Or use netcat-openbsd to connect to dovecot/auth socket:
>
> # nc.openbsd -U /var/spool/postfix/private/dovecot-auth &
>
> (6) Stop dovecot service.
>
> # /etc/init.d/dovecot stop
And (7) /etc/init.d/dovecot start fails?
More information about the dovecot
mailing list