Tip

Beware of bare linefeeds in Exchange Server email

A bare linefeed is a single linefeed character (LF or ASCII 10) that isn't preceded by an ASCII carriage return (CR or ASCII 13) character. Since a carriage return is always supposed to be followed by a linefeed according to RFC 822bis, any message that has a bare linefeed in it is supposed to be rejected by the email server it was sent to.

When this happens, the receiving email server typically prepares a rejection message that mentions the problem. This is often accompanied with the directive See

    Requires Free Membership to View

http://pobox.com/~djb/docs/smtplf.html.

The URL describes the bare linefeed issue and has some suggested fixes for a number of popular Unix-based mailers (and even a few Windows mailers). Unfortunately, there is no fix listed in the event this problem crops up when you're using Exchange Server.

When you're running Exchange Server, the culprit is almost always not Exchange Server itself but a third-party add-on or appliance -- a virus scanner that runs as part of Exchange Server or a hardware device that scans emails in transit to and from your Exchange server.

Under certain conditions (such as a very long, unwrapped text line), the virus scanner or appliance may mistakenly inject a bare linefeed and cause outgoing email to fail. Some more archaic email clients will also try to end a message with a linefeed, a period and a linefeed instead of a CR-LF-period-CR-LF string, which will also fail.

The easiest way to find out if the device or scanning engine in question is the culprit is simply to take it out of service for a time and see if the problem repeats itself. If not, you'll need to see if an upgrade for that device/program exists -- or perhaps consider a replacement that doesn't cause such issues.

About the author: Serdar Yegulalp is editor of Windows Insight, a newsletter devoted to hints, tips, tricks, news and goodies for all flavors of Windows users.

Do you have comments on this tip? Let us know.

Related information from SearchExchange.com:

  • Tip: Using an appliance to reduce the performance impact of spam
  • Tip: How and why to disable certain ESMTP verbs
  • Fast Guide: Exchange Server security essentials
  • 5 tips in 5 minutes: Securing Exchange Server 2003
  • Step-by-Step Guide: How to use ISA Server as an SMTP filter

    Please let others know how useful this tip was via the rating scale below. Do you have a useful Exchange Server or Microsoft Outlook tip, timesaver or workaround to share? Submit it to SearchExchange.com. If we publish it, we'll send you a nifty thank-you gift.

    This was first published in January 2007

  • There are Comments. Add yours.

     
    TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

    REGISTER or login:

    Forgot Password?
    By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
    Sort by: OldestNewest

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to:

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.