summaryrefslogtreecommitdiffstats
path: root/roles/MSA/files/etc/postfix/anonymize_sender.pcre
blob: 162e6c13ebda0dd9da34117410e30b7eed7b88e8 (plain)
1
2
3
4
5
6
7
8
/^Received:\s+from\s+(?:\S+\s+\(\S+\s+\[(?:IPv6:)?[[:xdigit:].:]{3,39}\]\))
        (\s+\(using\s+(?:TLS|SSL)(?:v\S+)?\s+with\s+cipher\s+\S+\s+\(\S+\s+bits\)
            (?:\s+key-exchange\s+\S+\s+(?:\([^)]+\)\s+)?server-signature\s+\S+\s+\(\d+\s+bits\)\s+server-digest\s+\S+)?\)\s+).*
        (\bby\s+(?:\S+\.)?fripost\.org\s+\([^)]+\)
        \s+with\s+E?SMTPS?A\s+id\s+[[:xdigit:]]+;?\s.*)/x
    REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1])${1}${2}

/^X-Originating-IP:/    IGNORE