Hi all. I have big problem and I can't find myself solution. I have hope that you can help me.
I'm behind firewall (iptables + masquerade on linux mahine) and I'm using masquerade. Few days ago my email provider change incoming mail from POP3 to IMAP and here are start problems. Because after when I change my settings in email program I can send emails but I can't receive emails. Where can be a problem. I setup in my firewall this rules (first) but still nothing:
-- CUT --
MY_IMAP_SRVR="mail.everynation.org"
DEV_NET_IP=`ifconfig $DEV_NET | grep 'inet addr:' | sed -e s/^.*inet\ addr://g -e s/\ .*$//g`
DEV_NET=ppp0
LAN_IP_RANGE="192.168.1.0/24"
if [ "$MY_IMAP_SRVR" != "" ]; then
for IMAP_SRVR in $MY_IMAP_SRVR; do
echo "Serwer IMAP: $IMAP_SRVR"
$BIN_IPT -A OUTPUT -o $DEV_NET -p TCP \
--sport 1024:65535 --dport 143 -s $DEV_NET_IP -d $IMAP_SRVR -j ACCEPT
$BIN_IPT -A INPUT -i $DEV_NET -p TCP -m state --state ESTABLISHED,RELATED \
--sport 143 --dport 1024:65535 -s $IMAP_SRVR -d $DEV_NET_IP -j ACCEPT
$BIN_IPT -A FORWARD -p TCP -s $LAN_IP_RANGE -d $IMAP_SRVR --sport 1024:65535 --dport 143 -j ACCEPT
$BIN_IPT -A FORWARD -m state --state ESTABLISHED,RELATED -p TCP -s $IMAP_SRVR -d $LAN_IP_RANGE --sport 143 --dport 1024:65535 -j ACCEPT
done;
fi
--- CUT ---
Is it ok that I can't ping mail.everynation.org ?
In my email program I have error:
IMAP: Server end connection
I'm using The Bat!).
Please help my if you need any information from my server for example:
tcpdump dst port 143
Let me know but please tell me what command I have to use.
PS. Sorry for my english ... I'm still lerning
