On 2011-03-19 16:29:55 +0100, Andreas Metzler wrote:
> I am pretty sure this is not an exim issue. Either there is a local
> configuration issue (e.g. an incorrect line in /etc/hosts:
> IP_address alias canonical_hostname
> instead of
> IP_address canonical_hostname alias) or monit is sending invalid
> mails, using the unqualified hostname in the notification mails.

The local configuration is correct. I think that monit (indirectly)
takes the hostname from /etc/hostname, and AFAIK, the rule under
Debian is to put the nodename there, not the FQDN.

FYI, my /etc/hosts contain:

127.0.0.1       localhost
127.0.1.1       xvii.vinc17.org xvii
[...]

That's standard under Debian.

> If the latter is the cause monit should probably just use "From:
> monit" and let the local MTA qualify the mail correctly.

I agree.

-- 
Vincent Lefèvre <[email protected]> - 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)



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to