On 25 Feb 2015 at 19:56, Viktor Dukhovni wrote:
> On Wed, Feb 25, 2015 at 02:46:29PM -0500, System Support wrote: > > > > No, there should be no such delay because this is a single delivery > > > of a single message with two recipients. > > > > > > Note the identical smtp[7114] pids, with identical queue-id, delays > > > down to .01s and the same remote server queue id. > > > > > > You're not reading your logs correctly. Note also that your previous > > > 50/s is likely due to the default recipient limit, and we've just > > > been chasing ghosts. > > > > OK. Is there any way to rate limit the traffic to the relay for this use > > case? > > I tried reducing the default_destination_recipient_limit to 1 along with > > the relay and smtp versions. > > You seem to not be paying attention. The deliveries *are* rate- > limited. You're reporting a *single* delivery. Naturally it is > not possible to rate limit just one delivery, rate limits apply > to multiple things that happen one after the other... Yes, I understand that this is not the correct way to limit the traffic to the relay host, but my question is how can I do that - rate limit traffic to a relay host that is generated by a Postfix address list. Having to write an application/script to send the same message a 1,000 times, once to each user, instead of using an address list, seems silly. The reason for working on this is because the relay host is complaining about excessive traffic (>5msg/s) and freezing the connection after the first 50 deliveries, so apparently they do not consider it a single message: <snip after 50 successful deliveries> Feb 23 22:00:01 <myhost> postfix/smtp[3205]: 96CF9139167: host email-smtp.<relayhost> said: 454 Throttling failure: Maximum sending rate exceeded. (in reply to end of DATA command) Feb 23 22:00:04 <myhost> postfix/smtp[3205]: 96CF9139167: to=<use...@aol.com>, relay=email-smtp.<relayhost>, delay=12, delays=0.47/6/4.5/1.4, dsn=4.0.0, status=deferred (host email-smtp.<relayhost> said: 454 Throttling failure: Maximum sending rate exceeded. (in reply to end of DATA command)) <snip a 1,000 or so similar errors follow> And, I have spent quite a bit of time with the FM and other forums with Postfix configuration suggestions. Having the error occur after the first 50 e-mails, and reading this: > No, there should be no such delay because this is a single delivery of a > single message with two recipients. and this: > Note also that your previous > 50/s is likely due to the default recipient > limit, and we've just been chasing ghosts. and this in the manual with a default of 50: default_destination_recipient_limit (default: 50) The default maximal number of recipients per message delivery. I think it was reasonable to try reducing the default_destination_recipient_limit from 50. I did try several values between 50 and 1. ...don support (at) microtechniques.com