[Dovecot] v2.0 configuration paths
In Dovecot v2.0 I'm splitting dovecot-example.conf to multiple files. It's probably annoying to have tons of dovecot-*-example.conf files, so what do you think about:
Change default sysconfdir from $prefix/etc to $prefix/etc/dovecot (that's what most distros do anyway)
Install *.conf files to $sysconfdir/example/ without the "-example" part in any of the config files.
So new installations would then start with "mv example/* ."
El 31/08/09 12:03, Timo Sirainen escribió:
In Dovecot v2.0 I'm splitting dovecot-example.conf to multiple files. It's probably annoying to have tons of dovecot-*-example.conf files, so what do you think about:
Change default sysconfdir from $prefix/etc to $prefix/etc/dovecot (that's what most distros do anyway)
Install *.conf files to $sysconfdir/example/ without the "-example" part in any of the config files.
So new installations would then start with "mv example/* ."
Greetings *
I'll would like to see a config dir like /etc/dovecot.d, and, inside it something like:
network.example namespaces.example logging.example protocols.example security.example plugins.example
But if i got to choose only from the two that you listed, i'll go for option 2.
Kind Regards.
--
Julio C. Ortega Equipo de Infraestructura ONUVA | Integración de Sistemas
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Julio C. Ortega said the following on 31/08/09 19:01:
But if i got to choose only from the two that you listed, i'll go for option 2.
IMHO the best solution is the Apache way: you can have either a monolithic httpd.conf file, or you can #include a single file, or you can #include a wildcard such as myconf/*.conf
Ciao, luigi
/ +--[Luigi Rosa]-- \
Go directly to jail. Do not pass Go, do not collect $200. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkqcA7UACgkQ3kWu7Tfl6ZTwHQCgkFjdZHbeHaYQGcwGHFc12/Sd ElAAniA4H0RVvc9JqEoS2EHppXUe5NPJ =hSOA -----END PGP SIGNATURE-----
On Mon, 2009-08-31 at 12:31 -0430, Julio C. Ortega wrote:
I'll would like to see a config dir like /etc/dovecot.d, and, inside it something like:
network.example namespaces.example logging.example protocols.example security.example plugins.example
Hmm. I kind of like it, except several config files are context-specific and can't be included with simple "!include *.conf". Hmm. They're probably going to be confusing in any case.. Maybe something like:
# main config, basically says !include conf.d/*.conf /etc/dovecot/dovecot.conf
# the actual configs /etc/dovecot/conf.d/*.conf
# context-specific configs that get referenced in the .conf files /etc/dovecot/dovecot-sql.conf /etc/dovecot/dovecot-ldap.conf /etc/dovecot/dovecot-db.conf /etc/dovecot/dovecot-dict-sql.conf
But if i got to choose only from the two that you listed, i'll go for option 2.
Actually they weren't options. Just two steps. :)
On Mon, Aug 31, 2009 at 01:28:50PM -0400, Timo Sirainen wrote:
# main config, basically says !include conf.d/*.conf /etc/dovecot/dovecot.conf
# the actual configs /etc/dovecot/conf.d/*.conf
Why in another subdir? Why not everything in /etc/dovecot? Also, conf.d sounds so Linuxy. :-)
Geert
-- Geert Hendrickx -=- ghen@telenet.be -=- PGP: 0xC4BB9E9F This e-mail was composed using 100% recycled spam messages!
On Mon, 2009-08-31 at 19:51 +0200, Geert Hendrickx wrote:
On Mon, Aug 31, 2009 at 01:28:50PM -0400, Timo Sirainen wrote:
# main config, basically says !include conf.d/*.conf /etc/dovecot/dovecot.conf
# the actual configs /etc/dovecot/conf.d/*.conf
Why in another subdir? Why not everything in /etc/dovecot?
Because of the part you dropped out of your quote. :) Some of the .conf files can't be included. For example there's:
auth default { .. passdb sql { args = dovecot-sql.conf } }
Perhaps some day that could become:
auth default { .. passdb sql { !include dovecot-sql.conf } }
In either case, if dovecot-sql.conf gets !included in the root level it'll generate errors about unknown settings.
On Seg, 31 Ago 2009, Timo Sirainen wrote:
In Dovecot v2.0 I'm splitting dovecot-example.conf to multiple files. It's probably annoying to have tons of dovecot-*-example.conf files, so what do you think about:
- Change default sysconfdir from $prefix/etc to $prefix/etc/dovecot (that's what most distros do anyway)
That's a good change.
- Install *.conf files to $sysconfdir/example/ without the "-example" part in any of the config files.
So new installations would then start with "mv example/* ."
However, I don't think anywhere under /etc is the best place for
example configuration files. I think they belong rather under
/usr/share, though is no big deal if they are elsewhere.
-- Eduardo M KALINOWSKI eduardo@kalinowski.com.br
On Mon, 2009-08-31 at 14:17 -0300, Eduardo M KALINOWSKI wrote:
- Install *.conf files to $sysconfdir/example/ without the "-example" part in any of the config files.
So new installations would then start with "mv example/* ."
However, I don't think anywhere under /etc is the best place for
example configuration files. I think they belong rather under
/usr/share, though is no big deal if they are elsewhere.
Yeah, maybe that's better. $datarootdir/dovecot/example-config/ and if dovecot.conf isn't found when starting up mention the path to the example dir.
How about this:
http://dovecot.org/tmp/example-config/
or the same in:
http://dovecot.org/tmp/example-config.tar.gz
master.conf needs more comments
mail.conf is kind of bloated, wonder if I could do something about it
Hi Timo,
http://dovecot.org/tmp/example-config/ [..]
- master.conf needs more comments
- mail.conf is kind of bloated, wonder if I could do something about it
Great. It's really nice like that. You might use numbers as prefixes if you want to keep a kind of priority for dovecot or usually more the user to give him a sense of what's important and what's less important (high number). It's the "Debian Amavis way".
conf.d/ 10-mail.conf 20-auth.conf 31-pop3.conf 32-imap.conf 50-master.conf 60-ssl.conf 85-plugins.conf 99-user-params.conf
Anyway, what you have done, is perfect. That's a big step for clarity. mail.conf is not bloated, comments are needed so ...
Cheers, Thomas.
Hello, Dovecot. You wrote 31 августа 2009 г., 20:33:57:
- Change default sysconfdir from $prefix/etc to $prefix/etc/dovecot (that's what most distros do anyway) Yes!
- Install *.conf files to $sysconfdir/example/ without the "-example" part in any of the config files. And yes!
-- // Black Lion AKA Lev Serebryakov lev@serebryakov.spb.ru
On Mon, 2009-08-31 at 12:33 -0400, Timo Sirainen wrote:
In Dovecot v2.0 I'm splitting dovecot-example.conf to multiple files. It's probably annoying to have tons of dovecot-*-example.conf files, so what do you think about:
- Change default sysconfdir from $prefix/etc to $prefix/etc/dovecot (that's what most distros do anyway)
Good idea.
- Install *.conf files to $sysconfdir/example/ without the "-example" part in any of the config files.
Not so sure about that one, well yes into example/, but I'd still keep the word example in the filename, because no mater how well warned, there will always be those who blindly cp blah.conf ../ destroying any pre-existing files
Cheers
participants (8)
-
Eduardo M KALINOWSKI
-
Geert Hendrickx
-
Julio C. Ortega
-
Lev Serebryakov
-
Luigi Rosa
-
Noel Butler
-
Thomas
-
Timo Sirainen