Viktor Dukhovni:
> On Wed, Dec 14, 2022 at 06:07:41AM +0000, Sean Hennessey wrote:
> > Viktor and anyone else,
> > 
> > I'd like your opinion on something I've come up with that seems to
> > work in my test box. What I've done is set things up so that instead
> > of % thresholds I'm using a count of sent email. I fully expect the
> > counting to not be 100% accurate, off by a couple of tens or even
> > hundreds isn't a big deal. What I did was create the following tables:
> >
> > [elided]
> >
> > I'm using this for the query:
> >
> > query = update send_counts ...
> 
> How exactly do you imagine integrating such a query into Postfix?
> 
> [ Hint using this as a transport table may not do what you think
>   it does.  Transport lookups happen per-recipient and in both
>   smtpd(8) and qmgr(8) where lookups happen each time a message
>   enters the active queue (and before actual delivery). ]
> 
> And is sending a small batch of messages and then stopping really a more
> effective approach to avoid problems due to lack of "reputation" with
> new new IPs?

I suppose that the idea is to rate-limit traffic based on IP
reputation. Just using randmap to send 1% of a million could still
be too much if the deliveries happen in a short time.

This would take a transport map whose response depends on how much
mail has been delivered (over an interval of time). The number of
queries is an estimator that may be off by a factor but that would
be OK if that factor is constant.

        Wietse

Reply via email to