Error: "SMTPD: Invalid SMTP protocol: Overly long line received from . . ." when sending email to some addresses
You cannot receive email from some users or servers outside of the firewall. When viewing the log files, you see that the email is rejected with an error message similar to the following: "SMTPD: Invalid SMTP protocol: Overly long line received from mailserver.domain.com ([10.10.10.10]) (1343 bytes received. Configured: smtpd.max_body_line_length=1024)."
This error message is seen when the message received contains a line that is longer than 1024 characters. To pass the email traffic through the firewall, use one of the following solutions:
The recommended solution is to modify sent email to use less then 1024 characters on a single line. The easiest way to change this is to add a hard carriage return to the message (press Enter) on the line that is longer then 1024 characters.
To work around this at the firewall, you must modify the SMTP proxy directive max_body_line_length.
Before making this change, evaluate the possible security risk that modifying this setting will create. Changing this setting will lower the security of the SMTP daemon and may expose clients behind the firewall
to a possible buffer-overflow. This change to the configuration is not recommended by Symantec.
To modify the max_body_line_length setting on Symantec Enterprise Firewall 6.5x or 7.0x products (including Symantec VelociRaptor and Symantec Gateway Security 1.0)
To modify the max_body_line_length setting on Symantec Enterprise Firewall 8.0 products (including Symantec Gateway Security 5400 Series)
- Open the config.cf file using the firewall editor.
- Remove the hash mark (#) from the beginning of the line that says: smtpd.max_body_line_length=1024
- Change the number after the equal sign to the maximum number of characters that you want to permit in a single line of an email.
- Save the file.
- Restart your firewall.
- Connect to the Security Gateway Management Interface (SGMI).
- In the left pane, click System.
- In the right pane, on the Advanced tab, click Advanced Options.
- In the Advanced Options list, click New Advanced Option.
This creates a new Advanced Options entry and highlights it for you.
- Click Properties.
- In the Properties window, on the General tab, in the Option Name box, type the following:
- On the Value tab, in the Value box, type the maximum number of characters that you want to permit in a single line of an email.
- Click Add.
- Click OK.
- In the SGMI, in the right pane, click Apply.
- On the Action menu, click Activate Changes.
- Restart your firewall.
Section 184.108.40.206 (Size Limits and Minimums) of RFC 2821 states, "The maximum total length of a text line including the <CRLF> is 1000 characters (not counting the leading dot duplicated for transparency).
© 2016 AppRiver LLC. All rights reserved.