Hi Gurus Expert,

Had a problem on firewall rule hope you can contribute to enlighten me and solve my problem. Iam using RH9 and sendmail 8.12.x

Heres my IP Aliasing:

IPADDR=`ifconfig eth0 | fgrep -i inet | cut -d : -f 2 | cut -d " " -f 1`

MAILSERVER_INT_IP="192.168.0.4
EXTERNAL_INTERFACE="eth0"
LOOPBACK_INTERFACE="lo"
LOCAL_INTERFACE_1="eth1" # Internal LAN interface
INTRANET="192.168.0.0/16" # Private IP Addr Range
PRIMARY_NAMESERVER="203.x.x.3"
SECONDARY_NAMESERVER="203.x.x.4"
LOOPBACK="127.0.0.0/8"
CLASS_A="10.0.0.0/8"
CLASS_B="172.16.0.0/12"
CLASS_C="192.168.0.0/16"
CLASS_D_MULTICAST="224.0.0.0/4"
CLASS_E_RESERVED_NET="240.0.0.0/5"
BROADCAST_SRC="0.0.0.0"
BROADCAST_DEST="255.255.255.255"
PRIVPORTS="0:1023"
UNPRIVPORTS="1024:"

SSH_LOCAL_PORTS="1022:65535"
SSH_REMOTE_PORTS="513:65535"

TRACEROUTE_SRC_PORTS="32769:65535"
TRACEROUTE_DEST_PORTS="33434:33523"

iptables -F
iptables -F -t nat
iptables -X

iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

Here's my mail rules:

# SNAT all connections from internal mail server to external mail
server's IP address
iptables -t nat -A POSTROUTING -s $MAILSERVER_INT_IP -j SNAT --to-source
$IPADDR

# DNAT all connections to IP address of external mail server on port 25
to internal mail server
iptables -t nat -A PREROUTING -p tcp --source-port 25 -d $IPADDR -j
DNAT --to-destination $MAILSERVER_INT_IP

and configure my MOZILLA MAIL with the following entries:

Server Type: POP3 Mail Server
Server name: 192.168.0.1 (my gateway address)
username: infinite_rootl#203.x.x.4

The problem is this, whenever I collect mails the following error appeared:

The PASS command did not succeed. Mail server 192.168.0.1 responded. Bad Login


I am also running POP3 on the gateway server. And my firewall rule on the server allow POP3 service for to client to get out.

Please, pls help me.

A million thanks for you help in advance.


[/b]