Results 1 to 4 of 4

Thread: Problems after domain change

  1. #1
    spokz is offline Starter Member
    Join Date
    May 2011
    Posts
    4
    Rep Power
    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.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,504
    Rep Power
    57

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    spokz is offline Starter Member
    Join Date
    May 2011
    Posts
    4
    Rep Power
    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:

    $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:

    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?

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,504
    Rep Power
    57

    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


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multi Domain and other problems
    By btriple in forum Administrators
    Replies: 1
    Last Post: 12-31-2010, 04:04 PM
  2. Replies: 7
    Last Post: 04-27-2009, 02:49 AM
  3. Replies: 20
    Last Post: 03-18-2008, 05:37 AM
  4. Domain name change...
    By jeremymaritz in forum Administrators
    Replies: 2
    Last Post: 03-14-2007, 11:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •