[Pkg-exim4-users] Newbie - Where to write marcos?

Dermot Paikkos dermot at sciencephoto.com
Fri Apr 7 14:31:43 UTC 2006


On 7 Apr 2006 at 13:44, Marc Haber wrote:

> On Fri, Apr 07, 2006 at 12:10:01PM +0100, Dermot Paikkos wrote:
> > I have opted for the split configuration and am trying to set a few
> > values, namely LOCAL_DOMAINS and LOCAL_DELIVERY
> > 
> > I thought I should put these local variables in a separate file
> > somewhere under /etc/exim4/conf.d.
> > 
> > Perhaps I have misread the README but I thought I could have a file 
> > /etc/exim4/conf.d/main/00_myserver_settings with this is:
> > 
> > LOCAL_DOMAINS=/path/to/list/of/domains
> > LOCAL_DELIVERY=maildir
> > 
> > Then if I update exim at some stage my local settings will be kept
> > but that isn't working. 
> > 
> > Is it possible to maintain a separate file with local setting in? If
> > so, how and where?
> 
> 2.1.2. Using Exim Macros to control the configuration
> 
> For split configuration, you can drop the local configuration file
> anywhere in /etc/exim4/conf.d/main. Just make sure it gets read before
> the macro is first used. 000_localmacros is a possible name,
> guaranteeing first order. For a non-split configuration,
> /etc/exim4/exim4.conf.localmacros gets read before
> /etc/exim4/exim4.conf.template.
> 
> This is a quote from README.Debian.gz. Does it help?

Yes I have seen that, that is the bit I was referring to. It didn't 
work for me. 

At the moment I have modified the distro files directly and I am sure 
that defeats the purpose of using a split config (see section 
"Benefits of split configuration" a little further down the page).

So I have this 
.ifndef MAIN_LOCAL_DOMAINS
#MAIN_LOCAL_DOMAINS = DEBCONFlocal_domainsDEBCONF
MAIN_LOCAL_DOMAINS = /etc/exim4/local.domains
.endif
domainlist local_domains = MAIN_LOCAL_DOMAINS

in the /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs

I'd like to have the set-up I outlined above and according to the 
docs it should be possible but I don't see why it wasn't working.

Perhaps I need to put the LOCAL_DELIVERY under a different config dir 
like ~/transport?

Thanx.
Dp.










More information about the Pkg-exim4-users mailing list