Click to See Complete Forum and Search --> : Please help on Qmail and firewall setup


cojo
03-13-2003, 12:59 AM
trying to test out my newly installed Qmail on RH8. I tried to email from root to my account or vice versur. I get connection refused on port 25. Can someone tell me what I'm doing wrong?:confused: I'm running firewall(iptables) on the same machine. I got these line in my script:

# smtp One per second limt -burst rate of ten
$IPTABLES -A INPUT -p tcp --dport 25 --syn -m limit --limit 1/s \
--limit-burst 10 -j ACCEPT
$IPTABLES -A INPUT -p tcp --dport 25 --syn -j DROP
$IPTABLES -A INPUT -p tcp --dport 25 -j ACCEPT

$IPTABLES -A FORWARD -i $EXTERNALIF -p tcp -d 192.168.0.10 --dport 25 -j ACCEPT

Am I missing someelse???? Please help.....

Jinx
03-13-2003, 02:27 AM
Try putting in a line for logging at the end of your IPTABLES... that should give you some idea of where you are going wrong...

$IPTABLES -A INPUT -j LOG
$IPTABLES -A OUTPUT -j LOG
$IPTABLES -A FORWARD -j LOG

This causes all attempts being made on your box to be logged to the stdout and /var/log/messages

You might even want to put --log-prefix 's on the end of the rules too, so you know which chain is coming up in the log....

E.g .

$IPTABLES -A INPUT -j LOG --log-prefix "INPUT:"

This should give you some idea as to what protocols/ports etc need to be enabled to get things working.

Hope that helps.

Cya round
Jinx

cojo
03-13-2003, 11:46 AM
Ok, thanks. I will try it tonight. WIll let you kown,...

cojo
03-13-2003, 01:02 PM
Ok, thanks. I will try it tonight. WIll let you kown,...