Koozali.org: home of the SME Server

DISABLE EMAIL FOR ONE DOMAIN

Offline cirkit

  • ****
  • 73
  • +0/-0
DISABLE EMAIL FOR ONE DOMAIN
« on: May 04, 2011, 08:51:07 PM »
I have one sme server successfully working since 3 years with 4 domains hosted on it. I have hosted the 4th domain today. I do not want mail server for the 4th domain, hence in the DNS RECORDS of the 4th domain I have pointed the MX record of this domain to another server located at a different location (not an sme server), When ever I try to send an email from any of the other 3 domains to the 4th domain , the mail gets resolved internally and does not go out of the sme server to the other mail server (for the 4th domain), How do I achieve this

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: DISABLE EMAIL FOR ONE DOMAIN
« Reply #1 on: May 04, 2011, 10:37:49 PM »
I have one sme server successfully working since 3 years with 4 domains hosted on it. I have hosted the 4th domain today. I do not want mail server for the 4th domain, hence in the DNS RECORDS of the 4th domain I have pointed the MX record of this domain to another server located at a different location (not an sme server), When ever I try to send an email from any of the other 3 domains to the 4th domain , the mail gets resolved internally and does not go out of the sme server to the other mail server (for the 4th domain), How do I achieve this
IIRC you can set the nameserver for every domain separately, for the one you do not want to use SME Server as a mail server you should set the nameserver to Internet in the Domains panel.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cirkit

  • ****
  • 73
  • +0/-0
Re: DISABLE EMAIL FOR ONE DOMAIN
« Reply #2 on: May 05, 2011, 09:49:48 AM »
In the Domains Panel I have enabled Internet DNS servers for all 4 domains, I have one catch all mail id which catches mails for all unknown receipients. Any mails from domain 1,2 & 3 to the 4th domain are caught by this catch all id, i.e the Mails are not sent out of the box at all...The logs show "local delivery" How can I force mails sent by domain 1,2 & 3 not to be resolved locally but land at the mail server defined by the MX records of that domain. I have tried sending mails from gmail, hotmail, yahoo to the 4th domain and they correctly land at the mail server located at a different location & IP as mentioned in the MX record. Pl help

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: DISABLE EMAIL FOR ONE DOMAIN
« Reply #3 on: May 05, 2011, 01:20:10 PM »
Why is the 4th domain defined on your SME server at all?

To prevent your local SME from "swallowing" email for the 4th domain, you need to get all mention of that domain removed from /var/service/qpsmtpd/config/goodrcptto, or you have to convince your SME to use the external mail server for that domain.

The first can be achieved by removing the 4th domain from the "domains" panel in server-manager - leaving you to manually adjust things to duplicate whatever functionality you are actually using for the 4th domain.

The second *might* be achievable by configuring an "internal" mail server for the 4th domain, as described in the first entry in the "Miscellaneious Other DB Variables" table found at http://wiki.contribs.org/DB_Variables_Configuration#Miscellaneous_Other_DB_Variables

I successfully configured an external mailserver long ago on a SME 6.01 server; I've never needed it since upgrading to 7.x, so I don't know for sure that it still works.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: DISABLE EMAIL FOR ONE DOMAIN
« Reply #4 on: May 05, 2011, 10:36:20 PM »
Why is the 4th domain defined on your SME server at all?

Perhaps OP should only configure www.4th.domain in the domains panel of SME server.

Offline cirkit

  • ****
  • 73
  • +0/-0
Re: DISABLE EMAIL FOR ONE DOMAIN
« Reply #5 on: May 06, 2011, 05:55:33 AM »
I want to use SME Webserver for the 4th domain.

Offline johnp

  • *****
  • 312
  • +0/-0
Re: DISABLE EMAIL FOR ONE DOMAIN
« Reply #6 on: May 06, 2011, 06:43:18 AM »
Quote
Perhaps OP should only configure www.4th.domain in the domains panel of SME server.

Might want to reread this suggestion.


Offline cirkit

  • ****
  • 73
  • +0/-0
Re: DISABLE EMAIL FOR ONE DOMAIN (SOLVED)
« Reply #8 on: May 09, 2011, 06:53:51 AM »
Thank you axessit and everybody the db variables command worked. Now the mails for the 4th domain are not locally deliverd and they are correctly being delivered to the external mail server..