Fix mail bouncing when rejected by clearnet relay

This commit is contained in:
Daniel Winzen
2017-05-09 20:58:10 +02:00
parent fa363efaec
commit 3c8b8b8b56
4 changed files with 6 additions and 2 deletions

View File

@ -16,9 +16,10 @@ default_transport = relay
relayhost = [10.8.0.1]
inet_interfaces = 127.0.0.1
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
mynetworks_style = host
ignore_mx_lookup_error = yes
canonical_maps = regexp:/etc/postfix-clearnet/canonical
smtp_generic_maps = regexp:/etc/postfix-clearnet/canonical
transport_maps = hash:/etc/postfix-clearnet/transport

View File

@ -0,0 +1 @@
[10.8.0.1] MY_USER:MY_PASSWORD

View File

@ -0,0 +1,2 @@
hosting.danwin1210.me relay:[127.0.0.2]
* relay:[10.8.0.1]

View File

@ -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
)done
#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 -A OUTPUT -d $clearnet -j ACCEPT;
) done