I have recently all of a sudden stopped receiving my cronjob messages that were being sent with the mailx command. I have not made any changes and it is affecting all my servers at this site only (all running Solaris 10). At my other site I am running a mixture of Solaris 10 and Ubuntu 14, and they can send mailx messages via cronjob with no problems. The only difference I can see is they are different domains. They all send directly from the server the cronjob ran from (we don't have a mail server or relay at either site, it is hosted by google). I can send a mailx message to other local servers, I am only having problems sending them to external e-mail addresses.
When I send a test message manually with the -v option I get the following:
mailx -v test.email@address.com
Subject: test
this is a test message
EOT
es1 37) test.email@address.com... Connecting to [127.0.0.1] via relay...
220 es1.md.usgrdc.com ESMTP Sendmail 8.13.7+Sun/8.13.7; Mon, 15 Dec 2014 14:03:14 -0500 (EST)
>>> EHLO es1.md.usgrdc.com
250-es1.md.usgrdc.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<adam@es1.md.usgrdc.com> SIZE=92
250 2.1.0 <adam@es1.md.usgrdc.com>... Sender ok
>>> RCPT To:<test.email@address.com>
>>> DATA
250 2.1.5 <test.email@address.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <test.email@address.com>... Connecting to aspmx.l.google.com. via esmtp...
050 220 mx.google.com ESMTP b8si1342258qak.99 - gsmtp
050 >>> EHLO es1.md.usgrdc.com
050 250-mx.google.com at your service, [<my external IP>]
050 250-SIZE 35882577
050 250-8BITMIME
050 250-STARTTLS
050 250-ENHANCEDSTATUSCODES
050 250-PIPELINING
050 250-CHUNKING
050 250 SMTPUTF8
050 >>> STARTTLS
050 <test.email@address.com>... Connecting to alt1.aspmx.l.google.com. via esmtp...
050 <test.email@address.com>... Closing connection to aspmx.l.google.com.
050 220 mx.google.com ESMTP 97si11643820qgf.42 - gsmtp
050 >>> EHLO es1.md.usgrdc.com
050 250-mx.google.com at your service, [<my external IP>]
050 250-SIZE 35882577
050 250-8BITMIME
050 250-STARTTLS
050 250-ENHANCEDSTATUSCODES
050 250-PIPELINING
050 250-CHUNKING
050 250 SMTPUTF8
050 >>> STARTTLS
050 <test.email@address.com>... Connecting to aspmx2.googlemail.com. via esmtp...
050 <test.email@address.com>... Closing connection to alt1.aspmx.l.google.com.
050 220 mx.google.com ESMTP k106si70584qgd.34 - gsmtp
050 >>> EHLO es1.md.usgrdc.com
050 250-mx.google.com at your service, [<my external IP>]
050 250-SIZE 35882577
050 250-8BITMIME
050 250-STARTTLS
050 250-ENHANCEDSTATUSCODES
050 250-PIPELINING
050 250-CHUNKING
050 250 SMTPUTF8
050 >>> STARTTLS
050 <test.email@address.com>... Deferred: Connection reset by aspmx2.googlemail.com.
250 2.0.0 sBFJ3EHU006348 Message accepted for delivery
test.email@address.com... Sent (sBFJ3EHU006348 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 es1.md.usgrdc.com closing connection
I have changed my e-mail address to "test.email@address.com," that is not the address I was trying to send to, I also changed my actual external IP to "<my external IP>" for this post. es1.md.usgrdc.com is one of my servers and internal domain.
This is obviously my problem:
050 <test.email@address.com>... Connecting to alt1.aspmx.l.google.com. via esmtp...
050 <test.email@address.com>... Closing connection to aspmx.l.google.com.
I just do not know why it is closing the connection to all the .google.com servers.
When I sniff my firewall for port 25 I see the traffic going back and forth, the only device after my firewall is the ISP router.
tcpdump -npi exp0 port 25
tcpdump: listening on exp0
16:20:45.715499 10.1.3.2.55548 > 74.125.22.27.25: S 2061072540:2061072540(0) win 16384 <mss 1460,nop,wscale 0,nop,nop,timestamp 14520621 0> (DF)
16:20:45.728301 74.125.22.27.25 > 10.1.3.2.55548: S 2170873922:2170873922(0) ack 2061072541 win 42540 <mss 1430,nop,nop,timestamp 2118147341 14520621,nop,wscale 7>
16:20:45.728329 10.1.3.2.55548 > 74.125.22.27.25: . ack 1 win 17160 <nop,nop,timestamp 14520621 2118147341> (DF)
16:20:45.741760 74.125.22.27.25 > 10.1.3.2.55548: P 1:54(53) ack 1 win 333 <nop,nop,timestamp 2118147354 14520621>
16:20:45.742167 10.1.3.2.55548 > 74.125.22.27.25: P 1:25(24) ack 54 win 17160 <nop,nop,timestamp 14520621 2118147354> (DF)
16:20:45.754901 74.125.22.27.25 > 10.1.3.2.55548: . ack 25 win 333 <nop,nop,timestamp 2118147367 14520621>
16:20:45.766330 74.125.22.27.25 > 10.1.3.2.55548: P 54:222(168) ack 25 win 333 <nop,nop,timestamp 2118147379 14520621>
16:20:45.768117 10.1.3.2.55548 > 74.125.22.27.25: F 25:25(0) ack 222 win 17160 <nop,nop,timestamp 14520621 2118147379> (DF)
16:20:45.769470 10.1.3.2.55549 > 64.233.186.27.25: S 2061164667:2061164667(0) win 16384 <mss 1460,nop,wscale 0,nop,nop,timestamp 14520621 0> (DF)
16:20:45.781278 74.125.22.27.25 > 10.1.3.2.55548: F 222:222(0) ack 26 win 333 <nop,nop,timestamp 2118147394 14520621>
16:20:45.781298 10.1.3.2.55548 > 74.125.22.27.25: . ack 223 win 17160 <nop,nop,timestamp 14520621 2118147394> (DF)
16:20:45.892998 64.233.186.27.25 > 10.1.3.2.55549: S 1068554356:1068554356(0) ack 2061164668 win 42540 <mss 1430,nop,nop,timestamp 2122455153 14520621,nop,wscale 7>
16:20:45.893020 10.1.3.2.55549 > 64.233.186.27.25: . ack 1 win 17160 <nop,nop,timestamp 14520621 2122455153> (DF)
16:20:46.351142 64.233.186.27.25 > 10.1.3.2.55549: P 1:53(52) ack 1 win 333 <nop,nop,timestamp 2122455612 14520621>
16:20:46.351480 10.1.3.2.55549 > 64.233.186.27.25: P 1:25(24) ack 53 win 17160 <nop,nop,timestamp 14520622 2122455612> (DF)
16:20:46.475119 64.233.186.27.25 > 10.1.3.2.55549: . ack 25 win 333 <nop,nop,timestamp 2122455735 14520622>
16:20:46.654254 64.233.186.27.25 > 10.1.3.2.55549: P 53:221(168) ack 25 win 333 <nop,nop,timestamp 2122455915 14520622>
16:20:46.655007 10.1.3.2.55549 > 64.233.186.27.25: F 25:25(0) ack 221 win 17160 <nop,nop,timestamp 14520623 2122455915> (DF)
16:20:46.656366 10.1.3.2.55550 > 64.233.186.27.25: S 2061653855:2061653855(0) win 16384 <mss 1460,nop,wscale 0,nop,nop,timestamp 14520623 0> (DF)
16:20:46.789459 64.233.186.27.25 > 10.1.3.2.55550: S 3468420545:3468420545(0) ack 2061653856 win 42540 <mss 1430,nop,nop,timestamp 2125453095 14520623,nop,wscale 7>
16:20:46.789478 10.1.3.2.55550 > 64.233.186.27.25: . ack 1 win 17160 <nop,nop,timestamp 14520623 2125453095> (DF)
16:20:46.819033 64.233.186.27.25 > 10.1.3.2.55549: . ack 26 win 333 <nop,nop,timestamp 2122456079 14520623>
16:20:46.944353 64.233.186.27.25 > 10.1.3.2.55549: F 221:221(0) ack 26 win 333 <nop,nop,timestamp 2122456205 14520623>
16:20:46.944374 10.1.3.2.55549 > 64.233.186.27.25: . ack 222 win 17160 <nop,nop,timestamp 14520624 2122456205> (DF)
16:20:47.271106 64.233.186.27.25 > 10.1.3.2.55550: P 1:54(53) ack 1 win 333 <nop,nop,timestamp 2125453577 14520623>
16:20:47.271561 10.1.3.2.55550 > 64.233.186.27.25: P 1:25(24) ack 54 win 17160 <nop,nop,timestamp 14520624 2125453577> (DF)
16:20:47.404206 64.233.186.27.25 > 10.1.3.2.55550: . ack 25 win 333 <nop,nop,timestamp 2125453710 14520624>
16:20:47.580796 64.233.186.27.25 > 10.1.3.2.55550: P 54:222(168) ack 25 win 333 <nop,nop,timestamp 2125453887 14520624>
16:20:47.581449 10.1.3.2.55550 > 64.233.186.27.25: F 25:25(0) ack 222 win 17160 <nop,nop,timestamp 14520625 2125453887> (DF)
16:20:47.754376 64.233.186.27.25 > 10.1.3.2.55550: . ack 26 win 333 <nop,nop,timestamp 2125454060 14520625>
16:20:47.887736 64.233.186.27.25 > 10.1.3.2.55550: F 222:222(0) ack 26 win 333 <nop,nop,timestamp 2125454194 14520625>
16:20:47.887751 10.1.3.2.55550 > 64.233.186.27.25: . ack 223 win 17160 <nop,nop,timestamp 14520625 2125454194> (DF)
I don't think it is being blocked by my ISP as I can telnet to the mail server it is trying to contact.
telnet aspmx.l.google.com 25
Trying 64.233.171.27...
Connected to aspmx.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP t4si11715407qcq.0 - gsmtp
Anybody have any ideas on what could be causing my messages to not be delivered suddenly?