Bug 30218 - Предупреждения при парсинге конфига dovecot.conf
Summary: Предупреждения при парсинге конфига dovecot.conf
Status: NEW
Alias: None
Product: ALT Linux Centaurus
Classification: Distributions
Component: Ошибки работы (show other bugs)
Version: 7.0.3
Hardware: all Linux
: P3 minor
Assignee: Anton V. Boyarshinov
QA Contact: QA p6
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-01 17:52 MSK by Стас
Modified: 2014-09-29 19:42 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Стас 2014-08-01 17:52:01 MSK
После включения "домена" в веб-интерфейсе, при загрузке сервера в логе вижу пачку предупреждений об устаревших командах файла конфигурации dovecot. Кроме того, две строки конфига не содержат пробел перед знаком комментария.

Наколько я понимаю, исправить это - дело 10 минут.

Aug  1 18:15:44 zebra dovecot: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:23: 'imaps' protocol is no longer necessary, remove it
Aug  1 18:15:44 zebra dovecot: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:23: 'pop3s' protocol is no longer necessary, remove it
Aug  1 18:15:44 zebra dovecot: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:93: ssl_cert_file has been replaced by ssl_cert = <file
Aug  1 18:15:44 zebra dovecot: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:94: ssl_key_file has been replaced by ssl_key = <file
Aug  1 18:15:44 zebra dovecot: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:791: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
Aug  1 18:15:44 zebra dovecot: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:829: passdb pam {} has been replaced by passdb { driver=pam }
Aug  1 18:15:44 zebra dovecot: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:929: userdb passwd {} has been replaced by userdb { driver=passwd }
Aug  1 18:15:44 zebra dovecot: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:969: userdb ldap {} has been replaced by userdb { driver=ldap }
Aug  1 18:15:44 zebra dovecot: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:992: auth_user has been replaced by service auth { user }
Aug  1 18:15:44 zebra dovecot: doveconf: Warning: Configuration file /etc/dovecot/dovecot.conf line 1029: Ambiguous '#' character in line, treating it as comment. Add a space before it to remove this warning.
Aug  1 18:15:44 zebra dovecot: doveconf: Warning: Configuration file /etc/dovecot/dovecot.conf line 1034: Ambiguous '#' character in line, treating it as comment. Add a space before it to remove this warning.
Comment 1 Стас 2014-09-29 19:42:51 MSK
В логе ещё появилось:
Sep 29 14:50:03 zebra dovecot: config: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf

Сделал, как написано и сравнил конфиги (исключил комментарии):
--- dovecot-old.conf    2014-09-29 19:33:32.321714000 +0600
+++ dovecot-new.conf    2014-09-29 21:42:17.349379443 +0600
@@ -1,43 +1,31 @@
-protocols = imap pop3 lmtp
-listen = *
+auth_krb5_keytab = /etc/dovecot/dovecot.keytab
+auth_mechanisms = gssapi plain login
 disable_plaintext_auth = no
-ssl_cert_file = /var/lib/ssl/certs/dovecot.cert
-ssl_key_file = /var/lib/ssl/private/dovecot.key
+listen = *
 mail_location = mbox:~/mail:INBOX=/var/mail/%u
 mail_privileged_group = mail
-lock_method = fcntl
-mbox_read_locks = fcntl
 mbox_write_locks = fcntl
-protocol imap {
-}
-  
-protocol pop3 {
-}
-protocol lda {
-  postmaster_address = postmaster@mc-zebra.ru
-}
-auth_krb5_keytab = /etc/dovecot/dovecot.keytab
-auth default {
-  mechanisms = gssapi plain login
-  passdb pam {
-    args = session=yes dovecot
-  }
-  userdb passwd {
-  }
-  userdb ldap {
-    args = /etc/dovecot/ldap.conf
+passdb {
+  args = session=yes dovecot
+  driver = pam
+}
+service auth {
+  unix_listener /var/spool/postfix/private/auth {
+    group = postfix
+    mode = 0660
+    user = postfix
   }
   user = root
-  socket listen {
-    client {#postfix
-      path = /var/spool/postfix/private/auth
-      mode = 0660
-      user = postfix
-      group = postfix
-    }#postfix
-  }
 }
-dict {
+ssl_cert = </var/lib/ssl/certs/dovecot.cert
+ssl_key = </var/lib/ssl/private/dovecot.key
+userdb {
+  driver = passwd
+}
+userdb {
+  args = /etc/dovecot/ldap.conf
+  driver = ldap
 }
-plugin {
+protocol lda {
+  postmaster_address = postmaster@mc-zebra.ru
 }