Re: [exim] $sender_host_address is localhost - it is wrong

Top Pagina
Delete this message
Reply to this message
Auteur: Heiko Schlittermann
Datum:  
Aan: exim-users
Onderwerp: Re: [exim] $sender_host_address is localhost - it is wrong
Hi,

Jakob Schürz <eisenbahn@???> (Di 14 Feb 2017 16:11:45 CET):
> Hi!
> I'm running exim 4.88-5 from debian. And i have a problem.


> But then i realized, the sender host ip is 127.0.0.1. So i thought, the
> sender has a misconfigured mail-system.



$sender_host_address is the address that contacted your system, it is
the IP address of the client, sending the message to your system, the
server.

> Feb 13 14:47:48 aldebaran exim[12477]: 2017-02-13 14:47:48 H=(aldebaran.localdomain) [127.0.0.1] F=<notification+ybbrsasn@???> rejected RCPT <jakob@localhost>: SPF check failed.
> Feb 13 14:47:48 aldebaran exim[12477]: 2017-02-13 14:47:48 H=(aldebaran.localdomain) [127.0.0.1] F=<notification+ybbrsasn@???> rejected RCPT

<jakob@localhost>: SPF check failed.
> Feb 13 14:47:48 aldebaran fetchmail[850]: Nachricht username@???@pop.gmx.net:10806 von 10884 wird gelesen (21436 Bytes) (Log-Meldung unvollständig)
> Feb 13 14:47:48 aldebaran fetchmail[850]: [200B blob data]
> Feb 13 14:47:48 aldebaran exim[12477]: 2017-02-13 14:47:48 H=(aldebaran.localdomain) [127.0.0.1] F=<notification+ybbrsasn@???> rejected RCPT <jakob@localhost>: SPF check failed.
> Feb 13 14:47:48 aldebaran exim[12477]: 2017-02-13 14:47:48 H=(aldebaran.localdomain) [127.0.0.1] F=<notification+ybbrsasn@???> rejected RCPT <jakob@localhost>: SPF check failed.
> Feb 13 14:47:48 aldebaran fetchmail[850]: kann noch nicht einmal an user senden!
> Feb 13 14:47:48 aldebaran fetchmail[850]: nicht gelöscht


Huh. Exim is logging via syslog?

> You can see, the sending host is my localhost. But in the email, the
> sending_host_address is a valid host-ip from the sender. I can see it in
> the headers.


For the address of the sending host Exim solely relies on the network
connection, not on some headers.

> I tried a lot to see more about the handling. But i only found out, that
> exim4 sets $sender_host_address and $sender_host_name to 127.0.0.1 and
> aldebaran.localdomain.


That's perfectly correct, isn't it?

> I read, that this happens, when localhost delivers a message to exim and
> not an external host... but why does this happen only on a few messages?


Do you have examples wher Exim doesn't set the $sender_host_address to
127.0.0.1?

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -