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

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Lena
Data:  
Para: exim-users
Assunto: 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