소스 검색

Merge pull request #194 from Theory-of-Everything/fork

Fix: #178 leakage of public IP addresses in sent emails
pull/208/head
Luke Smith 2 년 전
committed by GitHub
부모
커밋
bb81d52537
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
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..."



불러오는 중...
취소
저장