Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-16-2011, 01:14 AM
Starter Member
 
Posts: 4
Exclamation Problems after domain change

Hi.

I changed domain from example.pl to example.com.pl (according to Zimbra Wiki Zmsetservername) with these steps:

- add new domain to DNS
Code:
$TTL 86400 ; 1 day
@ IN SOA ns1.example.com.pl. root.example.com.pl. (
 2011051502 ; Serial
 86400 ; Refresh 24h
 900 ; Retry 15min
 604800 ; Expire 1 week
 86400 ) ; Minimum 1 day
@       IN      NS      ns1.example.com.pl.
@       IN      NS      ns1.other.org.
@       IN      NS      srvr.example.com.pl.
@       IN      A       83.16.154.37
@       IN      MX  10  srvr.example.com.pl.
@       IN      TXT     "v=spf1 ip4:12.12.12.12 a:srvr.example.com.pl -all"
ns1     604800  IN      A       12.12.12.12
ns2     604800  IN      A       13.13.13.13
wbsrvr          IN      A       13.13.13.13
www             IN      CNAME   wbsrvr
srvr          IN      A       12.12.12.12
mail          IN      CNAME   srvr
- remove old domain from DNS

- edit named.conf

- DNS restart

- go to maintenance mode (zmprov md domain.pl zimbraDomainStatus maintenance)

- edit /etc/hosts
Code:
srvr:/etc/bind# cat /etc/hosts
127.0.0.1       localhost
10.10.10.37     srvr.example.com.pl     srvr
- edit /etc/network/interfaces
Code:
srvr:/etc/bind# cat /etc/network/interfaces
(...)
        dns-nameservers 194.204.159.1 194.204.152.34
        dns-search example.com.pl
- edit /etc/resolv.conf
Code:
srvr:/etc/bind# cat /etc/resolv.conf
search exmaple.com.pl
nameserver 194.204.159.1
nameserver 194.204.152.34
- check if old domain presents in /etc (rgrep example.pl /etc/*)
Code:
srvr:/etc/bind# rgrep example.pl /etc/*
File /etc/aliases.db matches
- reboot machine

- check if old domain presents in zimbra config (zmlocalconfig | grep srvr.example.pl)



Now the situation is that I cannot open website (site not found) and the zmcontrol status shows:
Code:
zimbra@srvr:~$ zmcontrol status
Unable to determine enabled services from ldap.
Enabled services read from cache. Service list may be inaccurate.
Host srvr.example.com.pl
        antispam                Running
        antivirus               Running
        ldap                    Running
        logger                  Stopped
                zmlogswatchctl is not running
        mailbox                 Stopped
                zmmailboxdctl is not running.
        mta                     Running
        snmp                    Running
        spell                   Running
        stats                   Running
        zmconfigd               Stopped
                zmconfigd is not running.
so I also cannot run zmprov command.

Last edited by spokz; 05-16-2011 at 01:33 PM..
Reply With Quote
  #2 (permalink)  
Old 05-16-2011, 11:29 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by spokz View Post
I changed domain from example.pl to example.com.pl (according to Zimbra Wiki Zmsetservername) with these steps:
That command isn't for changing the domain name it's for changing the hostname of the server.

Two problems in your configuration. First, you should never use a CNAME to point to your mailserver as you're likely to lose mail - it should be an A & MX record and nothing else. Second, your hosts file is incorrect so you should go to the Split DNS article (or the Quick STart Installation Guide or many threads on these forums) and check that for the correct format of the hosts file.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 05-19-2011, 04:02 AM
Starter Member
 
Posts: 4
Default

Quote:
Originally Posted by phoenix View Post
you should never use a CNAME to point to your mailserver as you're likely to lose mail - it should be an A & MX record and nothing else.
I went thru your suggestions and changed CNAME to A record. It looks like this right now:

Quote:
$TTL 86400 ; 1 day
@ IN SOA ns1.example.pl. root.example.pl. (
2011051901 ; Serial
86400 ; Refresh 24h
900 ; Retry 15min
604800 ; Expire 1 week
86400 ) ; Minimum 1 day
@ IN NS ns1.example.pl.
@ IN NS ns1.example.org.
@ IN NS mlsrvr.example.pl.
@ IN A <external IP address>
@ IN MX 10 mlsrvr.example.pl.
@ IN TXT "v=spf1 ip4:<external IP address> a:mlsrvr.example.pl -all"
ns1 604800 IN A <external IP address>
ns2 604800 IN A <other external IP address>
wbsrvr IN A <external IP address>
www IN CNAME wbsrvr
mlsrvr IN A <external IP address>
mail IN A <external IP address>
Quote:
Originally Posted by phoenix View Post
your hosts file is incorrect
After correction my hosts file looks like this:

Quote:
127.0.0.1 localhost.localdomain localhost
10.10.10.37 mlsrvr.example.pl mlsrvr
Could You please tell me if these changes I made are correct?
Reply With Quote
  #4 (permalink)  
Old 05-19-2011, 05:06 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

The hosts file is correct but your DNS records are pointing to the wrong IP address. Follow the instructions in the Split DNS article, it has all the details of what's needed for your DNS records and which IP address they should use.
__________________
Regards


Bill
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.