> This is the first line in the body_checks.regexp sent by Len.
>
> ~^[[:alnum:]+/]{60,}\s*$~       OK
>
> I've looked for info on regexp but can't determine what this matches
(and
> OKs).

Encoded files.

The idea is simple.  Regular Expressions are the largest resource hog of
Postfix.  A large body check file can delay mail to the point where
connections are timing out.

There are many methods for restructuring these checks to limit this
effect.  Optimizing, using PCRE on systems with a poor REGEXP library, and
limiting the number of checks are all good.

But Postfix used to still have a very high overhead when pictures were
passed through.  This has recently been cut back by adding
body_checks_size_limit.

Before body_checks_size_limit, the solution was to OK (ignore) lines that
were encoded.

Even with body_checks_size_limit, the encoding skip can help because so
many people attach things to email these days.

--Eric


Reply via email to