Hello Wietse. Thank you for your answer, you are always attentive to
everyone, you were very kind.
I'm going to start using pcre, in the header_checks file I have certain
locks to prevent sending spam or phishing.

/^Subject: Invest once and get passive income.*/
                       DISCARD SUBJECTSPAM2293
/^Subject: Earnings on a trading robot.*/                       DISCARD
SUBJECTSPAM2294
/^Subject: Working Online At Home.*/                    DISCARD
SUBJECTSPAM2295
/^Subject: Netflix Je account.*/                        DISCARD
SUBJECTSPAM2296
/^Subject: Mailbox Size Warning.*/                      DISCARD
SUBJECTSPAM2297
/^Subject:.*Sunrise ritual.*/                   DISCARD SUBJECTSPAM2298
/^Subject:.*pending messages on hold.*/                 DISCARD
SUBJECTSPAM2299

I am going to ask an additional question, is the syntax of pcre similar to
regexp? because I will have to modify many rules.

Regards,

On Fri, Oct 1, 2021 at 1:52 PM Wietse Venema <wie...@porcupine.org> wrote:

> SysAdmin EM:
> > ## Chequeo de header
> > header_checks = regexp:/etc/postfix/header_checks
> >
> > ## Chequeos de body
> > body_checks = regexp:/etc/postfix/body_checks
>
> These can use lots of CPU for example with patterns that require
> backtracking. (google for "regexp cpu").
>
> Note that regexp: is less efficient than pcre:. The reason
> for having regexp support in Postfix is that every system library
> must support that, while pcre support is an addon.
>
>         Wietse
>

Reply via email to