On 15/01/23 17:34, Viktor Dukhovni wrote:
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.
Indeed, or to hide the IP address of any client that connects. The OP seemed to want to hide the server's IP though which is rather unusual.
Yeah, this particular IP has an unusual case, and IP matches (made a bit more precise could work, but I'd avoid them).
I think that the main point I was trying to convey is that he can use a REPLACE action to filter or mask just part of the header, which seems to be what he was asking for. I was giving a rather simple example which seemed to fit his use case but certainly I figure that he can tweak, modify, whatever the expression to suit his needs once being pointed in the right direction.
Your example is probably better and now he has more to draw on to accomplish what he's after.
Peter