Results 1 to 8 of 8

Thread: [SOLVED] DNS, MX and OSX

  1. #1
     is offline Intermediate Member
    Join Date
    Aug 2009
    Posts
    16
    Rep Power
    6

    Question [SOLVED] DNS, MX and OSX

    Hello,

    I would like to understand how setting up the dns configuration for my zimbra installation.


    I have a mail server, 192.168.1.4, hostname serveur.kawaiyume.net
    And the mail server : 192.168.1.2, hostname mail.kawaiyume.net

    on the main server, bind is running, on the mail server, all zimbra is running.

    In fact, when I installed zimbra, everything was ok, but now if I run the zmsetup.pl script, it complains about not finding the mx record for mail.kawaiyume.net

    Code:
    mail:~ zimbra$ cat /etc/hosts
    ##
    # Host Database
    #
    # localhost is used to configure the loopback interface
    # when the system is booting.  Do not change this entry.
    ##
    127.0.0.1	localhost
    255.255.255.255	broadcasthost
    ::1             localhost 
    fe80::1%lo0	localhost
    
    192.168.1.2	mail.kawaiyume.net
    Code:
    mail:~ zimbra$ cat /etc/resolv.conf 
    search kawaiyume.net
    nameserver 192.168.1.4
    Code:
    mail:~ zimbra$ hostname 
    mail.kawaiyume.net
    Code:
    mail:~ zimbra$ dig kawaiyume.net mx
    
    ; <<>> DiG 9.4.3-P3 <<>> kawaiyume.net mx
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48028
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
    
    ;; QUESTION SECTION:
    ;kawaiyume.net.			IN	MX
    
    ;; ANSWER SECTION:
    kawaiyume.net.		10800	IN	MX	10 mail.kawaiyume.net.
    
    ;; AUTHORITY SECTION:
    kawaiyume.net.		10800	IN	NS	serveur.kawaiyume.net.
    
    ;; ADDITIONAL SECTION:
    mail.kawaiyume.net.	10800	IN	A	192.168.1.2
    serveur.kawaiyume.net.	10800	IN	A	192.168.1.4
    
    ;; Query time: 3 msec
    ;; SERVER: 192.168.1.4#53(192.168.1.4)
    ;; WHEN: Thu Aug 27 12:55:41 2009
    ;; MSG SIZE  rcvd: 106
    Code:
    mail:~ zimbra$ dig mail.kawaiyume.net
    
    ; <<>> DiG 9.4.3-P3 <<>> mail.kawaiyume.net
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 347
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;mail.kawaiyume.net.		IN	A
    
    ;; ANSWER SECTION:
    mail.kawaiyume.net.	10800	IN	A	192.168.1.2
    
    ;; AUTHORITY SECTION:
    kawaiyume.net.		10800	IN	NS	serveur.kawaiyume.net.
    
    ;; ADDITIONAL SECTION:
    serveur.kawaiyume.net.	10800	IN	A	192.168.1.4
    
    ;; Query time: 1 msec
    ;; SERVER: 192.168.1.4#53(192.168.1.4)
    ;; WHEN: Thu Aug 27 12:56:03 2009
    ;; MSG SIZE  rcvd: 90
    ->

    Code:
    bash-3.2# /opt/zimbra/libexec/zmsetup.pl 
    Operations logged to /tmp/zmsetup.08272009-125637.log
    Checking java version...1.5 found
    Setting defaults...
    
    DNS ERROR resolving MX for mail.kawaiyume.net
    It is suggested that the domain name have an MX record configured in DNS
    Change domain name? [Yes]

    For the moment, everything works fine, but I would like to be sure that I my configuration is optimum.

    Thanks.

    PS : sorry for my bad english.

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

    Default

    Your hosts file should contain the following:

    Code:
    127.0.0.1	localhost.localdomain localhost
    192.168.1.2	 mail.kawaiyume.net mail
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
     is offline Intermediate Member
    Join Date
    Aug 2009
    Posts
    16
    Rep Power
    6

    Default

    Ok, hosts file corrected, but the zmsetup.pl script still complains about error of resolustion of the mx record for mail.kawaiyume.net

    Code:
    bash-3.2# /opt/zimbra/libexec/zmsetup.pl 
    Operations logged to /tmp/zmsetup.08272009-135429.log
    Checking java version...1.5 found
    Setting defaults...
    
    DNS ERROR resolving MX for mail.kawaiyume.net
    It is suggested that the domain name have an MX record configured in DNS
    Change domain name? [Yes]
    In fact, I think that the script may try to resolve the mx record for 'kawaiyume.net' and not 'mail.kawaiyume.net' ?

  4. #4
    philpw99 is offline Intermediate Member
    Join Date
    Aug 2009
    Posts
    18
    Rep Power
    6

    Default

    Hey, you are creating emails like john@kawaiyume.net , right? Then your domain name in Zimbra should be kawaiyume.net, not mail.kawaiyume.net . You need to change the domain name when you install Zimbra. Your hostname, DNS records seem fine to me.

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

    Default

    Quote Originally Posted by iX View Post
    Ok, hosts file corrected, but the zmsetup.pl script still complains about error of resolustion of the mx record for mail.kawaiyume.net

    Code:
    bash-3.2# /opt/zimbra/libexec/zmsetup.pl 
    Operations logged to /tmp/zmsetup.08272009-135429.log
    Checking java version...1.5 found
    Setting defaults...
    
    DNS ERROR resolving MX for mail.kawaiyume.net
    It is suggested that the domain name have an MX record configured in DNS
    Change domain name? [Yes]
    In fact, I think that the script may try to resolve the mx record for 'kawaiyume.net' and not 'mail.kawaiyume.net' ?
    If you don't change the domain name, when asked, during the install it will default to the FQDN of your server. You should change the domain name to "kawaiyume.net" at that point.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
     is offline Intermediate Member
    Join Date
    Aug 2009
    Posts
    16
    Rep Power
    6

    Default

    ok, so it is not a problem ?

    I have just to reply yes to the question en enter 'kawaiyume.net'.

    Does everyone have to do so ? or it is just for me that the script can't detect the good domain name ?

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

    Default

    Quote Originally Posted by iX View Post
    ok, so it is not a problem ?

    I have just to reply yes to the question en enter 'kawaiyume.net'.

    Does everyone have to do so ? or it is just for me that the script can't detect the good domain name ?
    No, it's the same for everyone - that's the way the script works.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
     is offline Intermediate Member
    Join Date
    Aug 2009
    Posts
    16
    Rep Power
    6

    Default

    OK, sorry for the annoyement, as my server works, I may have done this the first time, but as I don't remember, it was strange.

    Thanks for all.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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