O Controlling Your Email Traffic

Enforcing some sort of limit on message size is always a good idea. Today's bandwidth and connection standards (especially regarding clients) don't make it as essential as it was in the past, but having no limits at all is always a bad practice that could lead to an easy DoS condition.

Every MTAallows some sort of message limiting. Sendmail uses the MaxMessageSize variable, whereas Postfix provides the message_size_limit setting.

define(~confMAX_MESSAGE_SIZE,,~5242880') # size in bytes, 5 MB

The same philosophy of not allowing unlimited resources for your emails can be applied to connection parameters, like the rate and number of connections per client as well as the maximum number of allowed children. Both Sendmail and Postfix provide many options for the task; enable them using conservative values and then tune them when necessary:

define(~confMAX_DAEMON_CHILDREN',~500')dnl define(~confQUEUE_LA',~20')dnl define(~confREFUSE_LA',~30')dnl define(~confC0NNECTI0N_RATE_THR0TTLE',~30')dnl FEATURE('conncontrol')dnl FEATURE('ratecontrol', ,~terminate')dnl ClientRate: 10

ClientRate:129.130 0

ClientConn: 8

ClientConn:129.130 C

Was this article helpful?

0 0
The Ultimate Computer Repair Guide

The Ultimate Computer Repair Guide

Read how to maintain and repair any desktop and laptop computer. This Ebook has articles with photos and videos that show detailed step by step pc repair and maintenance procedures. There are many links to online videos that explain how you can build, maintain, speed up, clean, and repair your computer yourself. Put the money that you were going to pay the PC Tech in your own pocket.

Get My Free Ebook

Post a comment