English 中文(简体)
SMTP:
原标题:SMTP: (without second ) as double newline

I have SMTP parser that works mostly fine. There is a problem when receiving traffic from third party software that sends double newlines as " " (without the second " "). Currently such connections are terminated as non-compliant SMTP. Can somebody explain what exactly RFC says about such "funny" double newlines? Can I asume that software that sends data like that is doing something really wrong?

最佳回答

RFC2821.第2.3.7节:

SMTP commands and, unless altered by a service extension, message
data, are transmitted in "lines". Lines consist of zero or more data
characters terminated by the sequence ASCII character "CR" (hex value 0D) followed immediately by ASCII character "LF" (hex value 0A).

http://www.ietf.org/rfc/rfc2821.txt

--Dave

问题回答

Various operating systems have various representations for Newline characters. Check the instructions here on newline characters.. By the way its a common practice among programmers to use both the and together to prevent any conflicts on the system. You need to check which newline character is supported by your system. If its then you are getting both the required characters. But if its , then the error lies with the sender.





相关问题
Bounced email parsing

I m currently having a mess about with catching, parsing and sorting bounced emails. I have the basics set up nicely and it does what I want, which is nice... problem being is that there seems to be ...

Sending Email through .NET code

I m unable to send an email to yahoo server as my code is throwing exception as Failure Sending mail in C# 2008. Please provide SMTP HostName, PortName for yahoo server and gmail server. And also ...

parsing response end with extended SMTP (ESMTP)

To use an example response from google when sent "EHLO": 250-mx.google.com at your service, [66.501.941.15] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250 PIPELINING ...

ASP.NET MVC Web Config Email Settings

I m trying to include some SMTP settings in my ASP.NET MVC project by adding the following to my Web.Config file: <system.net> <mailSettings> <smtp> <network ...

postfix relay failover [closed]

Is there a way to configure postfix to use a relay only if direct delivery is rejected? The case being a web application that has to send notification to subscribers, but some servers reject the ...

IIS SMTP Server

I am trying to set up an SMTP server on a virtual private server. I have typically hosted applications with hosting companies in the past. I am using SMPT on a website to send mail but need to ...

IIS6 SMTP Service and stop Delivery Reties?

Is there anyway to tell the SMTP service to stop trying to resend an e-mail that has been tried / failes x amount of times ? I can t find anything in the delivery tab to speicify this. Just curious if ...

Writing my own SMTP server [closed]

I am writing a simple SMTP server and client. Server is in two parts receiver-SMTP and Sender SMTP. both will run in two different daemon services. The two modes this can run in is remote and local ...

热门标签