1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-12 02:28:20 +02:00

Fix relay restrictions so email gets delivered correctly

This commit is contained in:
kaiyou 2018-10-07 01:28:22 +02:00
parent 82bb8c2fd9
commit f3f0b98755
2 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,8 @@
# General
###############
debug_peer_list = 0.0.0.0/0
# Main domain and hostname
mydomain = {{ DOMAIN }}
myhostname = {{ HOSTNAMES.split(",")[0] }}
@ -85,7 +87,6 @@ smtpd_helo_required = yes
smtpd_client_restrictions =
permit_mynetworks,
reject_unauth_destination,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
@ -95,7 +96,7 @@ smtpd_client_restrictions =
smtpd_relay_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject
reject_unauth_destination
unverified_recipient_reject_reason = Address lookup failure

View File

@ -7,7 +7,7 @@ smtp inet n - n - - smtpd
# Internal SMTP service
10025 inet n - n - - smtpd
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=reject_unlisted_sender,reject_unauth_destination,reject_authenticated_sender_login_mismatch,permit
-o smtpd_client_restrictions=reject_unlisted_sender,reject_authenticated_sender_login_mismatch,permit
-o cleanup_service_name=outclean
outclean unix n - n - 0 cleanup
-o header_checks=pcre:/etc/postfix/outclean_header_filter.cf