Skip to content

Instantly share code, notes, and snippets.

@andrey-utkin
Created January 30, 2016 21:38
Show Gist options
  • Save andrey-utkin/182a1bbd55fbe2092609 to your computer and use it in GitHub Desktop.
Save andrey-utkin/182a1bbd55fbe2092609 to your computer and use it in GitHub Desktop.
root@decent /var/mail # echo TEST-TEST | mail -v -s TEST -S smtp=localhost andrey.od.utkin@gmail.com
Resolving host localhost . . . done.
Connecting to 127.0.0.1:smtp . . . connected.
220 decent.im ESMTP Exim 4.86 Ubuntu Sat, 30 Jan 2016 22:34:34 +0100
>>> HELO decent.im
250 decent.im Hello localhost [127.0.0.1]
>>> MAIL FROM:<root@decent.im>
250 OK
>>> RCPT TO:<andrey.od.utkin@gmail.com>
250 Accepted
>>> DATA
354 Enter message, ending with "." on a line by itself
>>> .
250 OK id=1aPdAA-00039S-Fc
>>> QUIT
221 decent.im closing connection
root@decent /var/mail # cat mail_reader
From MAILER-DAEMON Sat Jan 30 22:34:34 2016
Return-path: <>
Envelope-to: root@decent.im
Delivery-date: Sat, 30 Jan 2016 22:34:34 +0100
Received: from Debian-exim by decent.im with local (Exim 4.86)
id 1aPdAA-00039W-Sf
for root@decent.im; Sat, 30 Jan 2016 22:34:34 +0100
X-Failed-Recipients: andrey.od.utkin@gmail.com
Auto-Submitted: auto-replied
From: Mail Delivery System <Mailer-Daemon@decent.im>
To: root@decent.im
Content-Type: multipart/report; report-type=delivery-status; boundary=1454189674-eximdsn-1804289383
MIME-Version: 1.0
Subject: Mail delivery failed: returning message to sender
Message-Id: <E1aPdAA-00039W-Sf@decent.im>
Date: Sat, 30 Jan 2016 22:34:34 +0100
--1454189674-eximdsn-1804289383
Content-type: text/plain; charset=us-ascii
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
andrey.od.utkin@gmail.com
host gmail-smtp-in.l.google.com [2a00:1450:4013:c01::1b]
SMTP error from remote mail server after end of data:
550-5.7.1 [2a01:4f8:c17:16c8::2] Our system has detected that this message does
550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and
550-5.7.1 authentication. Please review
550-5.7.1 https://support.google.com/mail/?p=ipv6_authentication_error for more
550 5.7.1 information. m189si5279995wmb.98 - gsmtp
--1454189674-eximdsn-1804289383
Content-type: message/delivery-status
Reporting-MTA: dns; decent.im
Action: failed
Final-Recipient: rfc822;andrey.od.utkin@gmail.com
Status: 5.0.0
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [2a01:4f8:c17:16c8::2] Our system has detected that this message does
550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and
550-5.7.1 authentication. Please review
550-5.7.1 https://support.google.com/mail/?p=ipv6_authentication_error for more
550 5.7.1 information. m189si5279995wmb.98 - gsmtp
--1454189674-eximdsn-1804289383
Content-type: message/rfc822
Return-path: <root@decent.im>
Received: from localhost ([127.0.0.1] helo=decent.im)
by decent.im with smtp (Exim 4.86)
(envelope-from <root@decent.im>)
id 1aPdAA-00039S-Fc
for andrey.od.utkin@gmail.com; Sat, 30 Jan 2016 22:34:34 +0100
Date: Sat, 30 Jan 2016 22:34:34 +0100
From: root@decent.im
To: andrey.od.utkin@gmail.com
Subject: TEST
Message-ID: <56ad2c6a.Y30Z3w1Ks6e0b7g+%root@decent.im>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
TEST-TEST
--1454189674-eximdsn-1804289383--
root@decent /var/mail #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment