|Main Archive Page > Month Archives > postfix-users archives|
On Fri, 2010-04-09 at 15:03 +0400, Vladimir Vassiliev wrote:
> Hi postfixers,
> thanks to http://www.postfix.org/QSHAPE_README.html I learned how to
> limit rate of sending messages which arrives via smtpd.
> Now I tries to do the same with locally originating (via sendmail)
> messages. It seems usual recipes doesn't work.
> What are the best practices to do this? Several postfix instances or
> something else?
Usually applications that submit mail on commandline are not designed to
handle ratelimits and queue messages for throttled delivery. In fact
IMHO you should *not* try to build the intelligence of queue-ing and
trying later when postfix already does that so elegantly.
It will be best to run two instances on postfix, the first instance
picks up all the messages from the apps and send it at whatever rates
you find reasonable to the second "delivery" instance of postfix.
You could use different rates for different senders too based on the