Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: p-jones on April 30, 2009, 05:08:50 AM

Title: [Solved] Email problem - Forwarding to External Server
Post by: p-jones 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
Title: Re: Email problem
Post by: cactus on April 30, 2009, 09:25:19 AM
Already tried removing the virtual domain(s)?
Title: Re: Email problem
Post by: p-jones 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 ?
Title: Re: Email problem
Post by: cactus 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
Title: Re: Email problem
Post by: p-jones 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.
Title: Re: Email problem
Post by: p-jones 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
Title: Re: Email problem
Post by: cactus 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
Title: Re: Email problem
Post by: janet 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
Title: Re: Email problem
Post by: p-jones on April 30, 2009, 10:38:32 AM
Thanks Mary. Thats the hole I was trying to fill and that sorted my problem.
Title: Re: Email problem
Post by: mmccarn 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
Title: Re: Email problem [SOLVED]
Post by: CharlieBrady 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.