"Rick Updegrove" <[EMAIL PROTECTED]> writes:
> "Boris Krivulin wrote"
> > Hi,
> >
> > I would like to run qmail behind NAT. The local machine is called
> 'galois',
> > with ip number 192.168.1.6. The router is locally called 'euler', and
> > globally is accessible by 'hypervolume.com'.
>
> I have an extremely similar setup.
>
> My router is called NS1.DOMAIN.COM because my primary nameserver is behind
> it.
> The mail server is also behind it on 192.168.0.x and has the name
> MAIL.DOMAIN.COM
> The MX record is for MAIL.DOMAIN.COM is the same IP as NS1.DOMAIN.COM in my
> zone files.
Our setup is similar; we ran into trouble, though, with MX records
that point to us which aren't in control/locals. Because qmail didn't
realize that the MX record was pointing to itself (since it though its
address was 10.x.x.x, and to the outside world it was 63.x.x.x), it
would connect back to its outside address from its inside address, and
so the message would loop. We had to dink with moreipme.c to solve
this.
You may want to look out for this.
>
> > I have set up port forwarding (port 25) from euler to galois. I have ^not^
> > declared an MX -- do I need it if I have only one real IP address ?
>
> I am no expert but I just looked and you have no MX record set.
> I saw someone else say all you need was an A record but I don't see how mail
> can arrive at your server without an MX record.
> I guess I will ask that question on the DNS list if nobody answers. (or look
> up what an A record is heh )
If no MX record exists, mail servers will try to connect to the A
record. But it's still considered good practice to set up an MX
record, so that it's clear what your intentions are, and so that other
mailservers don't have to first search for the MX record, see that
fail, then search again for the A record.
------ScottG.