Re: [exim] rate limit for maximum outgoing emails to mail-re…

Pàgina inicial
Delete this message
Reply to this message
Autor: Jasen Betts
Data:  
A: exim-users
Assumpte: Re: [exim] rate limit for maximum outgoing emails to mail-relay
On 2018-02-27, Jakob Schürz via Exim-users <exim-users@???> 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?


one way is to teergrube yourself:

untested:

1> set serialize hosts to include gmail
2> set "event_action=accept delay=1s" on the transport that contcts gmail.

That'll reduce the rate to below 60 per minute. (maybe to about 20 per minute)

there may be better solutions but this is the easiest.

--
This email has not been checked by half-arsed antivirus software