Qmail
[Top] [All Lists]

Re: delivering mail to remote mx with multiple ip

To: qmail@list.cr.yp.to
Subject: Re: delivering mail to remote mx with multiple ip
From: Sami Farin <safari-qmail@safari.iki.fi>
Date: Fri, 18 May 2007 12:00:06 +0300
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
In-reply-to: <200705181028.45529.david.ml@euro-web.fr>
Mail-followup-to: qmail@list.cr.yp.to
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <200705181028.45529.david.ml@euro-web.fr>
User-agent: Mutt/1.5.15 (2007-04-06)
On Fri, May 18, 2007 at 10:28:45 +0200, David CHANIAL wrote:
> Hi,

Hello.

> I saw that qmail-remote seems to use cached data for retrieving IPs of the 
> remote host.
> 
> i.e: smtp.wanadoo.fr
> 
> But, i would like qmail-remote to use a new random ip every time he need to 
> make a connection.
> 
> In fact, smtp.wanadoo.fr has at least 10 ips, and i think it is better i make 
> 100 connections to 10 differents ips, instead going to make 100 connections 
> to the same IP.

I guess you have ":smtp.wanadoo.fr" in control/smtproutes.
qmail-remote randomizes the IP addresses in dns_mxip, but
unfortunately not in dns_ip (which is the case for you).

You can take dns_shuffle and other relevant functions
from my patch...  and instead of AES you can use srand/rand.
This requires little amount of C coding skills.
http://qmail.safari.iki.fi/qmail-1.03-safari-latest.diff.bz2

> no ?

At least you have smaller chance of hitting their
resource usage limit, if each system behind
each IP address has their own limits?

> is there a patch ? an idea which can help me ?
> 
> Best regards (and excuse me for my bad english),

-- 

Attachment: pgpl4FMmJxf6f.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>