[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exim-users
Subject:    Re: [exim] Why would my backup mail host keep sending queued email
From:       Phil Pennock <exim-users () spodhuis ! org>
Date:       2011-12-18 3:53:52
Message-ID: 20111218035352.GA56649 () redoubt ! spodhuis ! org
[Download RAW message or body]

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

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic