LevelBlue Completes Acquisition of Trustwave to Form the World's Largest Pure-Play MSSP.  Learn More

LevelBlue Completes Acquisition of Trustwave to Form the World's Largest Pure-Play MSSP.  Learn More

Services
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Offensive Security
Solutions to maximize your security ROI
Operational Technology
End-to-end OT security
Microsoft Security
Unlock the full power of Microsoft Security
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Microsoft Security
Unlock the full power of Microsoft Security
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
Loading...
Loading...

FAQ: Is there any way to limit Mail Size at the Receiver for both SMTP and ESMTP?

Expand / Collapse


This article applies to:

  • Trustwave MailMarshal (SEG)

Question:

  • How do I limit the size of an incoming message?
  • How do I have MailMarshal block incoming messages based on a size limit?

Reply:

You may be able to limit message size with a Receiver Rule. However this method depends on ESMTP and only works if the sending server provides an accurate size, which is optional.

You can set a hard limit that will apply for both SMTP and ESMTP connections. To set the limit, use the following registry setting:

  • In MailMarshal 10.0 and above, open the Management Console and navigate to Advanced Settings. Add a new value:
    • Name: Receiver.MaxMessageSize
    • Type: Integer
    • Value: The desired message size in bytes. The maximum allowed value is 2GB (2 000 000 000).
  • In MailMarshal 8.X and below, open the Registry Editor on the Array Manager. Within the base registry key, navigate to \Default\Receiver
    • In version 8.X: HKEY_LOCAL_MACHINE\SOFTWARE\Trustwave\Secure Email Gateway\Default\Receiver
    • For information about the registry location for each version, see article Q10832.
    • Enter the value as a new DWORD value named MaxMessageSize (size in bytes). Use Decimal numbers to avoid confusion. The maximum allowed value is 2GB (2 000 000 000).
  • Save your registry settings or configuration settings.
  • Commit the configuration changes and restart the MailMarshal Receiver service on each node.

Now if an incoming message exceeds the configured message size MailMarshal will return the message "552 Message exceeds fixed maximum message size."

This registry entry sets a limit on the receipt of SMTP and ESMTP messages.

  • If the other server provides an ESMTP SIZE value greater than the limit, MailMarshal will reject the message immediately.
  • MailMarshal will also reject the message if the data actually received exceeds the limit. This action does not depend on ESMTP.
  • This setting does not have a default value. The limit only applies if a value has been entered and committed.

Notes:

Warning: Using the Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Trustwave cannot guarantee that problems resulting from the incorrect use of Registry Editor can be resolved. Make sure that you back up your Registry prior to making any changes.

This article was previously published as:
NETIQKB43176

To contact Trustwave about this article or to request support:


Rate this Article:
     
Tags:

Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.