Re: [exim] Setting primary_hostname via command?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: Toralf Lund
CC: exim-users
Sujet: Re: [exim] Setting primary_hostname via command?
On Mon, 23 May 2005, Toralf Lund wrote:

> Is there any way I can set the value of a main config setting like
> primary_hostname to the output of a system command?


primary_hostname is one of the few configuration settings that is not
expanded. Perhaps if you explain why you want to do this we can suggest
solutions that will work.

> Actually, one of the things that's always confused me most about the exim
> config setup is the whole string expansion mechanism...


One way to think of it is an escape hatch. To a large extent you can
configure Exim without using string expansions - the flexibility comes
from things like matching against lists and the variety of ACL conditions
and router preconditions. However they can't cope with everyone's
requirements so string expansions allow you to construct your own ad-hoc
conditions and lookups.

There is however some complexity arising from string expansions' context
sensitivity: expansion variables get set according to what has previously
happened to the message or the SMTP connection it is coming in on, and
according to where the expansion is used. The main advantage of Exim is
that it lets you get down and dirty with the details of handling email;
the main disadvantage of Exim is that it lets you get down and dirty with
the details of handling emai.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}