Bug#613768: exim4 should include $HOST to local domains by default

Jonathan Plews lists at plews.org.uk
Thu Feb 17 17:24:49 UTC 2011


Quoting Vincent Lefevre <vincent at 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 <vincent at 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: monit at domain.tld }' but  
I have not had to do this on all servers.

-- 
Jonathan Plews - jonathan at plews.org.uk

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: PGP Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-exim4-maintainers/attachments/20110217/e93908ac/attachment.pgp>


More information about the Pkg-exim4-maintainers mailing list