hello,
dovecot2 implements "!include conf.d/*.conf" to build the configuration from multiple configfiles. So the settings for pop3, imap or lmtp may stay in different files.
unfortunately the "protocol = " does not allow a += logic to enables or disable inet listeners.
It would be nice to have protocols += imap in conf.d/imap.conf and protocols += managesieve in conf.d/managesieve.conf
This would make the include feature more consistent... or is it already possible ?
-- Andreas Schulze Internetdienste | P532
DATEV eG 90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196 E-Mail info @datev.de | Internet www.datev.de Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70 Vorstand Prof. Dieter Kempf (Vorsitzender) Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender) Dipl.-Kfm. Michael Leistenschneider Jörg Rabe v. Pappenheim Dipl.-Vw. Eckhard Schwarzer Vorsitzender des Aufsichtsrates: Reinhard Verholen
On 05/18/2010 11:26 AM Andreas Schulze wrote:
hello,
dovecot2 implements "!include conf.d/*.conf" to build the configuration from multiple configfiles. So the settings for pop3, imap or lmtp may stay in different files.
unfortunately the "protocol = " does not allow a += logic to enables or disable inet listeners.
It would be nice to have protocols += imap in conf.d/imap.conf and protocols += managesieve in conf.d/managesieve.conf
This would make the include feature more consistent... or is it already possible ?
'Works' already. # grep -rn ^protocols . ./conf.d/local.conf:90:protocols = $protocols imap ./conf.d/local.conf:109:protocols = $protocols lmtp ./conf.d/local.conf:120:protocols = $protocols pop3 ./conf.d/local.conf:136:protocols = $protocols managesieve ./dovecot.conf:25:protocols =
BUT (1), doveconf protocols
reports:
protocols = $protocols managesieve
doveconf: Fatal: Error in configuration file /path/2/dovecot/dovecot.conf: protocols: Unknown protocol: $protocols
But (2) doveconf -x protocols
works:
protocols = imap lmtp pop3 managesieve
Regards; Pascal
The trapper recommends today: fabaceae.1013811@localdomain.org
On Tue, 2010-05-18 at 11:48 +0200, Pascal Volk wrote:
BUT (1),
doveconf protocols
reports: protocols = $protocols managesieve doveconf: Fatal: Error in configuration file /path/2/dovecot/dovecot.conf: protocols: Unknown protocol: $protocolsBut (2)
doveconf -x protocols
works: protocols = imap lmtp pop3 managesieve
This is probably a bug.. doveconf should expand settings before
verifying them. Except the $var expansion is done while parsing the
config file, so that would need more code to parse the same lines into
two different internal structs. Also it still wouldn't be perfect if it
didn't expand the set = Maybe I just won't do anything about it until it becomes a real
problem. :)
participants (3)
-
Andreas Schulze
-
Pascal Volk
-
Timo Sirainen