1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-22 15:27:02 +00:00
Files
go-chasquid-smtp/internal
Alberto Bertogli 45bc70ee33 smtpsrv: Fix "Received" header format when including the IP address
When constructing the "Received" header, in some cases we want to
include the remote IP address in addition to the EHLO domain.

The way we did that is not fully compliant with RFC 5321 (section 4.4),
and this has the potential to confuse some tools that parse the header.

This patch fixes this problem by adjusting the order of the two pieces
of data, which makes it comply with the RFC.

Before:

  Received: from [1.2.3.4] (ehlo.domain.example.com)

After:

  Received: from ehlo.domain.example.com ([1.2.3.4])

Thanks to nolanl@github for reporting this problem in
https://github.com/albertito/chasquid/issues/76.
2025-10-02 10:45:26 +01:00
..
2025-04-12 23:23:21 +01:00
2025-02-16 20:18:16 +00:00
2023-10-07 12:41:57 +01:00
2023-10-07 12:41:57 +01:00
2023-10-07 12:41:57 +01:00
2025-02-16 20:18:16 +00:00
2024-12-01 22:21:19 +00:00
2025-04-06 14:02:56 +01:00
2023-10-07 12:41:57 +01:00
2025-04-12 23:23:21 +01:00
2025-04-11 14:17:17 +01:00