for((i=1;$i<39;i++))
do
iptables -A FORWARD -p tcp -s 192.168.0.$i -d 202.137.237.24 --dport 587 -j ACCEPT
iptables -A FORWARD -p tcp -s 192.168.0.$i -d 202.137.236.12 --dport 587 -j ACCEPT
iptables -A FORWARD -p tcp -s 192.168.0.$i -d 202.137.237.24 --dport 25 -j ACCEPT
iptables -A FORWARD -p tcp -s 192.168.0.$i -d 202.137.237.26 --dport 110 -j ACCEPT
iptables -A FORWARD -p tcp -s 192.168.0.$i -d 202.137.236.12 --dport 25 -j ACCEPT
iptables -A FORWARD -p tcp -s 192.168.0.$i -d 202.137.236.11 --dport 110 -j ACCEPT
iptables -A FORWARD -p tcp -s 192.168.0.$i -j DROP
done