----- Mensaje original ----- > De: "Noel Jones" <njo...@megan.vbhcs.org> > Para: postfix-users@postfix.org > Enviados: Jueves, 14 de Junio 2012 17:52:14 > Asunto: Re: How to handle local mail when throttling?
> On 6/14/2012 10:12 AM, Adrian Gibanel wrote: > > > > Thank you Noel but there's a little problem on your solution I > > think. I mean. What I want is: > > > > Throttle emails: > > * Sending to any domain: Wait 15 seconds between sending an email > > and another email > Why in the world would you do that? It's customary to only > implement artificial delays for those destinations that require it. Because this is a bulk mail send server. The main reason is not being detected as an spammer. I mean. According to some bulk mail guidelines from google and others it's better to delay sendings. > > * Sending to gmail : Wait 15 seconds between sending an email and > > another email > > * Sending to yahoo: Wait 15 seconds... > > * Sending to local domain: Don't throttle at all. > > > > There's a "Sending to gmail" and a "Sending to yahoo" just in case > > their send delay is changed independently of the others as you > > might imagine. > > > > Setting the session limit to 1 and mx address limit to 1 is to > > ensure that given a domain only a one email each 15 seconds is > > sent to it. I don't know if there's a better way to achieve that. > No, those settings tell postfix to try one MX only. If the single > attempt fails, defer the mail rather than try another MX. This can > *severely* delay mail to destinations that tend to have > non-functional MXs, such as hotmail and yahoo. This delay will be > further aggravated by your short smtp_helo_timeout (normally a short > helo timeout for "freemail" destinations is good, since it lets you > skip slow/dead servers quickly and move to the next one. but you > create a bigger problem when you disable the next one) I don't want to try one MX only. I will fix that. Thank you indeed. I think I misunderstood these options when I first read about them. > > > > And using default_destination_rate_delay is what I think I need to > > setup the "Going to any domain" rule. > > > > So... How to throttle to 0 seconds my own domain so that it does > > not affect the "Going to any domain" rule? And, of course, > > avoiding that error about "warning: do not list domain in BOTH > > virtual_mailbox_domains and relay_domains". > > > > Or maybe an alternative way to implement this? > If you insist on a default delay, you can create a "zerodelay" > transport for your local domain that resets the delay to zero. Does it mean editing: /etc/postfix/transport file to add: my.domain.com relayratelimit: line and then running: postmap transport in /etc/postfix directory? I just ask it because that's what it gives me the: "warning: do not list domain in BOTH > > virtual_mailbox_domains and relay_domains" message. Thank you again! -- 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 .