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),
--
pgpl4FMmJxf6f.pgp
Description: PGP signature
|