Originally posted by ne0shell
to get rid of it i ran these commands
iptables -D OUTPUT 2
iptables -D OUTPUT 1
emailed flowed correctly after that.
When you get rid of those lines, doesn't it defeat the purpose of SMTP tweak? i.e. isn't it same as disabling SMTP tweak option?
I've checked the difference between a working and a non-working server, I see this for working server:
Code:
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp OWNER GID match mail
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp OWNER GID match mailman
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp OWNER UID match root
REJECT tcp -- anywhere anywhere tcp dpt:smtp reject-with icmp-port-unreachable
acctboth all -- anywhere anywhere
and this for non-working server:
Code:
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere localhost tcp dpt:smtp
REJECT tcp -- anywhere anywhere tcp dpt:smtp reject-with icmp-port-unreachable
acctboth all -- anywhere anywhere
I'm guessing SMTP tweak doesn't work on the non-working server because of those lines. My question is, why aren't those lines added when I enabled SMTP tweak on the non-working server?