On Wed, Jan 31, 2024 at 12:13:51PM -0500, Wietse Venema via Postfix-users wrote:

> - The MTA then needs to keep the Milter connection open while watting
> for new work. Once there is work, the MTA sends SMFIC_CONNECT and
> so on.
> 
> - This sounds like the MTA needs a Milter connection cache that
> keeps a connection open for up to $max_idle seconds, because it
> seems to make no sense to cache such state inside individual smtpd
> (or cleanup) processes.

I am not convinced that a shared cache makes sense.  All mail passing
through a given process is subjected to milter inspection, and a milter
session lasts for the entire mail transaction, which on my system
averages to O(100ms), vs.  typical table lookup latency of O(1ms).  I'd
be inclined to cache milter connections in-process.

-- 
    Viktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to