Hi all,
I've got a problem with my qmail install, pop is working fine, but i cannot connect to smtp. I tried 'telnet my_mail_server 25' and got a connection error, so i ran nmap and found the smtp port is closed.
When i run qmailctl stat i get the following which suggests to me that the smtp server should be working...
qmailctl stat
/service/qmail-send: up (pid 11433) 1424 seconds
/service/qmail-send/log: up (pid 11442) 1424 seconds
/service/qmail-smtpd: up (pid 13158) 1 seconds
/service/qmail-smtpd/log: up (pid 11435) 1424 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0
/service/qmail-pop3d: up (pid 11436) 1424 seconds
/service/qmail-pop3d/log: up (pid 11437) 1424 seconds
running 'netstat -pantu' doesn't make any mention of a smtp in any state. My VPN firewall forwards all traffic to the server and the custom firewall script has port 25 open as can be seen below:
[root@ns1 home]# /sbin/iptables -L -v
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 8848 packets, 1037K bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT icmp -- eth0 any anywhere anywhere state ESTABLISHED
309 21940 ACCEPT tcp -- eth0 any anywhere anywhere state ESTABLISHED
66 7174 ACCEPT udp -- eth0 any anywhere anywhere state ESTABLISHED
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ftp-data
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ftp
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:60000
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:10000
0 0 ACCEPT udp -- any any anywhere anywhere udp dpt:domain
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:domain
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:http
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:https
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:smtp
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt
op3
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:imap
70 10240 ACCEPT icmp -- any any anywhere anywhere
96 15306 LOG all -- !lo any anywhere anywhere limit: avg 3/sec burst 5 LOG level warning
96 15306 DROP all -- !lo any anywhere anywhere
Chain OUTPUT (policy ACCEPT 149K packets, 17M bytes)
pkts bytes target prot opt in out source destination