#2785 Received: header

open
nobody
5
2012-02-24
2012-02-24
J.M. Roth
No

In class/deliver/Deliver.class.php:

/* Make an RFC822 Received: line */
if (isset($REMOTE_HOST)) {
$received_from = "$REMOTE_HOST ([$REMOTE_ADDR])";
} else {
$received_from = $REMOTE_ADDR;
}

should probably be:

/* Make an RFC822 Received: line */
if (isset($REMOTE_HOST)) {
$received_from = "$REMOTE_HOST ([$REMOTE_ADDR])";
} else {
$received_from = "[$REMOTE_ADDR]"; // <------
}

as per RFC 5322 4.1.3

Indeed, some DNS-BL filters, don't consider the source IP if it is not in (square) brackets.

Discussion


Log in to post a comment.