Current time: 12-24-2024, 10:37 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED]Cannot connect to SMTP remotely
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Cannot connect to SMTP remotely
First of all, check that postfix is listening in your public address (or all of them-0.0.0.0) using netstat:
Code:
netstat -tlnp

If it's running, try to connect and check the logs for further info:
Code:
tail /var/log/mail.log

The error should show up there. In the case that no connection is shown, something happens with the network. Check if the port is really open using netcat:
Code:
intheserver: /etc/init.d/postfix/stop
intheserver: nc -lp 25   (the command doesn't return)
inyourmachine: echo 'hi' | nc ip.of.the.server 25
"hi" should show up in the server's shell, otherwise it's a network/firewall issue.

Post the results from these tests and let's see if we can identify what's happening Smile

PS: It's great when someone takes it's time to create correct problem descriptions, kudos to you for that! On another occasion tough, try to include some basic info that always helps diagnosing problems: OS/Distro/Version, Ispcp version, and relevant log files (mail.log in this case).
(This post was last modified: 07-26-2009 01:14 AM by kilburn.)
07-26-2009 01:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Cannot connect to SMTP remotely - kilburn - 07-26-2009 01:11 AM

Forum Jump:


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