[Dovecot] Dovecot auth process delays exiting if LDAPS passdb used

SATOH Fumiyasu fumiyas at osstech.jp
Mon Jun 11 19:39:47 EEST 2012


At Mon, 11 Jun 2012 18:32:35 +0300,
Timo Sirainen 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

> > (6) Stop dovecot service.
> > 
> >  # /etc/init.d/dovecot stop
> 
> And (7) /etc/init.d/dovecot start fails?

Yes: AIX 6.1, 7.1
No: Debian GNU/Linux stable, testing, unstable / Solaris 10

-- 
-- Name: SATOH Fumiyasu (fumiyas @ osstech co jp)
-- Business Home: http://www.OSSTech.co.jp/
-- GitHub Home: https://GitHub.com/fumiyas/

> > (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