[Dovecot] config file includes
Hi all,
ok, I couldn't quite find this in any of the documentation, so I figured I would ask here.
In preparation to move to version 2.0 to take advantage of the mutiple IP and SSL cert options that are coming, it would be really nice to be able to include other config files in the main config file, so that I don't have to edit the main config in order to add new IP addresses or certs...
Does dovecot currently have the ability to include another config file when it is parsing the main config??? If not, is that something that we can put on the wish list?
Thanks,
Tim.
On 25.5.2010, at 22.48, Tim Traver wrote:
Does dovecot currently have the ability to include another config file when it is parsing the main config??? If not, is that something that we can put on the wish list?
!include another.conf has worked since .. v1.1?
!include *.conf works also in v2.0. Not sure about v1.x.
If you don't specify an absolute path, it's relative to the parent (or main?) config directory (at least in v2.0, not sure about v1.x).
Thanks Timo! I couldn't find it in any of the docs but I'm sure its buried there somewhere...
Tim.
On 5/25/2010 3:16 PM, Timo Sirainen wrote:
On 25.5.2010, at 22.48, Tim Traver wrote:
Does dovecot currently have the ability to include another config file when it is parsing the main config??? If not, is that something that we can put on the wish list?
!include another.conf has worked since .. v1.1?
!include *.conf works also in v2.0. Not sure about v1.x.
If you don't specify an absolute path, it's relative to the parent (or main?) config directory (at least in v2.0, not sure about v1.x).
Wait, I forgot another quesiton about it...
in the include, does it insert the config code into the section that the include was called from? for example, if I'm in the middle of the imap section and decide to include the file, does it treat it like it is inserted in that location?
Thanks,
Tim.
On 5/25/2010 3:16 PM, Timo Sirainen wrote:
On 25.5.2010, at 22.48, Tim Traver wrote:
Does dovecot currently have the ability to include another config file when it is parsing the main config??? If not, is that something that we can put on the wish list?
!include another.conf has worked since .. v1.1?
!include *.conf works also in v2.0. Not sure about v1.x.
If you don't specify an absolute path, it's relative to the parent (or main?) config directory (at least in v2.0, not sure about v1.x).
It works inside sections.
On Tue, 2010-05-25 at 15:27 -0700, Tim Traver wrote:
Wait, I forgot another quesiton about it...
in the include, does it insert the config code into the section that the include was called from? for example, if I'm in the middle of the imap section and decide to include the file, does it treat it like it is inserted in that location?
Thanks,
Tim.
On 5/25/2010 3:16 PM, Timo Sirainen wrote:
On 25.5.2010, at 22.48, Tim Traver wrote:
Does dovecot currently have the ability to include another config file when it is parsing the main config??? If not, is that something that we can put on the wish list?
!include another.conf has worked since .. v1.1?
!include *.conf works also in v2.0. Not sure about v1.x.
If you don't specify an absolute path, it's relative to the parent (or main?) config directory (at least in v2.0, not sure about v1.x).
participants (2)
-
Tim Traver
-
Timo Sirainen