Charles,
You need to install this patch:
http://www.digitaldaemon.com/FreeBSD/qmail/index.html
It will automatically do a DNS lookup of the domain the user is sending
mail from and will use the IP address associated with that domain. For
instance:
If: [EMAIL PROTECTED] is sending a message through your QMail
install, QMail-Send will lookup test.com and will try and send the
message through whichever IP address is associated with that domain.
There are some patches that just let you set the external IP for
QMail-Send, but it seems you would like it based on the actual domain
sending mail. Hope this helps.
Peter
-----Original Message-----
From: Charles Jones [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 21, 2003 5:07 AM
To: [EMAIL PROTECTED]
Subject: [toaster] Force Qmail to use virtual IP for outgoing?
My host is configured so that eth0:1 is mail.test.com. But when Qmail
sends mail its sending it out of eth0, and some mail servers are
rejecting mail because the IP doesnt match the hostname. Is there any
ways around this?