Thanks, Arrigo
This helped.
When I checked, I found max_servers = 2 and max_requests is not set,


From: Arrigo Triulzi <arr...@alchemistowl.org>
Date: Monday, January 23, 2023 at 12:37
To: Daniel White <daniel.e.wh...@nasa.gov>
Cc: "postfix-users@postfix.org" <postfix-users@postfix.org>
Subject: Re: [EXTERNAL] Mail queue took 3 hours to recover from a flood. 
Suggestions ?

On 23 Jan 2023, at 18:30, White, Daniel E. (GSFC-770.0)[AEGIS] 
<daniel.e.wh...@nasa.gov<mailto:daniel.e.wh...@nasa.gov>> wrote:

“replace Amavis with something faster”
  Any suggestions ?

Start by tuning amavis, see the end of 
https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ijs.si%2Fsoftware%2Famavisd%2FREADME.postfix.html&data=05%7C01%7Cdaniel.e.white%40nasa.gov%7C896cdbbd630d4f64c36108dafd686dc0%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C638100922207573123%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4upo2fuSENCE%2FgO9F2kGROb18POP4WzeP4Sss5DhFdk%3D&reserved=0
 - if you do not have enough copies and they don’t match what you have set in 
master.cf then you are going to suffer badly.

For example have something like this in master.ch

amavisfeed unix    -       -       n        -      10     lmtp
    -o lmtp_data_done_timeout=120
    -o lmtp_send_xforward_command=yes
    -o lmtp_tls_note_starttls_offer=no
    -o disable_dns_lookups=yes
    -o max_use=20

and a matching entry in amavisd.conf

$max_servers = 10;            # num of pre-forked children (2..30 is common), -m
$max_requests = 5;            # num of requests before we reap a child

the $max_requests makes sure that amavisd “freshens” the children often - it 
helps especially if you have lots of DKIM stuff happening.

Arrigo


Reply via email to