Hi,

I'm migrating an existing dovecot (1. series) to new hardware. The new dovecot is a 2. series.
I copied the old config and did a
doveconf -n -c /etc/dovecot/dovecot.conf > dovecot-2.conf
Then I moved the dovecot-2.conf to dovecot.conf and restarted dovecot.
When Postfix tries to deliver a message I get this error :

2013-09-16 11:00:10 auth: Fatal: net_connect_unix(auth-worker) in directory /run/dovecot failed: Permission denied (euid=65534(nobody) egid=65534(nogroup) missing +r perm: /run/dovecot/auth-worker, dir owned by 0:0 mode=0755) 2013-09-16 11:00:10 master: Error: service(auth): command startup failed, throttling

I tried different things with /run/dovecot/auth-worker, but the error remains. I tried to chmod 777 the socket, I chown-ed to dovecot:dovecot, vmail:vmail.

What am I missing ? AFAIK the sql-tables are OK.

Thanks.

doveconf -n is this :
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.5.0-39-generic x86_64 Ubuntu 12.04.3 LTS
auth_debug = yes
auth_mechanisms = plain login
auth_verbose = yes
base_dir = /var/run/dovecot/
disable_plaintext_auth = no
first_valid_uid = 499
info_log_path = /var/log/dovecot.debug
last_valid_uid = 499
log_path = /var/log/dovecot
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_debug = yes
mail_location = maildir:/var/vmail/%u
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = imap sieve
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-master {
    group = vmail
    mode = 0660
    user = vmail
  }
  user = nobody
}
service imap-login {
  executable = /usr/lib/dovecot/imap-login
  inet_listener imap {
    address = *
    port = 143
  }
  inet_listener imaps {
    address = *
    port = 993
  }
}
service imap {
  executable = /usr/lib/dovecot/imap
}
service pop3-login {
  executable = /usr/lib/dovecot/pop3-login
  inet_listener pop3 {
    address = *
    port = 110
  }
}
service pop3 {
  executable = /usr/lib/dovecot/pop3
}
ssl_ca = </etc/postfix/certificate/cacert.org.pem
ssl_cert = </etc/postfix/certificate/mailbox.pem
ssl_key = </etc/postfix/certificate/mailboxkey.pem
userdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
verbose_ssl = yes
protocol imap {
  imap_max_line_length = 64 k
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}
protocol sieve {
  managesieve_logout_format = bytes ( in=%i : out=%o )
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  info_log_path = /var/log/dovecot-lda.log
  log_path = /var/log/dovecot-lda-err.log
  mail_plugins = sieve
  postmaster_address = some-...@ace-electronics.be
  sendmail_path = /usr/lib/sendmail
}

Reply via email to