![]() |
[solved] Mail setup pop, smtp, blah blah blah - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: [solved] Mail setup pop, smtp, blah blah blah (/thread-7358.html) |
RE: Mail setup pop, smtp, blah blah blah - kilburn - 08-04-2009 03:52 PM Ok, let's try another thing. Try this two things: 1. Login to the server through ssh and execute "telnet localhost 25". It should show a Ispcp SMTPd banner (or something like this), write "quit" and it'll close. 2. From your machine, execute "telnet ip.of.your.server 25". The same thing as above shoud happen. Results: - If (1) doesn't work (connection refused or timed out), there's some serious problem with postfix (unlikely). - If (1) works but (2) doesn't (most probable), then your provider is blocking your outgoing connections to port 25. A someone has said before, you can use the 587 port, but only after enabling it! Uncomment the "submission" line in /etc/postfix/master.cf and restart postfix, and then repeat the telnet tests again but changing 25 by 587. RE: Mail setup pop, smtp, blah blah blah - djmega01 - 08-04-2009 04:45 PM This is getting weird ![]() myhostname:~# telnet localhost 25 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused myhostname:~# telnet localhost 587 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused myhostname:~# RE: Mail setup pop, smtp, blah blah blah - kilburn - 08-05-2009 12:26 AM Are you running this on your local machine or on the server? RE: Mail setup pop, smtp, blah blah blah - djmega01 - 08-06-2009 02:59 AM I can telnet on both ports from the server, but not from my home lapto The results I posted are from my laptop I took 2 days to think and reinstall everything but still having this email issue. Thanks. RE: Mail setup pop, smtp, blah blah blah - rbtux - 08-06-2009 03:35 AM well some firewall may block this (your own, your isps, your hoster...) RE: Mail setup pop, smtp, blah blah blah - djmega01 - 08-06-2009 04:11 AM Both ports?? My server only have IPTables I tried telnet from home, from my office at the Data Center where the server is, I built another computer under the same netmask and it still not working I'll keep reading online until I find a solution then will post it here. RE: Mail setup pop, smtp, blah blah blah - kilburn - 08-06-2009 06:19 AM Please post the ouput of "netstat -tlnp" RE: Mail setup pop, smtp, blah blah blah - djmega01 - 08-06-2009 06:45 AM (08-06-2009 06:19 AM)kilburn Wrote: Please post the ouput of "netstat -tlnp" host:~# netstat -tlnp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:60000 0.0.0.0:* LISTEN 2334/postgrey.pid - tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 2425/master tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2206/mysqld tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 2425/master tcp 0 0 127.0.0.1:12525 0.0.0.0:* LISTEN 2306/policyd-weight tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1896/portmap tcp 0 0 127.0.0.1:944 0.0.0.0:* LISTEN 2464/famd tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 2425/master tcp 0 0 127.0.0.1:9876 0.0.0.0:* LISTEN 2603/ispcp_daemon tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2490/proftpd: (acce tcp 0 0 xxx.xxx.xxx.xxx:53 0.0.0.0:* LISTEN 2109/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 2109/named tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2124/sshd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2425/master tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 2109/named tcp6 0 0 :::110 :::* LISTEN 2361/couriertcpd tcp6 0 0 :::143 :::* LISTEN 2355/couriertcpd tcp6 0 0 :::80 :::* LISTEN 2534/apache2 tcp6 0 0 :::53 :::* LISTEN 2109/named tcp6 0 0 :::22 :::* LISTEN 2124/sshd tcp6 0 0 ::1:953 :::* LISTEN 2109/named RE: Mail setup pop, smtp, blah blah blah - rbtux - 08-06-2009 06:50 AM looks ok... show us your iptables configuration... RE: Mail setup pop, smtp, blah blah blah - djmega01 - 08-06-2009 06:55 AM (08-06-2009 06:50 AM)rbtux Wrote: looks ok... at :PREROUTING ACCEPT [6:1566] :POSTROUTING ACCEPT [1:338] :OUTPUT ACCEPT [1:338] COMMIT *mangle :PREROUTING ACCEPT [11:1841] :INPUT ACCEPT [10:1586] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [7:3442] :POSTROUTING ACCEPT [7:3442] COMMIT *filter :FORWARD ACCEPT [0:0] :INPUT DROP [0:0] :OUTPUT ACCEPT [0:0] # Accept traffic from internal interfaces -A INPUT ! -i eth0 -j ACCEPT # Accept traffic with the ACK flag set -A INPUT -p tcp -m tcp --tcp-flags ACK ACK -j ACCEPT # Allow incoming data that is part of a connection we established -A INPUT -m state --state ESTABLISHED -j ACCEPT # Allow data that is related to existing connections -A INPUT -m state --state RELATED -j ACCEPT # Accept responses to our pings -A INPUT -p icmp -m icmp --icmp-type echo-reply -j ACCEPT # Accept notifications of unreachable hosts -A INPUT -p icmp -m icmp --icmp-type destination-unreachable -j ACCEPT # Accept notifications to reduce sending speed -A INPUT -p icmp -m icmp --icmp-type source-quench -j ACCEPT # Accept notifications of lost packets -A INPUT -p icmp -m icmp --icmp-type time-exceeded -j ACCEPT # Accept notifications of protocol problems -A INPUT -p icmp -m icmp --icmp-type parameter-problem -j ACCEPT # Allow connections to our SSH server -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT # Allow connections to our IDENT server -A INPUT -p tcp -m tcp --dport auth -j ACCEPT # Respond to pings -A INPUT -p icmp -m icmp --icmp-type echo-request -j ACCEPT # Allow DNS zone transfers -A INPUT -p tcp -m tcp --dport 53 -j ACCEPT # Allow DNS queries -A INPUT -p udp -m udp --dport 53 -j ACCEPT # Allow connections to webserver -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT # Allow SSL connections to webserver -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT # Allow connections to FTP server -A INPUT -p tcp -m tcp --dport 20:21 -j ACCEPT # Allow connections to POP3 server -A INPUT -p tcp -m tcp -m multiport -j ACCEPT --dports 110,995 # Allow connections to IMAP server -A INPUT -p tcp -m tcp -m multiport -j ACCEPT --dports 143,220,993 COMMIT I think the problem is here, but can't tell what it is. I can telnet to ports like 110, 21, 22 from home but not to 25 nor 587 Thanks for the quick reply |