[Dovecot] doveconf: Warning: Obsolete settings.... in /etc/dovecot/dovecot.conf: ...
Got duplicated Warnings from the "doveconf -n" output ! Can anyone explain and fix them ? thx!
admin@server:/etc/dovecot$ doveconf -n
# 2.0.13: /etc/dovecot/dovecot.conf doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:716: protocol managesieve {} has been replaced by protocol sieve { } doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:888: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:926: passdb pam {} has been replaced by passdb { driver=pam } doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1039: userdb passwd {} has been replaced by userdb { driver=passwd } doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1101: auth_user has been replaced by service auth { user } doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:716: protocol managesieve {} has been replaced by protocol sieve { } doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:888: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:926: passdb pam {} has been replaced by passdb { driver=pam } doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1039: userdb passwd {} has been replaced by userdb { driver=passwd } doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1101: auth_user has been replaced by service auth { user } # OS: Linux 3.0.0-16-server x86_64 Ubuntu 11.10 log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:~/Maildir mail_privileged_group = mail 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 passdb { driver = pam
- Ignored: } passdb { driver = pam } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap pop3 sieve service auth { unix_listener /var/spool/postfix/private/auth-client { group = postfix mode = 0660 user = postfix } unix_listener /var/spool/postfix/private/dovecot-auth { group = postfix mode = 0660 user = postfix } user = root } ssl_cert = </etc/ssl/certs/dovecot.pem ssl_cipher_list = ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM ssl_key = </etc/ssl/private/dovecot.pem userdb { driver = passwd } userdb { driver = passwd } protocol imap { imap_client_workarounds = delay-newmail mail_max_userip_connections = 10 } protocol pop3 { mail_max_userip_connections = 10 pop3_client_workarounds = outlook-no-nuls oe-ns-eoh pop3_uidl_format = %08Xu%08Xv } protocol lda { deliver_log_format = msgid=%m: %$ mail_plugins = sieve postmaster_address = postmaster quota_full_tempfail = yes rejection_reason = Your message to <%t> was automatically rejected:%n%r }
On 4.3.2012, at 8.25, D Chen wrote:
Got duplicated Warnings from the "doveconf -n" output ! Can anyone explain and fix them ? thx!
v2.0 has different configuration from v1.x, you need to migrate the configuration the way it says:
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
So, doveconf -n > dovecot-new.conf mv dovecot-new.conf /etc/dovecot/dovecot.conf
That should do it.
On 2012-03-04 7:36 AM, Timo Sirainen <tss@iki.fi> wrote:
So, doveconf -n> dovecot-new.conf mv dovecot-new.conf /etc/dovecot/dovecot.conf
That should do it.
One suggestion... since 'doveconf -n' is sort of a clone of 'postconf -n', maybe it would be a good idea to clone the postfix way for upgrading the configuration file as well?
Postfix does it as:
postfix upgrade-configuration
Man page details for options are here:
http://www.postfix.org/postfix.1.html
I hate to keep suggesting that you 'copy' anyone or anything, but if you *are*, I think postfix is one of the ones you'd want to emulate... ;)
Just a thought... it would be more intuitive for those of us who use postfix with dovecot (and I think there are a lot)...
--
Best regards,
Charles
Thanks Timo,
I believe I'm running dovecot 2.0.x when first installed Ubuntu server 11.04 then upgraded to 11.10. The primary reason I posted this question was not only the warning msg but also looking for the default dovecot.conf so that I can modify from the scratch, however, I couldn't find the "auth default" section or the "socket listen" option in the dovecot.conf; note that the "auth default" section and "socket listen" need to be modified according Ubuntu 11.10 serverguide for Dovecot SASL configuration. There is a dovecot.conf.ucf under /etc/dovecot which contain the "auth default" and "socket listen" stuff, I renamed it to dovecot.conf and modified the "auth default" section and "socket listen" option there accordingly. Note that the dovecot.conf.ucf file is about 50k while the new dovecot.conf generated from the "doveconf -n" is about 4k ! Now I'm confused of using of which dovecot.conf I should use (the one generated from the "doveconf -n" or the one renamed from the dovecot.conf.ucf" ?)
Does your dovecot.conf contain the "auth default" section and the "socket listen" ? If not, should I complain to the Ubuntu serverguide ?
I also posted the similar question to ubuntuforums, but not much response.
Hope you understand my point.
It's very frustrated!
Sent from my iPhone
On Mar 4, 2012, at 4:36 AM, Timo Sirainen <tss@iki.fi> wrote:
On 4.3.2012, at 8.25, D Chen wrote:
Got duplicated Warnings from the "doveconf -n" output ! Can anyone explain and fix them ? thx!
v2.0 has different configuration from v1.x, you need to migrate the configuration the way it says:
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
So, doveconf -n > dovecot-new.conf mv dovecot-new.conf /etc/dovecot/dovecot.conf
That should do it.
Dovecot v2.0 changed the settings a lot compared to v1.x. There are no longer auth default or socket listen sections. The doveconf -n generated dovecot.conf should contain all of the settings that you had in v1.x, converted for v2.0. So you should be able to use it directly without problems.
If you want, you could look for Dovecot's example-config that probably comes with Ubuntu (in /usr/share/doc/dovecot*/ maybe?), copy those to /etc/dovecot/ and change the settings in there based on the generated dovecot.conf. In any case you shouldn't try to add those v1.x-specific things back there anymore, since they'll add back the "obsolete settings" warnings.
On 5.3.2012, at 5.57, Dennis Chen wrote:
Thanks Timo,
I believe I'm running dovecot 2.0.x when first installed Ubuntu server 11.04 then upgraded to 11.10. The primary reason I posted this question was not only the warning msg but also looking for the default dovecot.conf so that I can modify from the scratch, however, I couldn't find the "auth default" section or the "socket listen" option in the dovecot.conf; note that the "auth default" section and "socket listen" need to be modified according Ubuntu 11.10 serverguide for Dovecot SASL configuration. There is a dovecot.conf.ucf under /etc/dovecot which contain the "auth default" and "socket listen" stuff, I renamed it to dovecot.conf and modified the "auth default" section and "socket listen" option there accordingly. Note that the dovecot.conf.ucf file is about 50k while the new dovecot.conf generated from the "doveconf -n" is about 4k ! Now I'm confused of using of which dovecot.conf I should use (the one generated from the "doveconf -n" or the one renamed from the dovecot.conf.ucf" ?)
Does your dovecot.conf contain the "auth default" section and the "socket listen" ? If not, should I complain to the Ubuntu serverguide ?
I also posted the similar question to ubuntuforums, but not much response.
Hope you understand my point.
It's very frustrated!
Sent from my iPhone
On Mar 4, 2012, at 4:36 AM, Timo Sirainen <tss@iki.fi> wrote:
On 4.3.2012, at 8.25, D Chen wrote:
Got duplicated Warnings from the "doveconf -n" output ! Can anyone explain and fix them ? thx!
v2.0 has different configuration from v1.x, you need to migrate the configuration the way it says:
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
So, doveconf -n > dovecot-new.conf mv dovecot-new.conf /etc/dovecot/dovecot.conf
That should do it.
participants (4)
-
Charles Marcus
-
D Chen
-
Dennis Chen
-
Timo Sirainen