Ok. I think I've managed to do it with this IDEA 1. 

Basically what I have done is: 

1) Remove: default_destination_rate_delay = 15s from main.cf 
2) Add: slowratelimit_destination_rate_relay = 15s to main.cf 
3) Replace: transport_maps = regexp:/etc/postfix/transport_regexp in main.cf 
4) Remove: relayratelimit_destination_rate_relay line because it's no longer 
used from main.cf 
5) Create transport_regexp file like: 

/@hotmail.com$/ hotmailratelimit: 
/@yahoo.com$/ yahooratelimit: 
!/@my.domain.com$/ slowratelimit: 

6) Run: postmap transport_regexp 
7) Replace relayratelimit in master.cf so that it says slowratelimit 
8) Finally apply changes with: 
/etc/init.d/postfix reload 

BONUS TIP: The factoid postmapq is the best one. 
http://workaround.org/f=postfix . I've been able to test the regexp stuff with: 

sudo postmap -q he...@my.domain.com regexp:/etc/postfix/transport_regexp 

Thank you again for your support, help and patience. 

----- Mensaje original -----

> De: "Adrian Gibanel" <adrian.giba...@btactic.com>
> Para: "postfix users" <postfix-users@postfix.org>
> Enviados: Miércoles, 20 de Junio 2012 11:06:35
> Asunto: Re: How to handle local mail when throttling?

> IDEA 1
> ---------

> - Remove the

> default_destination_rate_delay = 15s
> line.

> - Instead of adding:

> my.domain.com relayratelimit:

> to the /etc/postfix/transport file adding:

> REGEXP slowratelimit:

> where REGEXP is a regular expression that says: "Everything except
> whatever ends with @my.domain.com"
-- 

Adrián Gibanel 
I.T. Manager 

+34 675 683 301 
www.btactic.com 

Ens podeu seguir a/Nos podeis seguir en: 

i 

Abans d´imprimir aquest missatge, pensa en el medi ambient. El medi ambient és 
cosa de tothom. / Antes de imprimir el mensaje piensa en el medio ambiente. El 
medio ambiente es cosa de todos. 

AVIS: 
El contingut d'aquest missatge i els seus annexos és confidencial. Si no en sou 
el destinatari, us fem saber que està prohibit utilitzar-lo, divulgar-lo i/o 
copiar-lo sense tenir l'autorització corresponent. Si heu rebut aquest missatge 
per error, us agrairem que ho feu saber immediatament al remitent i que 
procediu a destruir el missatge . 

AVISO: 
El contenido de este mensaje y de sus anexos es confidencial. Si no es el 
destinatario, les hacemos saber que está prohibido utilizarlo, divulgarlo y/o 
copiarlo sin tener la autorización correspondiente. Si han recibido este 
mensaje por error, les agradeceríamos que lo hagan saber inmediatamente al 
remitente y que procedan a destruir el mensaje . 

Reply via email to