Re: [exim] Why would my backup mail host keep sending queued…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Phil Pennock
Date:  
À: mark david mcCreary
CC: exim-users
Sujet: Re: [exim] Why would my backup mail host keep sending queued email to itself ?
On 2011-12-17 at 09:01 -0600, mark david mcCreary wrote:
> Good question, and a bit confusing on this virtual machine within a
> physical machine.


That's not the real problem here.

> Actual local interface address is 127.0.0.1 (lo)
> Actual local interface address is 10.168.107.25 (eth0)
> Actual local interface address is fe80::1031:3fff:fe04:68eb (eth0)
> Actual local interface address is ::1 (lo)
> 192.0.2.1 in "@[]"? no (end of list)


The real problem is that you're NATted, so Exim has no idea that the
public IP which points to your machine actually belongs to you.

You're after the "hosts_treat_as_local" option, which takes hostnames,
and "extra_local_interfaces", which takes IP addresses. I recommend
using both.

> Is there a more elegant and universal way of accomplishing this, other
> than hardcoding an IP address there ?


You can use a dnsdb lookup to resolve a hostname to an IP, but that is
an extra lookup; it should be pretty well cached, though.

You might also want to read:
13.8 Recognizing the local host
from spec.txt, also available as:
http://www.exim.org/exim-html-current/doc/html/spec_html/ch13.html#SECTreclocipadd

Regards,
-Phil