[EXIM] Received-Format not compliant to RFC 822?

Góra strony
Delete this message
Reply to this message
Autor: Georg v.Zezschwitz
Data:  
Dla: exim-users
CC: service
Temat: [EXIM] Received-Format not compliant to RFC 822?
Hello!

By now, 2 people suggested to change the Received-Headers as
the are generated by Exim to make them more compliant to RFC822.

They state that writing the IP-number beneath the hostname
violates RFC822, that allows Received-headers in the form:

Received: from alpha.cyberhome.de (root)
        by mail.provi.de with esmtp (Exim 1.73 #14)  


*or*

Received: from [194.77.164.44] (root)
        by mail.provi.de with esmtp (Exim 1.73 #14)  


but not both:

Received: from alpha.cyberhome.de [194.77.164.44] (root)
        by mail.provi.de with esmtp (Exim 1.73 #14) 


As far as I'd like to interpret RFC822, I tend to agree (though
no mailer has rejected our headers so far).

To make the Received-headers easier to understand and change this
behaviour I applied the following change to host.c:

123c123
<     sender_fullhost = string_sprintf("(claimed %s) [%s]", sender_helo_name,
---

>     sender_fullhost = string_sprintf("(%s) [%s]", sender_helo_name,

130c130
<     sender_fullhost = string_sprintf("%s (IP %s)", sender_host_name,
---

>     sender_fullhost = string_sprintf("%s [%s]", sender_host_name,

133c133
<     sender_fullhost = string_sprintf("%s (claimed %s, is IP %s)", sender_host_name,
---

>     sender_fullhost = string_sprintf("%s (%s) [%s]", sender_host_name, 


Most important is that square-brackets are not legal as comments in
RFC 822, and just a single system is expected after the "from"-keyword.

Greetings,


Georg

--
*** Exim information can be found at http://www.exim.org/ ***