[Dovecot] Configuration Update From v1.x To v2.0.1-2
I just upgraded my Dovecot IMAP package on my mail server and when I restarted the service, I got the following warnings... doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:12: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:14: passdb pam {} has been replaced by passdb { driver=pam } doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:16: userdb passwd {} has been replaced by userdb { driver=passwd } doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:18: auth_user has been replaced by service auth { user } The list was much longer but I was able to self resolve them. I was wondering if someone here can assist me in converting my 'dovecot.conf' file? Below is how my dovecot.conf file appears: protocols = imap disable_plaintext_auth = yes log_timestamp = "%b %d %H:%M:%S " mail_location = maildir:~/mail auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@ protocol imap { imap_client_workarounds = delay-newmail tb-extra-mailbox-sep } auth default { mechanisms = plain login passdb pam { } userdb passwd { } user = root socket listen { client { path = /var/run/dovecot/auth-client user = postfix group = postfix mode = 0660 } } } ***doveconf -n*** [root@mail /]# doveconf -n # 2.0.1: /etc/dovecot/dovecot.conf doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:12: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:14: passdb pam {} has been replaced by passdb { driver=pam } doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:16: userdb passwd {} has been replaced by userdb { driver=passwd } doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:18: auth_user has been replaced by service auth { user } # OS: Linux 2.6.35 x86_64 auth_mechanisms = plain login mail_location = maildir:~/mail passdb { driver = pam } protocols = imap service auth { unix_listener auth-client { group = postfix mode = 0660 user = postfix } user = root } userdb { driver = passwd } protocol imap { imap_client_workarounds = delay-newmail tb-extra-mailbox-sep }
On Thu, Aug 26, 2010 at 3:38 PM, Timo Sirainen tss@iki.fi wrote:
On Thu, 2010-08-26 at 14:52 -0400, Carlos Mennens wrote:
The list was much longer but I was able to self resolve them. I was wondering if someone here can assist me in converting my 'dovecot.conf' file?
doveconf -n > dovecot-new.conf
Timo,
I ran that command and unless I am missing something...it didn't help.
[root@mail conf.d]# doveconf -n > dovecot-new.conf doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:12: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:14: passdb pam {} has been replaced by passdb { driver=pam } doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:16: userdb passwd {} has been replaced by userdb { driver=passwd } doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:18: auth_user has been replaced by service auth { user }
On 26/08/2010 20:46, Carlos Mennens wrote:
On Thu, Aug 26, 2010 at 3:38 PM, Timo Sirainentss@iki.fi wrote:
On Thu, 2010-08-26 at 14:52 -0400, Carlos Mennens wrote:
The list was much longer but I was able to self resolve them. I was wondering if someone here can assist me in converting my 'dovecot.conf' file? doveconf -n> dovecot-new.conf
I ran that command and unless I am missing something...it didn't help.
[root@mail conf.d]# doveconf -n> dovecot-new.conf doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:12: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely The command Timo gave you writes out the new configuration to dovecot-new.conf. You need
I recommend you backup your existing configuration first, then try and replace it. Like so:
$ cd /etc/dovecot/ $ cp dovecot.conf dovecot.conf-backup-v1 $ dovecot -n > dovecot-new.conf (compare dovecot-new.conf, make sure it looks sane) $ mv dovecot-new.conf dovecot.conf
Now restart the daemon. It is very important that you backup the existing configuration in case and also that you think about what each command does before entering it.
David
On Thu, Aug 26, 2010 at 3:52 PM, David lists@edeca.net wrote:
The command Timo gave you writes out the new configuration to dovecot-new.conf. You need
I recommend you backup your existing configuration first, then try and replace it. Like so:
$ cd /etc/dovecot/ $ cp dovecot.conf dovecot.conf-backup-v1 $ dovecot -n > dovecot-new.conf (compare dovecot-new.conf, make sure it looks sane) $ mv dovecot-new.conf dovecot.conf
Now restart the daemon. It is very important that you backup the existing configuration in case and also that you think about what each command does before entering it.
Thanks. I copied the config that was in dovecot-new.conf into dovecot.conf. Now when I attempt to login, it tells me it can't find my SSL certificates when they're clearly there. Is there something special I need to do in /etc/dovecot/conf.d/10-ssl.conf? My mail.key and mail.crt are correctly pathed in my now correct dovecot.conf file:
# 2.0.1: /etc/dovecot/dovecot.conf auth_mechanisms = plain login mail_location = maildir:~/mail passdb { driver = pam } protocols = imap service auth { unix_listener auth-client { group = postfix mode = 0660 user = postfix } user = root } ssl_cert = /etc/ssl/certs/mail.crt ssl_key = /etc/ssl/private/mail.key userdb { driver = passwd } protocol imap { imap_client_workarounds = delay-newmail tb-extra-mailbox-sep }
Am 26.08.2010 um 22:00 schrieb Carlos Mennens:
Thanks. I copied the config that was in dovecot-new.conf into dovecot.conf. Now when I attempt to login, it tells me it can't find my SSL certificates when they're clearly there. Is there something special I need to do in /etc/dovecot/conf.d/10-ssl.conf? My mail.key and mail.crt are correctly pathed in my now correct dovecot.conf file:
You need to read them in like in the example in the file config file:
ssl_cert = /etc/ssl/certs/mail.crt ssl_key = /etc/ssl/private/mail.key
ssl_cert =
On Thu, Aug 26, 2010 at 4:10 PM, Thomas Leuxner tlx@leuxner.net wrote:
Am 26.08.2010 um 22:00 schrieb Carlos Mennens:
Thanks. I copied the config that was in dovecot-new.conf into dovecot.conf. Now when I attempt to login, it tells me it can't find my SSL certificates when they're clearly there. Is there something special I need to do in /etc/dovecot/conf.d/10-ssl.conf? My mail.key and mail.crt are correctly pathed in my now correct dovecot.conf file:
You need to read them in like in the example in the file config file:
ssl_cert = /etc/ssl/certs/mail.crt ssl_key = /etc/ssl/private/mail.key
ssl_cert =
OK - I made the mistake of applying the wrong way around...
Thanks!
participants (4)
-
Carlos Mennens
-
David
-
Thomas Leuxner
-
Timo Sirainen