mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-26 03:52:50 +02:00
Fix relay restrictions so email gets delivered correctly
This commit is contained in:
parent
82bb8c2fd9
commit
f3f0b98755
@ -2,6 +2,8 @@
|
|||||||
# General
|
# General
|
||||||
###############
|
###############
|
||||||
|
|
||||||
|
debug_peer_list = 0.0.0.0/0
|
||||||
|
|
||||||
# Main domain and hostname
|
# Main domain and hostname
|
||||||
mydomain = {{ DOMAIN }}
|
mydomain = {{ DOMAIN }}
|
||||||
myhostname = {{ HOSTNAMES.split(",")[0] }}
|
myhostname = {{ HOSTNAMES.split(",")[0] }}
|
||||||
@ -85,7 +87,6 @@ smtpd_helo_required = yes
|
|||||||
|
|
||||||
smtpd_client_restrictions =
|
smtpd_client_restrictions =
|
||||||
permit_mynetworks,
|
permit_mynetworks,
|
||||||
reject_unauth_destination,
|
|
||||||
reject_non_fqdn_sender,
|
reject_non_fqdn_sender,
|
||||||
reject_unknown_sender_domain,
|
reject_unknown_sender_domain,
|
||||||
reject_unknown_recipient_domain,
|
reject_unknown_recipient_domain,
|
||||||
@ -95,7 +96,7 @@ smtpd_client_restrictions =
|
|||||||
smtpd_relay_restrictions =
|
smtpd_relay_restrictions =
|
||||||
permit_mynetworks,
|
permit_mynetworks,
|
||||||
permit_sasl_authenticated,
|
permit_sasl_authenticated,
|
||||||
reject
|
reject_unauth_destination
|
||||||
|
|
||||||
unverified_recipient_reject_reason = Address lookup failure
|
unverified_recipient_reject_reason = Address lookup failure
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ smtp inet n - n - - smtpd
|
|||||||
# Internal SMTP service
|
# Internal SMTP service
|
||||||
10025 inet n - n - - smtpd
|
10025 inet n - n - - smtpd
|
||||||
-o smtpd_sasl_auth_enable=yes
|
-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
|
-o cleanup_service_name=outclean
|
||||||
outclean unix n - n - 0 cleanup
|
outclean unix n - n - 0 cleanup
|
||||||
-o header_checks=pcre:/etc/postfix/outclean_header_filter.cf
|
-o header_checks=pcre:/etc/postfix/outclean_header_filter.cf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user