Quoting Vincent Lefevre <vinc...@vinc17.net>:

On 2011-02-17 09:56:35 +0000, Jonathan Plews wrote:
I think that, unless it explicitly set, the hostname is derived form DNS
lookups.

No, I think that $HOST is obtained from /etc/hostname (AFAIK, it is
set by Debian at installation time).

you can test this with changes to /etc/hosts, hostname -f and the string
exim gives on connect will be the same.

x.x.x.x    host   host.domain.tld - will report just 'host'

This is incorrect. You should not do this, see hosts(5) man page.

Just an illustration


x.x.x.x    host.domain.tld   host - will report 'host.domain.tld'

"hostname -f" will report host.domain.tld, but this is not $HOST
(which is used by monit).

--
Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



Sorry, I remembered having this issue but not how I got past it in the end, which was using 'set mail-format { from: mo...@domain.tld }' but I have not had to do this on all servers.

--
Jonathan Plews - jonat...@plews.org.uk

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Attachment: pgpoARHj8tZu3.pgp
Description: PGP Digital Signature

Reply via email to