Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: jim7jim on October 07, 2013, 07:13:47 PM

Title: Setup sub domain with email to external servers
Post by: jim7jim on October 07, 2013, 07:13:47 PM
Hello, I'm trying to setup a subdomain and have email traffic to that subdomain routed to external email servers. DNS, MX records are already setup. Can I just add a subdomain in the server manager and choose the Domain DNS servers to be 'Internet DNS servers'?

This won't affect my main domain email, right? In other words:

domain.com --> SME local email server
test.domain.com --> external email server

TIA
Title: Re: Setup sub domain with email to external servers
Post by: janet on October 08, 2013, 03:25:49 AM
jim7jim

If external DNS, MX & mail server are already set up & functional (for mail to the subdomain), then why do you need or want to add the subdomain locally to your sme server ?
Title: Re: Setup sub domain with email to external servers
Post by: jim7jim on October 08, 2013, 02:17:37 PM
The SME server won't let email go out to the subdomain, so I suspected it was some sort of configuration issue with SME where it considers the subdomain part of the local domain. If I send email to my subdomain (test.domain.com) from an external email account, it works fine. If I send email to my subdomain from my internal account using SME server, I get an error:

Sorry, I couldn't find any host named test.domain.com. (#5.1.2)

So I thought adding the subdomain to SME might allow the mail to be sent?
Title: Re: Setup sub domain with email to external servers
Post by: jim7jim on October 30, 2013, 09:11:39 PM
I have some additional information that I thought might help someone provide me with a solution.

If I execute: dig test.domain.com mx

It returns my local IP address and hostname of my SME server in the mx record. But this is wrong, as I have setup a MX record for test.domain.com to go to an external email server. If I resolve the mx record from any other box that uses my Windows DNS server it resolves correctly to the external email server. Is there a way to get SME to not use itself to resolve that MX record and go to external DNS servers?

I tried creating a virtual domain (test.domain.com) in SME and telling it to use external DNS servers but it didn't work.
Title: Re: Setup sub domain with email to external servers
Post by: jim7jim on October 30, 2013, 10:22:38 PM
If I set my domain to use my Corporate DNS servers, it works. I had switched that setting previously because it seemed to bog down the CPU on the SME box, but I'll try it again for awhile and see what happens.

Thanks!
Title: Re: Setup sub domain with email to external servers
Post by: _alex on October 30, 2013, 11:00:48 PM
Here You go:
http://wiki.contribs.org/DB_Variables_Configuration#Miscellaneous_Other_DB_Variables (http://wiki.contribs.org/DB_Variables_Configuration#Miscellaneous_Other_DB_Variables)
Code: [Select]
db domains setprop test.domain.com MailServer 192.168.x.y (or fqdn)