Re: [exim] Fwd: Rate-limit queue-processing per domain

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Marius Stan
Date:  
À: exim-users
Sujet: Re: [exim] Fwd: Rate-limit queue-processing per domain

On 10/19/2017 03:40 PM, Jan Ingvoldstad via Exim-users wrote:
> On Thu, Oct 19, 2017 at 2:13 PM, Charlie Elgholm <charlie@???> wrote:
>
>> I can not change the way Microsoft, Yahoo, Gmail och others do
>> business - but I might tweak Exim to play better with their - somewhat
>> bad - rules.
> I've given up on that, especially considering that Microsoft's and
> Google's business is now also pretty dominant in hosted e-mail
> services, meaning that a bazillion domainnames have MXes at
> somethingsomething.google or myname.outlook.com.
>
> Jeremy Harris suggested an option for how to treat these 4xx messages,
> but what we mail admins actually need, is probably something along
> these two lines:
>
> 1) A way of dealing with MXes rather than recipient domains


For 1) I tried something like this a couple of years ago:


THROTTLED_SERVERS=relay1.romtelecom.net : relay2.romtelecom.net :
mx01.whmpanels.com : mx02.whmpanels.com : mx03.whmpanels.com

router:

throttled_out2:
  driver = dnslookup
  domains = !+local_domains
  condition = ${if forany{${lookup dnsdb{>: mxh=$domain}}} \
                         {inlisti{$item}{THROTTLED_SERVERS}} \
#                  {yes}{no} \
                }
  transport = dkim_smtp_throttled
  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
  no_more

transport:

dkim_smtp_throttled:
  driver = smtp
  max_rcpt =9
  connection_max_messages = 5