Add a DNS record for sub.domain.com pointing to mail.domain.com.
sub.domain.com IN MX 10 mail.domain.com.
Add sub.domain.com to rcpthosts on mail.domain.com.
Add the following to smtproutes on mail.domain.com.
sub.domain.com:[10.2.11.12]
Things should now work as you intend from both inside and outside the
firewall. :)
You have to add the MX record for sub.domain.com into the DNS. There are
no other options if you want people to be able to route the mail
correctly. (Wildcard MX might work, I've never used them.)
On Thu, 10 Jun 1999, Albert Hopkins wrote:
>
> We have a qmail server sitting on a dmz behind a firewall. We wish this
> to be the main smtp server and have all incoming mail sent to it. So say
> we are domain.com, then our MX record for domain.com points to
> mail.domain.com. This works fine.
>
> Recently one of our divisions decided it wanted to use it's own (exchange)
> server. They want to be able to receive mail for <user>@sub.domain.com.
> This machine (sub.domain.com) is behind the firewall. I would like for
> our main mail server, mail.domain.com to recieve all messages for
> *.domain.com and relay it to wherever it needs to go. I believe the
> terminology is mail hub.
>
> Anyway, the smtproutes file on mail.domain.com reads:
>
> sub.domain.com:[10.2.11.12]
>
> Sending email to [EMAIL PROTECTED] from anywhere internally works fine.
> It gets to mail.domain.com and is then routed to sub. However, when
> sending email to [EMAIL PROTECTED] from the outside, messages bounce
> back with the error "sub.domain.com: host not found" or similiar. My
> understanding about email routing is that the MTA is supposed to look up
> the MX record for domain.com and send the message there.
>
> Or is it that I need to have an MX record for sub.domain.com? Either way
> I sub.domain.com does not resolve to anything currently.
>
> I guess my question is if I need to do something to the DNS server or is
> there a way to avoid this?
>
>
>
---------------------------------
Timothy L. Mayo mailto:[EMAIL PROTECTED]
Senior Systems Administrator
localconnect(sm)
http://www.localconnect.net/
The National Business Network Inc. http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA 15146
(412) 810-8888 Phone
(412) 810-8886 Fax