Re: [exim] Rate limit Outgoing mail based on recipient domai…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Lena
Date:  
À: exim-users
Sujet: Re: [exim] Rate limit Outgoing mail based on recipient domain
> From: luda posch

> For instance, let's say I want only 5 emails per minute to yahoo.com


Not a reply to your question, but can help with sending to yahooMail
(one connection at a time, max 5 messages per connection):

begin routers
remote_domains_throttled:
  driver = dnslookup
  domains = \N^yahoo\.\N : rocketmail.com : ymail.com : y7mail.com : \
        btinternet.com : btopenworld.com : att.net : sbcglobal.net : rogers.com
  retry_use_local_part
  transport = throttled_smtp


remote_domains:
  driver = dnslookup
  transport = remote_smtp
  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : \
                        10.0.0.0/8 : 172.16.0.0/12 : 192.168.0.0/16
  self = pass
  no_more
...
begin transports
throttled_smtp:
  driver = smtp
  connection_max_messages = 5
  serialize_hosts = *
  retry_use_local_part