SingleLineFromHeader

Strip newlines from From: headers V8.8 and later

Lotus Notes’ SMTP mail gateway can generate From: headers that contain newlines and that contain the address on the second line:

From: Full Name
        <address>

Although this is legal per RFC822, many MUAs mishandle such headers and are unable to find the address. If your site suffers from this problem, you can define the SingleLineFromHeader option using one of these forms:

O SingleLineFromHeader=boolconfiguration file (V8.8 and
later)
-OSingleLineFromHeader=boolcommand line (V8.8 and later)
define(`confSINGLE_LINE_FROM_HEADER', `bool')  ← mc configuration technique (V8.8
and later)

The bool is of type Boolean. If it is true, sendmail will convert all newlines found in a From: header into space characters. If it is false, sendmail will leave all From: headers as is. The default for the mc configuration technique is false.

The SingleLineFromHeader option is safe. Even if it is specified from the command line, sendmail retains its special privileges.

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.