> “replace Amavis with something faster”
>  
> Any suggestions ?

Add the following to amavisd.conf and restart:

$log_level = 2;
$log_templ = $log_verbose_templ;

That way amavisd should log info about timing and rules
which you can use to calculate how long it takes to
process your average email and how many emails per
second get through. Multiply that with $max_servers from
amavisd.conf for max throughput. Also keep in mind that
postfix needs $max_server connections to amavisd and
every amavisd process needs quite a bit of ram.

Small mails and mails with cached checksums usually
are sufficiently performant but it's not uncommon
processing takes several seconds.

A faster but more complex solution is rspamd (rspamd.com).
It's non-blocking/async and orders of magnitude faster.

Best regards
Gerald

Reply via email to