dovecot dies with "Fatal: Socket already exists: /var/spool/postfix/private/dovecot-auth"

Bug #590408 reported by Akagi
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
dovecot (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Hello,

I currently try to setup a local mail infrastructure: Retrieving them via fetchmail, provide them locally by postfix and use dovecot for IMAP access.

I also want to use SMTP AUTH with SASL via dovecot.

In order to do so I added the following configuration to /etc/postfix/main.cf:

...
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_exceptions_networks =
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_sasl_type = dovecot
...

and a corresponding line in /etc/dovecot/dovecot.conf:

...
auth default {
  mechanisms = plain login
  socket listen {
    client {
      path = /var/spool/postfix/private/dovecot-auth
      mode = 0660
      user = postfix
      group = postfix
    }

  }
...

(full dovecot.conf is added to this report).

Now I try to start dovecot by "sudo service dovecot start" and get the message

* Restarting IMAP/POP3 mail server dovecot Last died with error (see error log for more information): Auth process died too early - shutting down
                                                                                                                 [ OK ]

on command line and

2010-06-06 16:07:52 auth(default): Fatal: Socket already exists: /var/spool/postfix/private/dovecot-auth
2010-06-06 16:07:52 dovecot: Fatal: Auth process died too early - shutting down

in the log.

I shut down postfix and deleted the socket manually, but this does not help. Also I set the "count = 1" in the "auth default" section (I found some report that more that one auth process is a problem back in 2006?). The problem prevails.

So I regard this as an error.

Best regards!

Revision history for this message
Akagi (akagi010) wrote :
Revision history for this message
Akagi (akagi010) wrote :

Hello,

sorry, I totally forgot:

I am using

Ubuntu 10.04 AMD64 with

Linux 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010 x86_64 GNU/Linux

and the packages:

dovecot-common 1:1.2.9-1ubuntu6
dovecot-imapd 1:1.2.9-1ubuntu6
dovecot-pop3d 1:1.2.9-1ubuntu6
dovecot-postfix 1:1.2.9-1ubuntu6
postfix 2.7.0-1

Best regards!

Revision history for this message
Ante Karamatić (ivoks) wrote : Re: [Bug 590408] [NEW] dovecot dies with "Fatal: Socket already exists: /var/spool/postfix/private/dovecot-auth"

On 06.06.2010 16:11, Akagi wrote:

> and a corresponding line in /etc/dovecot/dovecot.conf:

You configured the same socket twice. dovecot-postfix package configures
auth socket for you. Check /etc/dovecot/auth.d/*.

Chuck Short (zulcss)
Changed in dovecot (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Akagi (akagi010) wrote :

Hello,

Ok, you are right. There is indeed an entry in /etc/dovecot/auth.d/01-dovecot-postfix.auth.

Sadly this entry has no effect as long as the auth default/socket listen/client entry is not activated like this:

auth default {
  mechanisms = plain login
  socket listen {
    client {
      #path = /var/spool/postfix/private/dovecot-auth
      #mode = 0660
      #user = postfix
      #group = postfix
    }
  }

Now with the comments the values of /etc/dovecot/auth.d/01-dovecot-postfix.auth are used.

IMHO this is maybe not error anymore, but an ugly behaviour.

Best regards!

Revision history for this message
Bryce Harrington (bryce) wrote :

Closing per the last comment, that it was a usage issue rather than a bug in the package.

Changed in dovecot (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.