Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

EmailSend - Line too long


cunningham Jul 30, 2012 12:40 PM

hi all,

i am still struggling with the EmailSend function using an
CR1000@OS25.
i have mentioned the same error in this post:
http://www.campbellsci.com/forum/messages.cfm?threadid=5BBF3176-E4A0-688A-BF34C14972DC52FB

I get the error-message "Line too long" when trying to send mails with attachments via 1und1.de(Nemesis ESMTP) (relative big provider in germany).
As a german guy i really need to be able to use this provider, as a lot of customers are using this service and hence want to get their mails at least CC'ed to this provider.
I am able to send mails via googlemail or gmx.net, so i suspect the mail-server at 1und1 is a little "pedantic".

So i set up a "hMailserver" (with a vanilla-config) on my machine to get some logs, which showed the same line-to-long error.

"SMTPD" 9908 14 "2012-07-30 12:00:37.660" "192.168.0.2" "SENT: 220 MY-SERVER ESMTP"
"SMTPD" 7872 14 "2012-07-30 12:00:37.700" "192.168.0.2" "RECEIVED: EHLO CR1000"
"SMTPD" 7872 14 "2012-07-30 12:00:37.702" "192.168.0.2" "SENT: 250-MY-SERVER[nl]250-SIZE 20480000[nl]250 AUTH LOGIN"
"SMTPD" 9908 14 "2012-07-30 12:00:37.758" "192.168.0.2" "RECEIVED: AUTH LOGIN"
"SMTPD" 9908 14 "2012-07-30 12:00:37.760" "192.168.0.2" "SENT: 334 VXNlcm5hbWU6"
"SMTPD" 5628 14 "2012-07-30 12:00:37.781" "192.168.0.2" "RECEIVED: xxx"
"SMTPD" 5628 14 "2012-07-30 12:00:37.782" "192.168.0.2" "SENT: 334 UGFzc3dvcmQ6"
"SMTPD" 5628 14 "2012-07-30 12:00:37.800" "192.168.0.2" "RECEIVED: ***"
"SMTPD" 5628 14 "2012-07-30 12:00:37.811" "192.168.0.2" "SENT: 235 authenticated."
"SMTPD" 8056 14 "2012-07-30 12:00:37.843" "192.168.0.2" "RECEIVED: MAIL FROM:<foo@boo.moo>"
"SMTPD" 8056 14 "2012-07-30 12:00:37.849" "192.168.0.2" "SENT: 250 OK"
"SMTPD" 9472 14 "2012-07-30 12:00:37.881" "192.168.0.2" "RECEIVED: RCPT TO:<foo@moo.boo>"
"SMTPD" 9472 14 "2012-07-30 12:00:37.884" "192.168.0.2" "SENT: 250 OK"
"SMTPD" 5628 14 "2012-07-30 12:00:37.900" "192.168.0.2" "RECEIVED: RCPT TO:<foo@boo.goo>"
"SMTPD" 5628 14 "2012-07-30 12:00:37.903" "192.168.0.2" "SENT: 250 OK"
"SMTPD" 6936 14 "2012-07-30 12:00:37.920" "192.168.0.2" "RECEIVED: RCPT TO:<foo@goo.boo>"
"SMTPD" 6936 14 "2012-07-30 12:00:37.922" "192.168.0.2" "SENT: 250 OK"
"SMTPD" 10172 14 "2012-07-30 12:00:37.963" "192.168.0.2" "RECEIVED: DATA"
"SMTPD" 10172 14 "2012-07-30 12:00:37.964" "192.168.0.2" "SENT: 354 OK, send."
"SMTPD" 9988 14 "2012-07-30 12:01:00.594" "192.168.0.2" "SENT: 554 Too long line was received. Transmission aborted."


So i must suspect there is a little "incompatibility" between the loggers output and the expected input at the server side at least for this mail-server when it comes to the transmission of the attachment (something like a CR->CRLF->CRCRLF issue?)

I have no in-depth knowledge of email, so maybe i am completely wrong, but it would be nice if someone could confirm that there is a problem with some mail-servers.


aps Jul 30, 2012 01:04 PM

Can you tell us what format of file you are trying to send please and its size?


cunningham Jul 30, 2012 01:41 PM

hi,

the file i am sending for testing purpose, is a
Ascii-TOA5-dat-file (downloaded via Loggernet from logger and then uploaded via FileControl to the USR-drive).
The filesize is ~70kB (315 lines).
The longest line is the second headerline (fieldnames/channelnames) which is 859bytes+CRLF.

greetings


aps Jul 30, 2012 04:18 PM

Can you confirm what you have in the from field in email send as we think the problem may be in the length of the message ID field the logger constructs, which includes the from address.


cunningham Jul 31, 2012 07:41 AM

hi,

my from_field consists of one email-address.
it is declared like this :

Const EMAIL_FROM="abcdefgh@123456789.de"

the length of this address is the same as the original used in the program.


Dana Jul 31, 2012 06:42 PM

This has been identified as an issue with the email code in the datalogger (as well as RTMC -- they use the same code). The lines are not being restricted to 76 characters. Many email servers will tolerate these longer lines, but some will not.

This will be fixed in the next OS of the datalogger, and also the next release of RTMC (neither has a scheduled release date at this time).

I apologize for this inconvenience.

Dana


cunningham Aug 1, 2012 08:27 AM

hi dana,

this is good news.
Thanks for pinpointing the reason for my problems so quick.
I will wait for the next OS-release (and in the meantime try to use another mail-server)

greetings


cunningham Apr 11, 2013 01:48 PM

hello,

just as i am reading about the new firmware coming soon (http://www.campbellsci.com/forum/messages.cfm?threadid=237ABB53-7BAE-41C5-A6AD4380EC80B320),
i would like to know, if this issue will be fixed?


tmecham Apr 16, 2013 04:19 PM

This issue is fixed in the upcoming OS 26 release.

Log in or register to post/reply in the forum.