AW: IP Stripping (replace)

Daniel daniel at ist-immer-online.de
Mo Jul 18 16:48:38 CEST 2016


Hi,

also habe es noch mal probiert, denke so langsam wird es was mit regex101.com, jedoch klappt es in der postmap Query nicht.

Bin aktuell bei
/^(Received: from) (.*) \((.*) \[(.*)\]\)\s+\((.*\(.*\))\s+\((.*)\)\s+\((.*) (.*)\)\s+by (.*) \(Postfix\) with (E?SMTPS?A?) id ([A-Z\d]+)\s+for <(.*)>; (.*)/ REPLACE $1 [::1] (localhost [::1])($5)($7 ok) by $9 (Postfix) with $10 id $11 for <$12>; $13

für
Received: from UserPC (unknown [IPv6:200x:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 (Authenticated sender: Username)
by Mailserverhostname (Postfix) with ESMTPSA id C103E3316001
for <check-auth at verifier.port25.com>; Sun, 17 Jul 2016 16:18:03 +0200 (CEST)

MATCH 1
1.	[0-14]	`Received: from`
2.	[15-21]	`UserPC`
3.	[23-30]	`unknown`
4.	[32-76]	`IPv6:200x:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx`
5.	[80-148]	`using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)`
6.	[151-187]	`Client did not present a certificate`
7.	[190-211]	`Authenticated sender:`
8.	[212-220]	`Username`
9.	[225-243]	`Mailserverhostname`
10.	[259-266]	`ESMTPSA`
11.	[270-282]	`C103E3316001`
12.	[288-318]	`check-auth at verifier.port25.com`
13.	[321-359]	`Sun, 17 Jul 2016 16:18:03 +0200 (CEST)`

Gruß Daniel
 




Mehr Informationen über die Mailingliste Postfixbuch-users