Patch qmail ( see [login to view URL] and [login to view URL] ) to use an IP address and HELO host for outbound smtp connections that is not the default one, i.e. not the first IP address of the interface and the domain name stored in control/me or control/helohost.
This work has already been done by these folks at: [login to view URL] but I don't like their exact implementation (they do a dns lookup on the MAIL FROM: senders domain and use that IP address/HELO host).
What I'd rather see is parsing the outgoing message's headers for a special X-Header that would instruct what IP address/HELO host qmail-remote should use (which would be contained in a text file called "vmta"). I'll give you an example (please note that SL won't accepts the "AT" sign so I used (A) instead and won't accept the html brackets so i used "[" instead):
Here' an example email (notice the "x-vmta:" header):
------------------Start-------------------
Message-ID: [20050108125807.762EE8817AD32BF6(A)[login to view URL]]
From: "Alanna Abdollahiq" [alanna.a(A)[login to view URL]]
To: recipient(A)[login to view URL]
Subject: Test Message
Reply-To: [alanna.a(A)[login to view URL]]
Date: 08 Jan 2005 12:58:09 -0500
MIME-Version: 1.0
x-vmta: vmta1
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello World....have a nice day.
------------------End--------------------
Here's the text file called /var/qmail/control/vmta :
------------------Start-------------------
[virtual-mta vmta1]
host-name [login to view URL]
smtp-source-ip [login to view URL]
[/virtual-mta]
------------------End--------------------
So, qmail remote would see that this email had the special header, it would look up in the text file to find what IP address & HELO host to use for the outbound connection. You can pretty much just patch the work done by [login to view URL] (its [ 20 line patch).
Please only submit to this project if you have qmail experience, or are a dam good enough C programmer to not make it matter.
Thank you,
John