Re: [exim] localhost vs 127.0.0.1

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Michael Fischer v. Mollard
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] localhost vs 127.0.0.1


-- Am 03/11/13 12:20:45 +0300 schrieb Mihamina Rakotomandimby:

> 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
>
>
> Why?


Becaus localhost resolves to '::1' - the IPv6 address of localhost. There
seem to be no rules for IPv6 in your configuration.

Regards
    Michael


> [mihamina@recette53 ~]$ rpm -aq | grep exim
> exim-4.72-4.el6.x86_64
>
> [mihamina@recette53 ~]$ telnet localhost 25
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> 220 recette53.ideoneov.com ESMTP Exim 4.72 Mon, 11 Mar 2013 10:09:27 +0100
> HELO mihamina
> 250 recette53.ideoneov.com Hello localhost [::1]
> MAIL from: <mrakotom@???>
> 250 OK
> RCPT to: <mihamina@???>
> 550 relay not permitted
>
>
> mihamina@recette53 ~]$ telnet 127.0.0.1 25
> Trying 127.0.0.1...
> Connected to 127.0.0.1.
> Escape character is '^]'.
> 220 recette53.ideoneov.com ESMTP Exim 4.72 Mon, 11 Mar 2013 10:10:26 +0100
> HELO mihamina
> 250 recette53.ideoneov.com Hello localhost [127.0.0.1]
> MAIL from: <mrakotom@???>
> 250 OK
> RCPT to: <mihamina@???>
> 250 Accepted
> DATA
> 354 Enter message, ending with "." on a line by itself
> From: <mrakotom@???>
> To: <mihamina@???>
> Subject: Haftra Andrana
>
> Ity dia andrana fotsiny ihany.
> .
> 250 OK id=1UEykk-0006Fr-TO
> QUIT
> 221 recette53.ideoneov.com closing connection