Koozali.org: home of the SME Server

[Solved] Email problem - Forwarding to External Server

Offline p-jones

  • *
  • 594
  • +0/-0
[Solved] Email problem - Forwarding to External Server
« on: April 30, 2009, 05:08:50 AM »
I have screwed up here and cannot see how to get out of it.

I have been using the documentation in the email Wiki to forward email to different local exchange servers


Quote
First, create the necessary virtual domains using server-manager::Configuration::Domains::Add Domain.

Then, (assuming your domain is called test.com and the actual mail server is at a.b.c.d issue the following commands:


I repeated this three time for three domains and all was good. Now I want to remove completely one of the three domains and hand processing back to the SME Server. I have tried substituting the SME IP address and also the localhost IP without success.

I am sure this is easy but I cannot find the answer. Have read the fine print a few time but somewhere I am missing something.

Thanks in advance.
Peter
« Last Edit: April 30, 2009, 11:45:39 PM by wellsi »
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Email problem
« Reply #1 on: April 30, 2009, 09:25:19 AM »
Already tried removing the virtual domain(s)?
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 p-jones

  • *
  • 594
  • +0/-0
Re: Email problem
« Reply #2 on: April 30, 2009, 09:36:28 AM »
Its not the virtual domain I want to modify...it the main domain. internal-domain.local.

Like I said, I screwed up. !

Maybe I need to explain a bit more, this is a front end for two public domains
domain-a.com and domain-b.com which are virtual on the server and it lives in internal-domain.local. just renaming the main domain poses a few issues with the rest of the infratructure.

If I rename the domain through the server configuration manager then rename it back, will it revert to these (wrong) settings or will it wipe the slate clean ?
« Last Edit: April 30, 2009, 09:42:38 AM by p-jones »
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Email problem
« Reply #3 on: April 30, 2009, 09:38:58 AM »
Its not the virtual domain I want to modify...it the main domain. internaldomain.local.

Like I said, I screwed up. !
Perhaps we can see where you screwed up if you post the output of:
Code: [Select]
db domains show internaldomain.local
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 p-jones

  • *
  • 594
  • +0/-0
Re: Email problem
« Reply #4 on: April 30, 2009, 09:45:23 AM »
I know where I screwed up.

I issued the same command for the main domain as I did for the virtual domains to point it at another server, then realised my error.
...

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Email problem
« Reply #5 on: April 30, 2009, 09:48:46 AM »
db domains show localdomain.local
papakura-realty.local=domain
    Content=Primary
    Description=Primary domain
    MailServer=203.x.33.x  (offsite smtp server )
    Nameservers=localhost
    Removable=no
    SystemPrimaryDomain=yes
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Email problem
« Reply #6 on: April 30, 2009, 09:51:34 AM »
db domains show localdomain.local
papakura-realty.local=domain
    Content=Primary
    Description=Primary domain
    MailServer=203.x.33.x  (offsite smtp server )
    Nameservers=localhost
    Removable=no
    SystemPrimaryDomain=yes
Other than the MailServer key I see no strange things here. Perhaps you can elaborate on the symptoms you are seeing indicating a problem as you have not done so so far. It also might help if you show us what commands you have executed exactly to your domain. You can investigate what you did using this perhaps:
Code: [Select]
history | grep localdomain.local
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 janet

  • *****
  • 4,812
  • +0/-0
Re: Email problem
« Reply #7 on: April 30, 2009, 10:30:19 AM »
p-jones

The syntax for db commands is shown by typing
db

You should then be able deduce the command to use to remove the forwarding for a domain ie

db domains delprop localdomain.local MailServer
signal-event email-update


Quote
db domains show localdomain.local
papakura-realty.local=domain
    Content=Primary
    Description=Primary domain
    MailServer=203.x.33.x  (offsite smtp server )
    Nameservers=localhost
    Removable=no
    SystemPrimaryDomain=yes
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Email problem
« Reply #8 on: April 30, 2009, 10:38:32 AM »
Thanks Mary. Thats the hole I was trying to fill and that sorted my problem.
...

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Email problem
« Reply #9 on: April 30, 2009, 02:01:30 PM »
I've updated the wiki to mention how to clear out the internal mail server for one domain: http://wiki.contribs.org/Email#Internal_Mail_Servers

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Email problem [SOLVED]
« Reply #10 on: April 30, 2009, 03:30:33 PM »
Please edit the Subject of the thread when your problem is solved.

Please also try a little harder to use a specific descriptive Subject - "email problem" is very generic.