On 2018-02-27, Jakob Schürz via Exim-users <exim-users@exim.org> wrote: > Hi! > > We have a application, which creates many emails. Notifications from a > ticketsystem to the subscribed users for each ticket on changes, or > something else. > > We use gmail suite as our email-provider, and gmail has some > send-limitations. So, if many tickets are created as a bulk, many many > emails are created from the app, and the mailserver blocks the sender > for 10 minutes. Most of the created emails go to the error-mail-queue > from the app and must be resent manually. > > There is a workaround on the vendor-site, because the app itself cannot > handle to ratelimit the sent emails. > > The workaround is, to put a local mailqueue in between, which ratelimits > the outgoing message-count. > > I want to realize this with exim4, if there is a possibility to set a > hard limit for a specific smart/relayhost for outgoing emails. The app > can send as much emails as used, and the mailserver queues them all and > send them to gmail-relay-host in packages of 80 mails per minute. Not more! > > How can i handle this with exim4?
my pervious advice was wrong, as Jeremey says it's not simple: it should be event_action=${acl{accept delay=1s}} or better event_action=${if eq{$event_name}{msg:delivery}\ {${acl{accept delay=1s}}}} to give a max rate close to 60 per minute. -- This email has not been checked by half-arsed antivirus software -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/