瀏覽代碼

Fix: #178 leakage of public IP addresses in sent emails

pull/194/head
Theory_of_Everything 2 年之前
父節點
當前提交
e666164231
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. +8
    -0
      emailwiz.sh

+ 8
- 0
emailwiz.sh 查看文件

@@ -99,6 +99,14 @@ postconf -e "smtpd_recipient_restrictions = permit_sasl_authenticated, permit_my
# boomers want and no one else).
postconf -e "home_mailbox = Mail/Inbox/"

# A fix referenced in issue #178 - Postfix configuration leaks ip addresses (https://github.com/LukeSmithxyz/emailwiz/issues/178)
# Prevent "Received From:" header in sent emails in order to prevent leakage of public ip addresses
postconf -e "header_checks = regexp:/etc/postfix/header_checks"

# strips "Received From:" in sent emails
echo "/^Received:.*/ IGNORE
/^X-Originating-IP:/ IGNORE" >> /etc/postfix/header_checks

# master.cf
echo "Configuring Postfix's master.cf..."



Loading…
取消
儲存