FS#20809 - [dovecot] Copying example config files into /etc is causing problems
Attached to Project:
Arch Linux
Opened by Pierre Schmitz (Pierre) - Saturday, 11 September 2010, 08:05 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 27 February 2012, 18:20 GMT
Opened by Pierre Schmitz (Pierre) - Saturday, 11 September 2010, 08:05 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 27 February 2012, 18:20 GMT
|
Details
The example config files shouldn't be copied to
/etc/dovecot. There is probably no sane default config and
every user has to setup their own config according to their
needs.
Some files are really just examples and cannot be used directly; e.g. they are referring to other non-existing files etc.. One also need to add all those files to NoExtract in pacmn.conf to make sure they are not added on an update when deleted; especially if you automatically include all conf files that are found in /etc/dovecot/conf.d/ My suggestion: Please keep the upstream default and remove the following lines from the PKGBUILD: # install example conf files and ssl.conf install -d -m755 ${pkgdir}/etc/dovecot/conf.d install -m 644 ${pkgdir}/usr/share/doc/dovecot/example-config/conf.d/*.conf ${pkgdir}/etc/dovecot/conf.d install -m 644 ${pkgdir}/usr/share/doc/dovecot/example-config/conf.d/*.conf.ext ${pkgdir}/etc/dovecot/conf.d install -m 644 ${pkgdir}/usr/share/doc/dovecot/example-config/dovecot.conf ${pkgdir}/etc/dovecot/ install -d -m755 ${pkgdir}/etc/ssl install -m 644 ${srcdir}/$pkgname-$pkgver/doc/dovecot-openssl.cnf ${pkgdir}/etc/ssl/ You could provide a very small dovecot.conf and add a hint to /usr/share/doc/dovecot/example-config/ (I did something similar with lighttpd) |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Monday, 27 February 2012, 18:20 GMT
Reason for closing: Fixed
Additional comments about closing: sample conf files removed, two main files renamed to be safe and not break future updates.
Monday, 27 February 2012, 18:20 GMT
Reason for closing: Fixed
Additional comments about closing: sample conf files removed, two main files renamed to be safe and not break future updates.
Feb 27 15:16:08 server dovecot: master: Dovecot v2.1.1 starting up
Feb 27 15:16:16 server postfix/postfix-script[5459]: starting the Postfix mail system
Feb 27 15:16:16 server postfix/master[5460]: daemon started -- version 2.9.1, configuration /etc/postfix
Feb 27 15:16:38 server dovecot: auth: Warning: sql: Ignoring changed iterate_query in /etc/dovecot/conf.d/dovecot-sql.conf.ext, because userdb sql not used. (If this is intentional, set userdb_warning_disable=yes)
Feb 27 15:16:38 server dovecot: auth-worker(5502): mysql(/var/run/mysqld/mysqld.sock): Connected to database vmail
Feb 27 15:16:38 server dovecot: imap-login: Login: user=<pierre@archlinux.de>, method=PLAIN, rip=::1, lip=::1, mpid=5504, secured
Feb 27 15:16:38 server dovecot: imap(pierre@archlinux.de): Error: user pierre@archlinux.de: Initialization failed: namespace configuration error: inbox=yes namespace missing
Feb 27 15:16:38 server dovecot: imap(pierre@archlinux.de): Error: Invalid user settings. Refer to server log for more information.
So please reconsider this.