Current time: 11-14-2024, 05:08 PM Hello There, Guest! (LoginRegister)


Post Reply 
[solved] Mail setup pop, smtp, blah blah blah
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #11
RE: Mail setup pop, smtp, blah blah blah
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.
08-04-2009 03:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
djmega01 Offline
Junior Member
*

Posts: 19
Joined: Jul 2009
Reputation: 0
Post: #12
RE: Mail setup pop, smtp, blah blah blah
This is getting weird Sad

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:~#
08-04-2009 04:45 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #13
RE: Mail setup pop, smtp, blah blah blah
Are you running this on your local machine or on the server?
08-05-2009 12:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
djmega01 Offline
Junior Member
*

Posts: 19
Joined: Jul 2009
Reputation: 0
Post: #14
RE: Mail setup pop, smtp, blah blah blah
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.
08-06-2009 02:59 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #15
RE: Mail setup pop, smtp, blah blah blah
well some firewall may block this (your own, your isps, your hoster...)
08-06-2009 03:35 AM
Visit this user's website Find all posts by this user Quote this message in a reply
djmega01 Offline
Junior Member
*

Posts: 19
Joined: Jul 2009
Reputation: 0
Post: #16
RE: Mail setup pop, smtp, blah blah blah
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.
08-06-2009 04:11 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #17
RE: Mail setup pop, smtp, blah blah blah
Please post the ouput of "netstat -tlnp"
08-06-2009 06:19 AM
Visit this user's website Find all posts by this user Quote this message in a reply
djmega01 Offline
Junior Member
*

Posts: 19
Joined: Jul 2009
Reputation: 0
Post: #18
RE: Mail setup pop, smtp, blah blah blah
(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
08-06-2009 06:45 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #19
RE: Mail setup pop, smtp, blah blah blah
looks ok...

show us your iptables configuration...
08-06-2009 06:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
djmega01 Offline
Junior Member
*

Posts: 19
Joined: Jul 2009
Reputation: 0
Post: #20
RE: Mail setup pop, smtp, blah blah blah
(08-06-2009 06:50 AM)rbtux Wrote:  looks ok...

show us your iptables configuration...

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
08-06-2009 06:55 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)