Koozali.org: home of the SME Server

How To Tell Qmail address of mail server?

Mike Coan

How To Tell Qmail address of mail server?
« on: April 02, 2002, 10:04:13 PM »
I ask the question in the subject line because I have the strange situation that two e-smith servers in the same building can send mail anywhere in the world except to each other.  One e-smith server is 192.168.1.4, and the other is 192.168.3.1.  Both also have public IP addresses which are mapped to the private addresses.  they are the email servers for 2 separate registered domains (mhplace.net and schuylerhall.org if that helps)  These are separate VLANS in the same building.  There is one firewall one router, and one T-1 for the building.

No one at mhplace.net can send email to schuylerhall.org.  it appears that the PIX firewall thinks that someone is doing IP spoofing whenver email is sent from one to the other.  My guess is that qmail looks up the mx record and sends it to the external, public IP.  Since the mail is being sent from an internal, private IP address, the firewall thinks it is a trick and blocks it.  At least that is th explanation I have been given.

Is there some way to tell qmail at mhplace.net that the mail server for schuylerhall.org is 192.168.3.1, and to tell schuylerhall.org that the mail server for mhplace.net is 192.168.1.4.  I tried putting it in /etc/hosts, but that din't seem to help

Mike

Duncan

Re: How To Tell Qmail address of mail server?
« Reply #1 on: April 03, 2002, 05:27:41 PM »
Edit smtproutes under /var/qmail/control to suit your situation. This should force traffic for these two domains to pass thru the router instead of out and back in.

You will need to restart Qmail to take effect.

Regards Duncan

Mike Coan

Re: How To Tell Qmail address of mail server?
« Reply #2 on: April 03, 2002, 05:54:10 PM »
Thank you, Duncan.  Now that you mention it, smtproutes sounds obvious.

Mike


Duncan wrote:
>
> Edit smtproutes under /var/qmail/control to suit your
> situation. This should force traffic for these two domains to
> pass thru the router instead of out and back in.
>
> You will need to restart Qmail to take effect.
>
> Regards Duncan