Re: [EXIM] Getting local hostname in configure file

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Philip Hazel
日付:  
To: Ian D Crorie
CC: gyan, exim-users
題目: Re: [EXIM] Getting local hostname in configure file
On Thu, 9 Jul 1998, Ian D Crorie wrote:

> the '@' construct for domain lists in my configuration file isn't
> working correctly on these Linux Redhat boxes (as far as I can see):
>
>
> <57>pastis@ exim -bP local_domains primary_hostname
> local_domains = @:@.cee.hw.ac.uk:cee.hw.ac.uk:cee:cee.hw:cee.heriot-watt:cee.heriot-watt.ac.uk

                    ^
                    ^
Sorry, it recognizes "@" only as a complete item, not as part of a 
longer item. I _think_ the wording in section 7.11 is clear, isn't it?


Since you are rewriting all short domains, you don't want that initial
"@" item because no address will ever match it. But...

> primary_hostname = pastis


Do you need that? Exim really likes to work with fully-qualified domain
names. Also, to be strictly compliant with the RFCs you need the FQDN
for the host so that it can be put in the HELO line in SMTP
transactions (not to mention Received: header lines).

If you don't set primary_hostname, it will look it up using uname(), and
if it finds an unqualified name, it will attempt to qualify it by
calling gethostbyname(). Would that work for you?

-- 
Philip Hazel                   University Computing Service,
P.Hazel@???          New Museums Site, Cambridge CB2 3QG,
ph10@??? (sic)       England.  Phone: +44 1223 334714



--
*** Exim information can be found at http://www.exim.org/ ***