On 2003-07-30, 09:51 GMT, Philip Hazel wrote:
>> And no, I have not set primary_hostname, because this is notebook and it
>> is often connected to the Internet with different ISP provider and thus
>> it is in different domain.
>
> Running an MTA on a mobile host does have its problems.
Well, unfortuantely, I know that :-(.
>> primary_hostname=${lookup{domain}lsearch{/etc/exim/domainlist}{$value}}
>
> Won't work. primary_hostname is not an expanded string.
OK, thanks for info.
>> Or is it possible to parse /etc/hosts with exim? I have this as a first
>> line of the file, is it possible somehow to parse it?
>>
>> 127.0.0.1 komensky.volny.cz komensky localhost
>
> Hmm. That should already work via gethostbyname() if it is configured to
> look at /etc/hosts. Does your system have something like
> /etc/nsswitch.conf? Does it contain this line?
>
> hosts: files dns
>
> That says "try /etc/hosts, then try dns".
It does. Strange.
> In Exim 3 you would have to write a script that ran 'hostname -f', found
> the right value, and concatenated it on the front of the configuration
> file. Such a script could run at boot or at MTA start up.
Oh well, I will probably make something like that. Thanks for the help,
anyway.
Matej
--
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488