Koozali.org: home of the SME Server

website on SME server, email elsewhere....

Offline ltwally

  • ****
  • 108
  • +0/-0
website on SME server, email elsewhere....
« on: May 21, 2008, 11:34:44 PM »
We host our primary domain (both www and email) on our local SME server.  The SME server is our local mail server.  We'll call this first domain  ABC.com.

We have a secondary domain.  We use the SME server to host its website, but have email hosted off-site.  We'll call this second domain DEF.com

The DNS is correctly set up, as proven by sending mail from yahoo or gmail to DEF.com.  It arrives at the off-site host.  This is how things should work.

However, whenever we send mail from the SME server (using email 'xxx@ABC.com') to DEF.com, it always ends up sending the email to the SME server instead of the off-site server.

I've tried the following:  1)  changing the IP for mail.DEF.com to the IP for our off-site mailserver.  2)  Chaning that domain to resolve with "Internet DNS server" and with "Corporate DNS server." 

None of that worked.  What do I have to do to get SME to understand that it is ONLY hosting www for DEF.com, and is not supposed to be doing email for that domain?

Thanks,
-ltwally
« Last Edit: May 21, 2008, 11:36:50 PM by ltwally »

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: website on SME server, email elsewhere....
« Reply #1 on: May 22, 2008, 02:39:17 PM »
It sounds as though you have defined 'DEF.com' as a domain on your SME server -- so of course it thinks that all email it gets addressed to 'DEF.com' should be delivered locally.

There are a few ways around this:

1) Delete the domain 'DEF.com' from your SME server and use custom templates to get your SME web server to behave correctly when addressed as "www.DEF.com"

2) Define an "internal" mail server for DEF.com as described here: http://wiki.contribs.org/Email#Deliver_email_for_one_domain_to_an_internal_mail_server, but specify the IP address of the external mail server.  You may additionally want to configure the off-site server to do no spam filtering on email arriving from your SME server.  (Note: I tested this "internal mail server is really an off-site server" several years ago - it worked then, but YMMV)


Offline ltwally

  • ****
  • 108
  • +0/-0
Re: website on SME server, email elsewhere....
« Reply #2 on: May 23, 2008, 04:20:10 AM »
I'm not sure about the template.  The other method didn't work, though.  Ah well... I'll just have to remove that domain from the SME server.