Fix mail bouncing when rejected by clearnet relay
This commit is contained in:
@ -16,9 +16,10 @@ default_transport = relay
|
|||||||
relayhost = [10.8.0.1]
|
relayhost = [10.8.0.1]
|
||||||
inet_interfaces = 127.0.0.1
|
inet_interfaces = 127.0.0.1
|
||||||
smtp_sasl_auth_enable=yes
|
smtp_sasl_auth_enable=yes
|
||||||
smtp_sasl_password_maps = static:MY_USER:MY_PASSWORD
|
smtp_sasl_password_maps = hash:/etc/postfix-clearnet/sasl_password
|
||||||
smtp_sasl_security_options = noanonymous
|
smtp_sasl_security_options = noanonymous
|
||||||
mynetworks_style = host
|
mynetworks_style = host
|
||||||
ignore_mx_lookup_error = yes
|
ignore_mx_lookup_error = yes
|
||||||
canonical_maps = regexp:/etc/postfix-clearnet/canonical
|
canonical_maps = regexp:/etc/postfix-clearnet/canonical
|
||||||
smtp_generic_maps = regexp:/etc/postfix-clearnet/canonical
|
smtp_generic_maps = regexp:/etc/postfix-clearnet/canonical
|
||||||
|
transport_maps = hash:/etc/postfix-clearnet/transport
|
||||||
|
1
etc/postfix-clearnet/sasl_password
Normal file
1
etc/postfix-clearnet/sasl_password
Normal file
@ -0,0 +1 @@
|
|||||||
|
[10.8.0.1] MY_USER:MY_PASSWORD
|
2
etc/postfix-clearnet/transport
Normal file
2
etc/postfix-clearnet/transport
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
hosting.danwin1210.me relay:[127.0.0.2]
|
||||||
|
* relay:[10.8.0.1]
|
@ -33,7 +33,7 @@ iptables -t nat -A OUTPUT -p udp --dport 123 -d $clearnet -j RETURN;
|
|||||||
iptables -A OUTPUT -p udp --dport 123 -d $clearnet -j ACCEPT
|
iptables -A OUTPUT -p udp --dport 123 -d $clearnet -j ACCEPT
|
||||||
)done
|
)done
|
||||||
#unrestricted access to these IPs
|
#unrestricted access to these IPs
|
||||||
for clearnet in 127.0.0.1; do(
|
for clearnet in 127.0.0.0/8; do(
|
||||||
iptables -t nat -A OUTPUT -d $clearnet -j RETURN;
|
iptables -t nat -A OUTPUT -d $clearnet -j RETURN;
|
||||||
iptables -A OUTPUT -d $clearnet -j ACCEPT;
|
iptables -A OUTPUT -d $clearnet -j ACCEPT;
|
||||||
) done
|
) done
|
||||||
|
Reference in New Issue
Block a user