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

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 08-27-2009, 04:02 AM
Member
 
Posts: 13
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.
Reply With Quote
  #2 (permalink)  
Old 08-27-2009, 04:15 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
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
Reply With Quote
  #3 (permalink)  
Old 08-27-2009, 04:56 AM
Member
 
Posts: 13
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' ?
Reply With Quote
  #4 (permalink)  
Old 08-27-2009, 08:33 AM
Intermediate Member
 
Posts: 18
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.
Reply With Quote
  #5 (permalink)  
Old 08-27-2009, 08:34 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
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
Reply With Quote
  #6 (permalink)  
Old 08-27-2009, 09:06 AM
Member
 
Posts: 13
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 ?
Reply With Quote
  #7 (permalink)  
Old 08-27-2009, 09:15 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
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
Reply With Quote
  #8 (permalink)  
Old 08-27-2009, 09:23 AM
Member
 
Posts: 13
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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.