cancel
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 = [smtpout.secureserver.net]: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 = 192.168.1.0/24, 127.0.0.0/8

I also tried mydomain-com.mail.protection.outlook.com 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=<myemail@gmail.com>, relay=none, delay=23, delays=0/23/0/0.01, dsn=4.4.1, status=deferred (delivery tempor
arily suspended: connect to proxyplayer-co-uk.mail.protection.outlook.com[104.47.21.36]:25
: Connection timed out)
Jan 8 15:56:18 ip-172-26-2-221 postfix/error[27188]: E22E7414F80: to=<sales@proxyplayer.c
o.uk>, relay=none, delay=17177, delays=17116/60/0/0.01, dsn=4.4.1, status=deferred (delive
ry temporarily suspended: connect to proxyplayer-co-uk.mail.protection.outlook.com[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=<202001081556.008FuOcl027193@ip-172-26-2-221.eu-west-2.compute.int
ernal>, relay=root@localhost
Jan 8 15:56:24 ip-172-26-2-221 postfix/smtpd[27152]: connect from localhost[127.0.0.1]
Jan 8 15:56:24 ip-172-26-2-221 postfix/smtpd[27152]: CFB9D415846: client=localhost[127.0.
0.1]
Jan 8 15:56:24 ip-172-26-2-221 postfix/cleanup[27153]: CFB9D415846: message-id=<202001081
556.008FuOcl027193@ip-172-26-2-221.eu-west-2.compute.internal>
Jan 8 15:56:24 ip-172-26-2-221 postfix/qmgr[22097]: CFB9D415846: from=<centos@ip-172-26-2
-221.eu-west-2.compute.internal>, size=5782, nrcpt=1 (queue active)
Jan 8 15:56:24 ip-172-26-2-221 sendmail[27193]: 008FuOcl027193: to=myemail@gmail.com,
ctladdr=centos (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=35098, rel
ay=[127.0.0.1] [127.0.0.1], 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=<myemail@gmail.com>, relay=none, delay=0.01, delays=0/0/0/0, dsn=4.4.1, status=deferred (delivery temporar
ily suspended: connect to proxyplayer-co-uk.mail.protection.outlook.com[104.47.21.36]:25:
Connection timed out)

0 REPLIES 0