mostly fix mail bugs
[distro-setup] / mail-route
index f896bfec495dcd27758fd44da90a487846941ec9..dc74c7b5adb6f73912d442cea652b66ab2d2e453 100755 (executable)
@@ -62,8 +62,9 @@ esac
 # match source or dest port. when we send to 25, it picks a random high port as
 # the source.
 
-for port in 25 993; do # smtp and imap with ssl.
-e iptables -t mangle $iptables_op OUTPUT -m tcp -p tcp -m multiport --ports $port -j MARK --set-mark 0x1
+for port in 25 143; do # smtp and imap.
+    e iptables -t mangle $iptables_op \
+      OUTPUT -m tcp -p tcp -m multiport --ports $port -j MARK --set-mark 0x1
 done
 e iptables -t nat $iptables_op POSTROUTING -o tun0 -m mark --mark 0x1 -j SNAT --to-source 10.8.0.4
 e ip rule $ip_op fwmark 1 table 1