Article 50BF2 Mail sent, using mail or sendmail, not showing up

Mail sent, using mail or sendmail, not showing up

by
OtagoHarbour
from LinuxQuestions.org on (#50BF2)
I running two "16.04.4 LTS (Xenial Xerus)" servers through AWS EC2. the commands, mail and send mail have stopped working since January.

Code:echo "Mail test" | mail -s "Subject" otagoharbour@gmail.comruns without error but no mail shows up. Same when I use yahoo instead of gmail. I tried

Code:sudo apt-get install -y mailutilsIt ran without error but

Code:echo "Mail test" | mail -s "Subject" otagoharbour@gmail.comstill did not result in any mail arriving in my mail box.

Code:cat /var/log/mail.logresulted in

Code:Mar 6 12:39:01 ip-10-0-1-76 sm-mta[7215]: 026Cd1LM007215: from=<root@ip-10-0-1-76.ec2.internal>, size=848, class=0, nrcpts=1, msgid=<202003061239.026Cd1j0007214@ip-10-0-1-76.ec2.internal>, bodytype=7BIT, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Mar 6 12:39:01 ip-10-0-1-76 sendmail[7214]: 026Cd1j0007214: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30550, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (026Cd1LM007215 Message accepted for delivery)
Mar 6 12:39:01 ip-10-0-1-76 sm-mta[7216]: 026Cd1LM007215: to=<root@ip-10-0-1-76.ec2.internal>, ctladdr=<root@ip-10-0-1-76.ec2.internal> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31084, dsn=2.0.0, stat=Sent
Mar 6 12:50:41 ip-10-0-1-76 sm-mta[7240]: 0262vYR5004410: to=<otagoHarbour@gmail.com>, ctladdr=<ubuntu@ip-10-0-1-76.ec2.internal> (1000/1000), delay=09:53:07, xdelay=00:10:36, mailer=esmtp, pri=2910320, relay=alt4.gmail-smtp-in.l.google.com. [172.217.218.26], dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Mar 6 12:50:41 ip-10-0-1-76 sm-mta[7240]: 02517UA4030701: to=<otagoHarbour@gmail.com>, ctladdr=<www-data@ip-10-0-1-76.ec2.internal> (33/33), delay=1+11:43:11, xdelay=00:00:00, mailer=esmtp, pri=12000583, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Mar 6 12:50:41 ip-10-0-1-76 sm-mta[7240]: 024KKwfi029723: to=<otagoHarbour@gmail.com>, ctladdr=<www-data@ip-10-0-1-76.ec2.internal> (33/33), delay=1+16:29:43, xdelay=00:00:00, mailer=esmtp, pri=13620584, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Mar 6 12:50:41 ip-10-0-1-76 sm-mta[7240]: 023MRjPq024050: to=<otagoHarbour@gmail.com>, ctladdr=<www-data@ip-10-0-1-76.ec2.internal> (33/33), delay=2+14:22:56, xdelay=00:00:00, mailer=esmtp, pri=26040592, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Mar 6 12:50:41 ip-10-0-1-76 sm-mta[7240]: 023H1exj022946: to=<otagoHarbour@gmail.com>, ctladdr=<www-data@ip-10-0-1-76.ec2.internal> (33/33), delay=2+19:49:01, xdelay=00:00:00, mailer=esmtp, pri=28740592, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Mar 6 12:50:41 ip-10-0-1-76 sm-mta[7240]: 02339OqL008906: to=<otagoHarbour@gmail.com>, ctladdr=<www-data@ip-10-0-1-76.ec2.internal> (33/33), delay=3+09:41:17, xdelay=00:00:00, mailer=esmtp, pri=38460583, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Mar 6 12:58:20 ip-10-0-1-76 sendmail[7259]: 026CwKPZ007259: from=ubuntu@ip-10-0-1-76.ec2.internal, size=96, class=0, nrcpts=1, msgid=<202003061258.026CwKPZ007259@ip-10-0-1-76.ec2.internal>, relay=ubuntu@localhost
Mar 6 12:58:20 ip-10-0-1-76 sm-mta[7260]: 026CwKcY007260: from=<ubuntu@ip-10-0-1-76.ec2.internal>, size=383, class=0, nrcpts=1, msgid=<202003061258.026CwKPZ007259@ip-10-0-1-76.ec2.internal>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Mar 6 12:58:20 ip-10-0-1-76 sendmail[7259]: 026CwKPZ007259: to=<otagoHarbour@gmail.com>, ctladdr=ubuntu@ip-10-0-1-76.ec2.internal (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30096, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (026CwKcY007260 Message accepted for delivery)
Mar 6 13:00:41 ip-10-0-1-76 sm-mta[7256]: 0263JSRC004531: to=<otagoHarbour@gmail.com>, ctladdr=<ubuntu@ip-10-0-1-76.ec2.internal> (1000/1000), delay=09:41:13, xdelay=00:10:36, mailer=esmtp, pri=2910383, relay=alt4.gmail-smtp-in.l.google.com. [172.217.218.26], dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Mar 6 13:00:41 ip-10-0-1-76 sm-mta[7256]: 02517UA4030701: to=<otagoHarbour@gmail.com>, ctladdr=<www-data@ip-10-0-1-76.ec2.internal> (33/33), delay=1+11:53:11, xdelay=00:00:00, mailer=esmtp, pri=12090583, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Mar 6 13:00:41 ip-10-0-1-76 sm-mta[7256]: 024KKwfi029723: to=<otagoHarbour@gmail.com>, ctladdr=<www-data@ip-10-0-1-76.ec2.internal> (33/33), delay=1+16:39:43, xdelay=00:00:00, mailer=esmtp, pri=13710584, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Mar 6 13:00:41 ip-10-0-1-76 sm-mta[7256]: 023MRjPq024050: to=<otagoHarbour@gmail.com>, ctladdr=<www-data@ip-10-0-1-76.ec2.internal> (33/33), delay=2+14:32:56, xdelay=00:00:00, mailer=esmtp, pri=26130592, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Mar 6 13:00:41 ip-10-0-1-76 sm-mta[7256]: 023H1exj022946: to=<otagoHarbour@gmail.com>, ctladdr=<www-data@ip-10-0-1-76.ec2.internal> (33/33), delay=2+19:59:01, xdelay=00:00:00, mailer=esmtp, pri=28830592, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Mar 6 13:00:41 ip-10-0-1-76 sm-mta[7256]: 02339OqL008906: to=<otagoHarbour@gmail.com>, ctladdr=<www-data@ip-10-0-1-76.ec2.internal> (33/33), delay=3+09:51:17, xdelay=00:00:00, mailer=esmtp, pri=38550583, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Mar 6 13:02:28 ip-10-0-1-76 sm-mta[6664]: 0263HLxX004525: to=<otagoharbour@yahoo.com>, ctladdr=<ubuntu@ip-10-0-1-76.ec2.internal> (1000/1000), delay=09:45:07, xdelay=01:41:47, mailer=esmtp, pri=510397, relay=mta6.am0.yahoodns.net. [98.136.96.74], dsn=4.0.0, stat=Deferred: Connection timed out with mta6.am0.yahoodns.net.Code:ubuntu@ip-10-0-1-76:~$ mail otagoHarbour@yahoo.com
Cc: otagoHarbour@gmail.com
Subject: Test
Test
ubuntu@ip-10-0-1-76:~$also did not result in any mail to either my gmail or yahoo mailbox.

I later got mail, to my cloud server command line with the following message.

Code:<otagoHarbour@gmail.com>... Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
<otagoHarbour@yahoo.com>... Deferred: Connection timed out with mta5.am0.yahoodns.net.
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old

--0267K5nN005891.1583485948/ip-10-0-1-76.ec2.internal
Content-Type: message/delivery-status

Reporting-MTA: dns; ip-10-0-1-76.ec2.internal
Arrival-Date: Fri, 6 Mar 2020 03:12:56 GMT

Final-Recipient: RFC822; otagoHarbour@gmail.com
Action: delayed
Status: 4.4.1
Remote-MTA: DNS; alt4.gmail-smtp-in.l.google.com
Last-Attempt-Date: Fri, 6 Mar 2020 07:30:41 GMT
Will-Retry-Until: Wed, 11 Mar 2020 03:12:56 GMT

Final-Recipient: RFC822; otagoHarbour@yahoo.com
Action: delayed
Status: 4.4.1
Remote-MTA: DNS; mta5.am0.yahoodns.net
Last-Attempt-Date: Fri, 6 Mar 2020 09:12:28 GMT
Will-Retry-Until: Wed, 11 Mar 2020 03:12:56 GMT

--0267K5nN005891.1583485948/ip-10-0-1-76.ec2.internal
Content-Type: text/rfc822-headers

Return-Path: <ubuntu@ip-10-0-1-76.ec2.internal>
Received: from ip-10-0-1-76.ec2.internal (localhost [127.0.0.1])
by ip-10-0-1-76.ec2.internal (8.15.2/8.15.2/Debian-3) with ESMTP id 0263Cup0004510;
Fri, 6 Mar 2020 03:12:56 GMT
Received: (from ubuntu@localhost)
by ip-10-0-1-76.ec2.internal (8.15.2/8.15.2/Submit) id 0263CueJ004509;
Fri, 6 Mar 2020 03:12:56 GMT
Date: Fri, 6 Mar 2020 03:12:56 GMT
From: Ubuntu <ubuntu@ip-10-0-1-76.ec2.internal>
Message-Id: <202003060312.0263CueJ004509@ip-10-0-1-76.ec2.internal>
To: <otagoHarbour@yahoo.com>
Cc: <otagoHarbour@gmail.com>
Subject: Test
X-Mailer: mail (GNU Mailutils 2.99.99)Nothing ever shows up in gmail or yahoo mail.latest?d=yIl2AUoC8zA latest?i=0eqWio6xHFk:R2f7lMZSwD0:F7zBnMy latest?i=0eqWio6xHFk:R2f7lMZSwD0:V_sGLiP latest?d=qj6IDK7rITs latest?i=0eqWio6xHFk:R2f7lMZSwD0:gIN9vFw0eqWio6xHFk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments