Skip to content

Commit

Permalink
Merge pull request #626 from ofthesun9/feature-smtpd_reject_unlisted_…
Browse files Browse the repository at this point in the history
…recipient

Add variable to choose whether to bounce or reject email when recipient is unknown. Fixes #583
  • Loading branch information
mergify[bot] committed Oct 6, 2018
2 parents c135b37 + f430f41 commit 2b1c94d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/postfix/conf/master.cf
Expand Up @@ -8,6 +8,7 @@ smtp inet n - n - - smtpd
10025 inet n - n - - smtpd
-o smtpd_sasl_auth_enable=yes
-o smtpd_recipient_restrictions=reject_unlisted_sender,reject_authenticated_sender_login_mismatch,permit
-o smtpd_reject_unlisted_recipient={% if REJECT_UNLISTED_RECIPIENT %}{{ REJECT_UNLISTED_RECIPIENT }}{% else %}no{% endif %}
-o cleanup_service_name=outclean
outclean unix n - n - 0 cleanup
-o header_checks=pcre:/etc/postfix/outclean_header_filter.cf
Expand Down
3 changes: 3 additions & 0 deletions docs/compose/.env
Expand Up @@ -132,3 +132,6 @@ REAL_IP_HEADER=

# IPs for nginx set_real_ip_from (CIDR list separated by commas)
REAL_IP_FROM=

# choose wether mailu bounces (no) or rejects (yes) mail when recipient is unknown (value: yes, no)
REJECT_UNLISTED_RECIPIENT=

0 comments on commit 2b1c94d

Please sign in to comment.