[Dovecot] convert old configuration file with doveconf : Unknown setting
Hi,
It happens when I try to convert this config (with the dovecot 2.0
beta4 release) :
test-mail:/tmp# dovecot -n -c ./dovecot.old.conf # 1.2.11: ./dovecot.old.conf # OS: Linux 2.6.26-2-686-bigmem i686 Debian 5.0.4 log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot_info.log protocols: imap listen: 127.0.0.1:30143 disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login login_user: aquaray login_greeting: Mail - test v2 login_process_per_connection: no login_process_size: 96 login_processes_count: 20 login_max_processes_count: 196 max_mail_processes: 10024 mail_max_userip_connections: 10000 verbose_proctitle: yes first_valid_uid: 89 mail_location: maildir:~/:INDEX=/var/mail/dovecot_indexes/%1d/%d/%n fsync_disable: yes maildir_very_dirty_syncs: yes mbox_write_locks: fcntl dotlock mail_drop_priv_before_exec: yes mail_plugins: quota imap_quota imap_client_workarounds: outlook-idle delay-newmail namespace: type: private separator: / inbox: yes list: yes subscriptions: yes namespace: type: private separator: / prefix: INBOX/ hidden: yes list: no subscriptions: yes lda: postmaster_address: postmaster@test-dovecotv2.aquaray.com hostname: test-dovecotv2.aquaray.com log_path: /var/log/dovecot-deliver.log info_log_path: /var/log/dovecot-deliver.log auth_socket_path: /var/run/dovecot-socket-auth/auth-master auth default-auth-master: mechanisms: plain login apop cram-md5 master_user_separator: * passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf socket: type: listen master: path: /var/run/dovecot-socket-auth/auth-master mode: 384 user: aquaray auth default: mechanisms: plain login apop cram-md5 cache_size: 2048 cache_ttl: 2000 master_user_separator: * count: 10 passdb: driver: sql args: /etc/dovecot/dovecot-sql-master.conf pass: yes master: yes passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf plugin: quota: maildir:User quota
test-mail:/tmp# /usr/local/dovecot2/bin/doveconf -n -c ./
dovecot.old.conf
# 2.0.beta4 (6891d20929ca): ./dovecot.old.conf
doveconf: Warning: Obsolete setting in ./dovecot.old.conf:26:
login_dir has been removed
doveconf: Warning: Obsolete setting in ./dovecot.old.conf:29:
login_chroot has been replaced by service { chroot }
doveconf: Fatal: Error in configuration file ./dovecot.old.conf line
29: Unknown setting: chroot
doveconf: Warning: Obsolete setting in ./dovecot.old.conf:32:
login_user has been replaced by service { user }
doveconf: Fatal: Error in configuration file ./dovecot.old.conf line
32: Unknown setting: user
doveconf: Warning: Obsolete setting in ./dovecot.old.conf:36:
login_process_size has been replaced by service { vsz_limit }
doveconf: Fatal: Error in configuration file ./dovecot.old.conf line
36: Unknown setting: vsz_limit
doveconf: Warning: Obsolete setting in ./dovecot.old.conf:39:
login_process_per_connection has been replaced by service
{ service_count }
doveconf: Fatal: Error in configuration file ./dovecot.old.conf line
39: Unknown setting: service_count
doveconf: Warning: Obsolete setting in ./dovecot.old.conf:42:
login_processes_count has been replaced by service { process_min_avail }
doveconf: Fatal: Error in configuration file ./dovecot.old.conf line
42: Unknown setting: process_min_avail
doveconf: Warning: Obsolete setting in ./dovecot.old.conf:45:
login_max_processes_count has been replaced by service { process_limit }
doveconf: Fatal: Error in configuration file ./dovecot.old.conf line
45: Unknown setting: process_limit
doveconf: Warning: Obsolete setting in ./dovecot.old.conf:48:
login_max_connections has been replaced by service { client_limit }
doveconf: Fatal: Error in configuration file ./dovecot.old.conf line
48: Unknown setting: client_limit
doveconf: Warning: Obsolete setting in ./dovecot.old.conf:75:
mail_drop_priv_before_exec has been replaced by service
{ drop_priv_before_exec }
doveconf: Fatal: Error in configuration file ./dovecot.old.conf line
75: Unknown setting: drop_priv_before_exec
doveconf: Warning: Obsolete setting in ./dovecot.old.conf:88:
max_mail_processes has been replaced by service { process_limit }
doveconf: Fatal: Error in configuration file ./dovecot.old.conf line
88: Unknown setting: process_limit
doveconf: Warning: Obsolete setting in ./dovecot.old.conf:91:
mail_process_size has been replaced by service { vsz_limit }
doveconf: Fatal: Error in configuration file ./dovecot.old.conf line
91: Unknown setting: vsz_limit
It does not understand the old 1.1 setting "ssl_disable".
test-mail:/tmp# /usr/local/dovecot2/bin/doveconf -n -c ./
dovecot.old.conf
# 2.0.beta4 (6891d20929ca): ./dovecot.old.conf
doveconf: Fatal: Error in configuration file ./dovecot.old.conf line
21: Unknown setting: ssl_disable
After removing all fatal error (comment all settings that are not
understood), it works.
If needed, I could test against the another other version (latest hg ?).
Regards,
Guillaume de Lafond Aqua Ray SARL
On Fri, 2010-04-02 at 23:23 +0200, de Lafond Guillaume wrote:
test-mail:/tmp# /usr/local/dovecot2/bin/doveconf -n -c ./ dovecot.old.conf # 2.0.beta4 (6891d20929ca): ./dovecot.old.conf doveconf: Warning: Obsolete setting in ./dovecot.old.conf:26:
login_dir has been removed doveconf: Warning: Obsolete setting in ./dovecot.old.conf:29:
login_chroot has been replaced by service { chroot } doveconf: Fatal: Error in configuration file ./dovecot.old.conf line
29: Unknown setting: chroot
I think this is fixed nowadays? At least I can't reproduce it anymore..
It does not understand the old 1.1 setting "ssl_disable".
Yeah, I only added v1.2 settings. But I guess I might as well add older settings too. Added ssl_disable now.
test-mail:/tmp# /usr/local/dovecot2/bin/doveconf -n -c ./ dovecot.old.conf # 2.0.beta4 (6891d20929ca): ./dovecot.old.conf doveconf: Warning: Obsolete setting in ./dovecot.old.conf:26: login_dir has been removed doveconf: Warning: Obsolete setting in ./dovecot.old.conf:29: login_chroot has been replaced by service { chroot } doveconf: Fatal: Error in configuration file ./dovecot.old.conf line 29: Unknown setting: chroot
I think this is fixed nowadays? At least I can't reproduce it
anymore..
Yes it is fixed for login_chroot. Thank you.
It does not understand the old 1.1 setting "ssl_disable". Yeah, I only added v1.2 settings. But I guess I might as well add
older settings too. Added ssl_disable now.
login_user, login_process_size, login_process_per_connection,
login_processes_count, login_max_processes_count,
login_max_connections, mail_drop_priv_before_exec, max_mail_processes
and mail_process_size does not work too. Are they 1.1 settings ?
Regards,
Guillaume de Lafond Aqua Ray SARL
On Sat, 2010-04-17 at 00:27 +0200, de Lafond Guillaume wrote:
It does not understand the old 1.1 setting "ssl_disable". Yeah, I only added v1.2 settings. But I guess I might as well add
older settings too. Added ssl_disable now.login_user, login_process_size, login_process_per_connection,
login_processes_count, login_max_processes_count,
login_max_connections, mail_drop_priv_before_exec, max_mail_processes
and mail_process_size does not work too. Are they 1.1 settings ?
All of them work in my test:
./doveconf -c foo > /dev/null doveconf: Warning: Obsolete setting in foo:1: login_user has been replaced by service { user } doveconf: Warning: Obsolete setting in foo:2: login_process_size has been replaced by service { vsz_limit } doveconf: Warning: Obsolete setting in foo:3: login_process_per_connection has been replaced by service { service_count } doveconf: Warning: Obsolete setting in foo:4: login_processes_count has been replaced by service { process_min_avail } doveconf: Warning: Obsolete setting in foo:5: login_max_processes_count has been replaced by service { process_limit } doveconf: Warning: Obsolete setting in foo:6: login_max_connections has been replaced by service { client_limit } doveconf: Warning: Obsolete setting in foo:7: mail_drop_priv_before_exec has been replaced by service { drop_priv_before_exec } doveconf: Warning: Obsolete setting in foo:8: max_mail_processes has been replaced by service { process_limit } doveconf: Warning: Obsolete setting in foo:9: mail_process_size has been replaced by service { vsz_limit }
No errors.
participants (2)
-
de Lafond Guillaume
-
Timo Sirainen