Bug#556108: Some note about split-file config schema...

Marco Gaiarin gaio at sv.lnf.it
Fri Nov 13 15:35:30 UTC 2009


Package: exim4-config
Version: 4.69-9
Severity: wishlist


I'm a long term exim and debian user; in the past i use a monolithic
file, but now i've to manage dozen of servers, everyone with some
particularity, so i'm mofing to split file to handle better this
situation, and do smooth upgrade.

I've discovered that split file is very cool, i can add feature and
options more or less without touching original debian config files, but
i've also found that some modification are needed, and i think they are
general, not specific to my setup.

So this mail, hoping will be useful. ;)

1) i've discover that i have to modify 01_exim4-config_listmacrosdefs
 adding some little macro redefinition because there's no separation
between the load of debconf macro (UPEX4CmacrosUPEX4C = 1) and the
definition of the main list (local_domains, relay_to_domains,
relay_from_hosts).
Effectively i can redefine macros with '==', but lists cannot be
redefined later so i suggest to put the main list definition in a
separate file so the macro can be redefined.

2) ACL schema are very flexible, but still i was force to alter some
 files to enable callback:

 neuromante:/etc/exim4/conf.d/acl# diff -ud 30_exim4-config_check_rcpt.orig 30_exim4-config_check_rcpt
 --- 30_exim4-config_check_rcpt.orig	2009-11-11 14:29:54.000000000 +0100
 +++ 30_exim4-config_check_rcpt	2009-11-11 14:29:54.000000000 +0100
 @@ -330,7 +330,11 @@
    accept
      domains = +relay_to_domains
      endpass
 +    .ifndef LNF_RELAY_VERIFY_OPTIONS
      verify = recipient
 +    .else
 +    verify = recipient/LNF_RELAY_VERIFY_OPTIONS
 +    .endif
  
  
    # At this point, the address has passed all the checks that have been

Generally speaking i think it suffices in files in acl/ subdir to split
for every type (mail, rcpt, data, ...) the file in a 'start' file and
and 'end' file that apply known accept rules: practically speaking for
acl could be simply splitting the file in two, one like now minus the
final 'accept' rule and one with the 'accept' rule.

Same things for transports: i use mbox format but the mailbox is on
$HOME/.inbox: i was forced to modify the file, while a simple macro
would solve this.

Ok, probably accept every 'macro add request' out there is impossible,
but adding callout for +relay_to_domains or altering the main mailbox
seems to me reasonable request. ;)


I hope i was clear and useful. Thanks.

-- 
dott. Marco Gaiarin				    GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it	  tel +39-0434-842711  fax +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
	   http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)





More information about the Pkg-exim4-maintainers mailing list