On Mon, Mar 11, 2013 at 12:20:45PM +0300, Mihamina Rakotomandimby wrote:
> Hi all,
> 
> I had a big problem I did not figured out.
> It is solved, but I have questions about the matter.
> 
> It's about Exim 4.72/CentOS 6.
> 
> 
> Connecting to Exim via "localhost" is denies relay
> Connecting to Exim via 127.0.0.1 accepts the relay
> "localhost" is in the local_domains domainlists
> "localhost" is resolving to 127.0.0.1 in /etc/hosts

Because it will be connecting on the IPv6 address ::1 - which is also localhost.

Look in /etc/hosts and you will see:

    127.0.0.1   localhost localhost.localdomain localhost4 
localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 
localhost6.localdomain6


There is a bug in the centos default exim config file, the line:

    hostlist   relay_from_hosts = 127.0.0.1

should read:

    hostlist   relay_from_hosts = localhost

I have had a friend also fall into this hole. I will raise this with redhat and
get it fixed.

Regards

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>

-- 
## 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/

Reply via email to