On 1/27/2021 8:02 AM, combro2k combro2k wrote:
Hi there,

I've been looking for some days for a solution I need to create for a customer. What we want to achieve is throttling the delivery of mails in the queue. Right now we are using 'default_destination_rate_delay = 1s' which allows us to send approx. 3600 to each destination maximum in 1 hour timeframe. But we want to be more specific like 5000 mails globally,or 16000 globally, whatever we want to do. I've looked into PolicyD to achieve this, but I am stuck at the implementation of it at the queue system of Postfix; Right now I can only see it work with the smtpd_recipient_restrictions and smtpd_end_of_data_restrictions configuration option but not with the queue service.
Am I missing something or I am overthinking it?

Kind regards,
Martijn


The rate delay increments in full seconds, so that's the granularity available.

If you need some setting between "full rate" and "one second delay" you might have better luck with the traffic shaping features on your firewall. You would need to estimate average message size, then limit the bandwidth to the desired number of messages.

I suppose you could create a monster with the main postfix feeding several postfix relays, each set with their own rate delay; but that seems overly complex.



  -- Noel Jones

Reply via email to