1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-30 04:27:01 +00:00
This commit is contained in:
Michael Kropat 2014-06-08 20:33:36 +00:00
commit eeebc3de70
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,5 @@
/^\s*Received:/ IGNORE
/^\s*User-Agent:/ IGNORE
/^\s*X-Enigmail:/ IGNORE
/^\s*X-Mailer:/ IGNORE
/^\s*X-Originating-IP:/ IGNORE

View File

@ -26,7 +26,26 @@ mkdir -p $STORAGE_ROOT/mail
######### #########
# Enable the 'submission' port 587 listener. # Enable the 'submission' port 587 listener.
sed -i "s/#submission/submission/" /etc/postfix/master.cf sed -i 's/^#submission\b/submission/' /etc/postfix/master.cf
# Add 'authclean' service hook (if necessary) to 'submission' service options.
if ! grep -Eq '^\s+-o cleanup_service_name=authclean\b' /etc/postfix/master.cf; then
sed -i $'/^submission\\b/ a\\\n -o cleanup_service_name=authclean' /etc/postfix/master.cf
fi
# Add the 'authclean' service (if necessary) after the 'cleanup' service. It
# will be used to filter privacy-sensitive headers on mail being sent out by
# authenticated users.
if ! grep -q '^authclean\b' /etc/postfix/master.cf; then
sed -i '/^cleanup\b/ a\
authclean unix n - - - 0 cleanup\
-o header_checks=regexp:/etc/postfix/submission_header_checks' /etc/postfix/master.cf
fi
# Install `submission_header_checks` file required by 'authclean' service.
if [ ! -f /etc/postfix/submission_header_checks ]; then
cp conf/submission_header_checks /etc/postfix/submission_header_checks
fi
# Enable TLS and require it for all user authentication. # Enable TLS and require it for all user authentication.
tools/editconf.py /etc/postfix/main.cf \ tools/editconf.py /etc/postfix/main.cf \