瀏覽代碼

[Postfix] Do not remove X-Mailer header

some providers, like seznam.cz use X-Mailer in DKIM signatures

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
Kristian Feldsam 2 年之前
父節點
當前提交
100e8ab00d
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      data/conf/postfix/anonymize_headers.pcre

+ 2 - 1
data/conf/postfix/anonymize_headers.pcre

@@ -12,7 +12,8 @@ if /^\s*Received: from.* \(.*rspamd-mailcow.*mailcow-network.*\).*\(Postcow\)/
   REPLACE Received: from rspamd (rspamd $3) by $4 (Postcow) with $5
   REPLACE Received: from rspamd (rspamd $3) by $4 (Postcow) with $5
 endif
 endif
 /^\s*X-Enigmail/        IGNORE
 /^\s*X-Enigmail/        IGNORE
-/^\s*X-Mailer/          IGNORE
+# Not removing Mailer by default, might be signed
+#/^\s*X-Mailer/          IGNORE
 /^\s*X-Originating-IP/  IGNORE
 /^\s*X-Originating-IP/  IGNORE
 /^\s*X-Forward/         IGNORE
 /^\s*X-Forward/         IGNORE
 # Not removing UA by default, might be signed
 # Not removing UA by default, might be signed