Closed AubreyHewes closed 4 years ago
Adds an env option to enforce stricter rejects; reducing backscatter.
The is based on information provided at https://willem.com/blog/2019-09-10_fighting-backscatter-spam-at-server-level/
Usage:
Set env var STRICT_REJECT to 1 to enforce the following:
STRICT_REJECT
1
postconf -e smtpd_helo_required=yes postconf -e invalid_hostname_reject_code=554 postconf -e multi_recipient_bounce_reject_code=554 postconf -e non_fqdn_reject_code=554 postconf -e relay_domains_reject_code=554 postconf -e unknown_address_reject_code=554 postconf -e unknown_client_reject_code=554 postconf -e unknown_hostname_reject_code=554 postconf -e unknown_local_recipient_reject_code=554 postconf -e unknown_relay_recipient_reject_code=554 # postconf -e unknown_sender_reject_code = 554 ## TODO unknown option in postfix? postconf -e unknown_virtual_alias_reject_code=554 postconf -e unknown_virtual_mailbox_reject_code=554 postconf -e unverified_recipient_reject_code=554 postconf -e unverified_sender_reject_code=554
This also adds an env var STRICT that at the moment only enforces STRICT_REJECT, but can be used in the future to enforce more things.
STRICT
Sorry was not a PR for this repo, my mistake.Apologies.
Adds an env option to enforce stricter rejects; reducing backscatter.
The is based on information provided at https://willem.com/blog/2019-09-10_fighting-backscatter-spam-at-server-level/
Usage:
Set env var
STRICT_REJECT
to1
to enforce the following:This also adds an env var
STRICT
that at the moment only enforcesSTRICT_REJECT
, but can be used in the future to enforce more things.