FreedomBox/plinth/modules/email_server/data/etc/postfix/freedombox-header-cleanup
fliu 27387d4a9c
email: Implement outbound mail filtering
- Make extensive use of the milter protocol
- Milter: add X-Fbx- headers to emails
- All submitted mails go to smtp:localhost:10025 for filtering
- Header privacy for submitted mails
- Rspamd: be able to inject and replace FreedomBox-managed config
- Reserve special addresses for future use

Known issue: internal emails do not go through spam filtering
2021-08-17 19:43:58 -07:00

15 lines
388 B
Plaintext

# -*- mode: conf-space -*-
# This file is managed by FreedomBox. Direct edits will be lost!
# Outbound header privacy
/^Delivered-To:/ IGNORE
/^Received[:-]/ IGNORE
/^User-Agent:/ IGNORE
/^X-EIP:/ IGNORE
/^X-Mailer:/ IGNORE
/^X-Originating-IP:/ IGNORE
/^X-Sender:/ IGNORE
# Currently localhost:10025 does not have a milter
# so it is fine to delete internal headers now
/^X-Fbx-/ IGNORE