I'm trying to send email through a Postfix server. From the command line, if I enter:
echo "This is the body of the email" | mail -s "subject line" [email protected]`
Then the error I see in log/mail.info is:
postfix/smtp[23093]: connect to mail.mydomain.com[my.ip.add.here]: Connection refused (port 25)
If I enter netstat -an |more, I see:
...
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
...
No 0.0.0.0:25
if that makes a difference?
Edit
If I run netstat -plntu
, then I see 3587/master
as the pid/program name for 127.0.0.1:25. I see no postfix listed for pid/program name. Could it be that the mail server isn't running. I was told that it was.
...
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3587/master
...
Edit
Confirmed Postfix is running by typing postfix start
Edit
Tried this on the server if it helps:
telnet mail.mydomain.com 25
Trying 202.192.77.135...
telnet: connect to address 202.192.77.135: Connection refused
I know this problem has been solved many times, but I'm a simple web developer and I might need a little more guidance. Thank you.
me@localhost
.example.com
? Maybepostfix
?nc vegas.jacobdevans.com 25 -v