Showing results for 
Show  only  | Search instead for 
Did you mean: 

Email not delivering from command line on external server

I am trying to send email from the Linux command line on an external server.
It seems like it connects but the mail is never delivered.
relayhost = []:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_type = cyrus
mynetworks =,

I also tried but no luck

[centos@ip-172-26-2-221 ~]$ sudo tail -f /var/log/maillog
Jan 8 15:56:18 ip-172-26-2-221 postfix/error[27187]: 29317415845: to=<>, relay=none, delay=23, delays=0/23/0/0.01, dsn=4.4.1, status=deferred (delivery tempor
arily suspended: connect to[]:25
: Connection timed out)
Jan 8 15:56:18 ip-172-26-2-221 postfix/error[27188]: E22E7414F80: to=<sales@proxyplayer.c>, relay=none, delay=17177, delays=17116/60/0/0.01, dsn=4.4.1, status=deferred (delive
ry temporarily suspended: connect to[104.47.
21.36]:25: Connection timed out)
Jan 8 15:56:24 ip-172-26-2-221 sendmail[27193]: 008FuOcl027193: from=centos, size=5098, c
lass=0, nrcpts=1, msgid=<
ernal>, relay=root@localhost
Jan 8 15:56:24 ip-172-26-2-221 postfix/smtpd[27152]: connect from localhost[]
Jan 8 15:56:24 ip-172-26-2-221 postfix/smtpd[27152]: CFB9D415846: client=localhost[127.0.
Jan 8 15:56:24 ip-172-26-2-221 postfix/cleanup[27153]: CFB9D415846: message-id=<202001081>
Jan 8 15:56:24 ip-172-26-2-221 postfix/qmgr[22097]: CFB9D415846: from=<centos@ip-172-26-2>, size=5782, nrcpt=1 (queue active)
Jan 8 15:56:24 ip-172-26-2-221 sendmail[27193]: 008FuOcl027193:,
ctladdr=centos (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=35098, rel
ay=[] [], dsn=2.0.0, stat=Sent (Ok: queued as CFB9D415846)
Jan 8 15:56:24 ip-172-26-2-221 postfix/error[27185]: CFB9D415846: to=<>, relay=none, delay=0.01, delays=0/0/0/0, dsn=4.4.1, status=deferred (delivery temporar
ily suspended: connect to[]:25:
Connection timed out)