LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-09-2015, 08:57 PM   #1
angeloprivera
LQ Newbie
 
Registered: Aug 2015
Posts: 3

Rep: Reputation: Disabled
need help on Sendmail, dsn=5.6.0, stat=Data format error


I'm having this issue with my sendmail server whereas, I can send email to ymail and gmail, but unfortunately if I try to send to a different mail server I'm receiving dsn=5.6.0, stat=Data format error

on my /etc/hosts file I have this

Code:
127.0.0.1       my.domain.xx localhost.localdomain
xxx.xxx.xxx.xxx  my.domain.xx
I did try to do telnet

Code:
telnet my.domain.xx 25
Trying xxx.xxx.xxx.xxx...
Connected to my.domain.xx.
Escape character is '^]'.
220 hostname ESMTP Sendmail 8.14.4/8.14.4; Mon, 10 Aug 2015 10:50:23 +0900
Also on my relay I can see my domain is right, but the sender is showing me
root@hostname.xxx.net which is different to my domain name.

Code:
Aug 10 10:52:02 vz229104 sendmail[12849]: t7A1q2UY012849: from=<root@hostname.xxx.net>, size=749, class=0, nrcpts=1, msgid=<201508100152.t7A1q1K4012840@hostname.xxx.net>, proto=ESMTP, daemon=MTA, relay=my.domain.cc [127.0.0.1]

I also have this on my sendmail.mc

Code:
FEATURE(`accept_unresolvable_domains')dnl
dnl FEATURE(`relay_based_on_MX')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MASQUERADE_AS(`cargoac.ula.cc')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(my.domain.xx)dnl
dnl MASQUERADE_DOMAINmy.domain.xx)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl

can anyone please help me with this?
 
Old 08-09-2015, 09:21 PM   #2
angeloprivera
LQ Newbie
 
Registered: Aug 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Code:
Aug 10 11:19:32 vz229104 sendmail[24639]: t7A2JWji024639: from=root, size=218, class=0, nrcpts=1, msgid=<201508100219.t7A2JWji024639@hostname>, relay=root@localhost
Aug 10 11:19:32 vz229104 sendmail[24640]: t7A2JW8E024640: from=<root@hostname>, size=446, class=0, nrcpts=1, msgid=<201508100219.t7A2JWji024639@vz229104.vps>, proto=ESMTP, daemon=MTA, relay=my.domain.xx [127.0.0.1]
Aug 10 11:19:32 vz229104 sendmail[24639]: t7A2JWji024639: to=jun@bintan.me, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30218, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t7A2JW8E024640 Message accepted for delivery)
Aug 10 11:19:33 vz229104 sendmail[24642]: t7A2JW8E024640: to=<jun@bintan.me>, ctladdr=<root@hostname> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=120446, relay=bintan.me. [206.223.153.135], dsn=5.6.0, stat=Data format error
Aug 10 11:19:33 vz229104 sendmail[24642]: t7A2JW8E024640: t7A2JX8E024642: DSN: Data format error
Aug 10 11:19:33 vz229104 sendmail[24642]: t7A2JX8E024642: to=<root@hostname>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31665, dsn=2.0.0, stat=Sent

I'm trying to send to jun@bintan.me but wasn't able to do so and have this error.
 
Old 08-10-2015, 06:37 PM   #3
angeloprivera
LQ Newbie
 
Registered: Aug 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
I hope someone can answer my question or help me please.
 
Old 03-01-2024, 09:24 PM   #4
ddbtek
LQ Newbie
 
Registered: Oct 2010
Location: United States of America
Distribution: rhel, suse, centos, etc.
Posts: 10

Rep: Reputation: 3
Might have a heartbleed issue

You can get this error for a lot of reasons. If you don't have SWAKS and your connection requires STARTTLS then it's very hard to trouble-shoot with telnet. This might give you some help.

One of the things that can cause this issue if if you have an older openssl implementation with heartbleed error and the other side detects it and disconnects.

Also, if you DON'T have a heartbleed issue, your openssl is 1.02 or newer (openssl version) the far end might disconnect if it knows you are HEARTBEAT capable (such as amazon SES).

Try using openssl as your SMTP command and you will be able to see why the far side disconnects:

openssl s_client -starttls smtp -crlf -tls1_2 -connect <host>:<port>

e.g.,

openssl s_client -starttls smtp -crlf -tls1_2 -connect smtp.mymailserver.net:587

Then your screen will spit out a bunch of stuff and eventually get to "250 Ok" as follows ('->' represents server output, '<-' represents what you TYPE):

-> 250 Ok
<- EHLO my.server.com
-> 250-some-server.somewhere.com
-> 250-8BITMIME
-> 250-STARTTLS
-> 250-AUTH PLAIN LOGIN
-> 250 Ok
<- AUTH LOGIN
-> 334 VXNlcm5hbWU6
<- <login-I know this should be encrypted but to test it doesn't have to be>
-> 334 UGFzc3dvcmQ6
<- <thepassword>
-> HEARTBEATING
-> 139643214628752:error:1413B16D:SSL routines:tls1_heartbeateer does not accept heartbeats:t1_lib.c:4039:

Could be other reasons, too.

David

Last edited by ddbtek; 03-01-2024 at 09:25 PM. Reason: remove idnetifying info
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
stat=Data format error in sendmail ubuntu 10.04 lucid sanjay87 Linux - Server 0 06-09-2012 10:48 AM
stat=Data format error rising_helan Linux - Newbie 4 01-23-2012 05:13 AM
Sendmail dsn=4.0.0, stat=Deferred: Invalid argument error stephen_davies Linux - Software 1 07-03-2009 04:22 AM
Sent Email dropped; invalid hostname; DSN Data format error; Swakoo Linux - General 9 01-31-2007 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration