Peter, Actually it would be fine if I could set address for qmail-send, as you mentioned...where can I get that patch? Here is basically my setup, using private IP addresses just as an example:
192.168.0.1 mybox.test.com (physical interface, eth0) 192.168.0.2 ns1.test.com (virtual interface, eth0:1) 192.168.0.3 mail.test.com (virtual interface, eth0:2) 192.168.0.4 www.test.com (virtual interface, eth0:3) qmail is NOT setup as a relay host. NONE of the people using my host are relaying through me. However, when a mail is sent from the box itself, whether spawned from the website, or a user using the webmail interface, the mail is sent out of eth0. I am seeing bounces from other mail daemons saying (192.168.01 != mail.test.com). Apparently there are many mail servers setup in paranoid mode, which will not accept mail from a domain that does not reverse-lookup properly. So...how do I fix this, other than the undesireable fix of making the main IP of my box mail.text.com? Thanks for the suggestions. -Charles ----- Original Message ----- From: "Peter Maag" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 21, 2003 9:12 AM Subject: RE: [toaster] Force Qmail to use virtual IP for outgoing? > 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? > >
