Debian exim conf.d inconvenience

Uncategorized — Антон Марчуков @ 23.03.06 15:00

Not to mention, that I always liked debian’s exim configuration structure split out into conf.d directories, it’s really very easy to manage it this way and the same time debconf will not be angry for your configuration. But, there is one thing I noticed toaday when configuring a mail server for Open Hardware project. I need exim to query LDAP for local users and domains, basically it’s rather easy to do, but when you need to include something into main section, you may want to past something before package mantainer’s parts. Current structure of main directory will not allow me to do it sane, since they have:

root@openh:/etc/exim4/conf.d/main# ls -l
-rw-r--r--  1 root root 4649 2005-05-27 09:59 01_exim4-config_listmacrosdefs
-rw-r--r--  1 root root 5761 2005-05-27 09:59 02_exim4-config_options
-rw-r--r--  1 root root 2283 2005-05-27 10:05 03_exim4-config_tlsoptions

parts numbered from 01 to 03 without breaks. I really need to include LDAP credentials before 01_exim4-config_listmacrosdefs cause the debconf macros in that file will be querying LDAP database and he needs a password for it.

As for other directories, they are sane, e.g.

root@openh:/etc/exim4/conf.d/router# ls -l
-rw-r--r--  1 root root  514 2005-05-27 09:59 00_exim4-config_header
-rw-r--r--  1 root root  648 2005-05-27 09:59 100_exim4-config_domain_literal
-rw-r--r--  1 root root 1118 2005-05-27 09:59 150_exim4-config_hubbed_hosts
-rw-r--r--  1 root root 2952 2005-05-27 09:59 200_exim4-config_primary
-rw-r--r--  1 root root  458 2005-05-27 09:59 300_exim4-config_real_local
-rw-r--r--  1 root root 1727 2005-05-27 09:59 400_exim4-config_system_aliases
-rw-r--r--  1 root root  878 2005-05-27 09:59 500_exim4-config_hubuser
-rw-r--r--  1 root root 1968 2005-05-27 09:59 600_exim4-config_userforward
-rw-r--r--  1 root root  403 2005-05-27 09:59 700_exim4-config_procmail
-rw-r--r--  1 root root  323 2005-05-27 09:59 800_exim4-config_maildrop
-rw-r--r--  1 root root  262 2005-05-27 09:59 900_exim4-config_local_user
-rw-r--r--  1 root root  472 2005-05-27 09:59 mmm_mail4root

00 is just a header and the first mainteiner part is 100, so I easily can define mine from 01 to 99 and it will be sourced before. Why did not mantainer implement the same in the main section?

I will consider reportbuging this. For now I just created mine 00 config:

root@openh:/etc/exim4/conf.d/main# ls -l
-rw-r--r--  1 root root  327 2006-03-23 13:45 00_local_exim4-config_ldapdefs
-rw-r--r--  1 root root 4649 2005-05-27 09:59 01_exim4-config_listmacrosdefs
-rw-r--r--  1 root root 5761 2005-05-27 09:59 02_exim4-config_options
-rw-r--r--  1 root root 2283 2005-05-27 10:05 03_exim4-config_tlsoptions

But, in my humble opinion, having manteiner’s parts start with 10 or 100 is a good idea.


No comments yet.

Leave a comment


This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2017 Anton Martchukov's Weblog | powered by WordPress with Barecity