F
F
FartovSergey2019-07-05 22:29:24
postfix
FartovSergey, 2019-07-05 22:29:24

POSTFIX replacement Received - how to make a regular season to replace?

Good afternoon. Please tell me how to compose a regular expression and write it to the etc/postfix/header_checks file to replace (hide) the sender's ip with localhost
Sends the following header:
Received: from dbnfv (31-124-93-114.broadband.corbina.ru [37.144. 92.133])
by primer.ru (Postfix) with ESMTPA id BE0FB20C92
for ; Fri, 5 Jul 2019 21:26:35 +0300 (EEST)
It should look like this:
Received: from dbnfv (localhost [37.144.92.133])
by primer.ru (Postfix) with ESMTPA id BE0FB20C92
for ; Fri, 5 Jul 2019 21:26:35 +0300 (EEST)
And for example:
Received: by primer.ru (Postfix) with ESMTPA id BE0FB20C92
for ; Fri, Jul 5 2019 21:26:35 +0300 (EEST)
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question