By default it's not wanted to have managesieve server accessible from internet / if you need it, you should customize the firewall - have a look on the file /etc/default/iptables and add a rule to accept communication on port 4190.
Putting the rule in rc.local is kind of ugly ;-)