On Sun, Jan 15, 2023 at 05:26:07PM +1300, Peter wrote:

> But only a part with his exact IP address in it, the IP address that the 
> OP is trying to hide.

The typical user who wants to lightly censor Received lines is not
trying to hide a specific IP address, by far the more common need
is to prune IP addresses from received headers add by a submission
service.  This will often also take care of hiding various internal
IP addresses.  So pruning by hostname is generally more robust.

Sure, if one tempts fate by squatting on 192.0.2.0/24 and then needs
to censor those IPs, that could be done by IP, but it would also work
better IMHO by just censoring all remote IPs in "Received headers added
on ports 587 and 465.

> This is certainly more accurate.  I was going for the idea that the OP 
> said he wanted to hide a specific IP in the Received headers, so the 
> simple way is to look for that IP and replace it with something else, 
> regardless of where in the header it appears.

Yeah, this particular IP has an unusual case, and IP matches (made a bit
more precise could work, but I'd avoid them).

-- 
    Viktor.

Reply via email to