opening imap port 143 using iptables in ubuntu server

view story

http://serverfault.com – Actually for the past 1 week I am trying to open imap port in my mail server using iptables. I tried many things but still it is not opened. I am trying to configure evolution mail client with imap port 143 but it shows error Error while Scanning folders in "IMAP server incomingservername" Could not connect to incomingservername: Connection refused" Hope someone will help me, Thanks in advance. Chain INPUT (policy ACCEPT 6461K packets, 869M bytes) pkts bytes target prot opt in out source destination 40 2290 ACCEPT all -- any any local (HowTos)