Hi,
This is the managesieve part of my mailserver's firewall:
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
[...]
iptables -A MAILSERVER-in -i ${EXT1} -p tcp --dport 4190 -j ACCEPT
iptables -A MAILSERVER-out -o ${EXT1} -p tcp --sport 4190 -m state --state ESTABLISHED -j ACCEPT

It worked flawlessly until I enabled my laptop's firewall too:
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT


This is very strange, this is a very simple firewall which shouldn't cause any problem at all. It starts working again only if I add _both_ the above rules to my laptop's firewall, which isn't something I may expect the user to do:
iptables -A INPUT -p tcp --dport 4190 -j ACCEPT
iptables -A INPUT -p tcp --sport 4190 -j ACCEPT


What's the problem? How does the managesieve protocol work?

Thanks,
Niccolò

Reply via email to