[Pkg-exim4-users] string expansion problem

Andreas Metzler ametzler at downhill.at.eu.org
Sun Mar 21 10:22:38 UTC 2010

On 2010-03-21 Ross Boylan <RossBoylan at stanfordalumni.org> wrote:
> I'm having trouble getting a regular expression from
> update-exim4.conf.conf to the real configuration.  I'd appreciate some
> help.
> dc_relay_domains='! \\N^(vm-)?squeeze(00)?.kvm.lan\$\\N ; *.kvm.lan ; *.biostat.ucsf.edu'
> Observations:
> 1. Some level of quoting removal is going on, since the string in
> dc_relay_domains is not the same as in the config.autogenerated.

Pretty please directly set MAIN_RELAY_TO_DOMAINS instead of throwing
the regex into update-exim4.conf.

> 2. I don't think macro expansion alters the string, but I'm not sure.

Yes, it shouldn't do any un-quoting.

> 3. I believe that 
> domainlist relay_to_domains = ! \N^(vm-)?squeeze(00)?.kvm.lan$\N : *.kvm.lan : *.biostat.ucsf.edu
> will work to treat all kvm.lan domains except for self (vm-squeeze00.kvm.lan) as relay to domains.

Basically yes. Afaict the regex also matches e.g.
"vm-squeezezkvm.lan", you could throw in more backslashes.

cu andreas

More information about the Pkg-exim4-users mailing list