Re: [exim] Outbound mail rate limiting

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Lena
Datum:  
To: exim-users
Betreff: Re: [exim] Outbound mail rate limiting
> From: Uros Meglic

> Exim is set up as an
> smtp relay - it excepts e-mail form exchange server, rewrites the
> header - and forwards it to the ISP SMTP.
>
> The ISP recently configured rate limiting on its side, so now I need a
> way to limit outgoing SMTP messages so I can match the ISP
> requirements.


Exim cannot ratelimit outgoing mail, but I suppose that Exchange
can handle 4xx in reply to RCPT. Then you can ratelimit
mail when it is incoming to your Exim (from your Exchange).

> I googled and I think I need some acl set up, but I cant
> figure where or how should I define it. I only found some solutions
> for per user or per domain limits, but I would like to limit all
> outgoing smtp mail, let's say 8 mails per minute and what is over that
> limit gets put in the waiting queue.


If your Exim should accept mail only from your Exchange which
is specified in +relay_from_hosts then in acl_check_rcpt:

  deny  message = Relaying denied
    !hosts = +relay_from_hosts


defer ratelimit = 8 / 1m / per_mail

accept