[Pkg-exim4-users] selecting smarthost based on sender address
Marc Haber
mh+pkg-exim4-users at zugschlus.de
Sun May 31 16:56:07 UTC 2015
On Sat, May 30, 2015 at 10:03:17PM +0200, J G Miller wrote:
> At 14:02h, on Friday, May 29, 2015,
> in message <20150529120216.GB5059 at hans>,
> on the subject of "[Pkg-exim4-users] selecting smarthost based on sender address",
> Hans Ekbrand explained:
>
> > However, I used the concept outlined there and tried to apply it to
> > exim4 with split config.
>
> The exim4 configuration with lots of macro variables for turning on and off features
> is very good for black box operation where the user only wants to use one of the defined
> models of operation, so my suggestion for anybody wishing to do a custom setup is to keep
> things simple, and although keeping the split format with all the individual files for each
> section, remove all the macro tests keeping only things that you need, and just define simple
> macro variables with values specific to your case.
>
> No doubt the Debian maintainer will strongly object to this suggestion
I don't think so. It's fine to simplify things if you know what you're
doing. I would, however, suggest only simplifying files that need
local changes. That will greatly ease updates and reduce the number of
dpkg-conffile questions asked during updates.
> So I would suggest you check to see if DCsmarthost is defined. Is it beacause you are
> using dc_smarthost and not CDsmarthost?
dc_smarthost is the writing in update-exim4.conf.conf, which gets
translated to the exim macro DCsmarthost by update-exim4.conf. So if
you directly define the macro inside exim configuration, you need to
use DCsmarthost.
> Check to see what has been generated in the unified configuration file sans macros
> in /var/lib/exim4/config.autogenerated for missing parameters and ill-formed statements.
Unfortunately, exim -bV does not check for such errors, so we cannot
flag them at daemon start or configuration build time.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
More information about the Pkg-exim4-users
mailing list