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 06-22-2007, 07:24 PM
Senior Member
 
Posts: 62
Question Issue: MX Record & Multi-domain

Hi ALL,

I am now setting up the OS Zimbra 4.5.5 on OpenSUSE 10.2, however, I reached the same mx problem like other ppl here -> can send out email but no one received even internal or external a/c~ Does there anyone could help? Here is my case...

Requirement
Setup ONE single mail server for two different sub-domain (i.e. group.domainB.com & group.domainC.com, as the domainB.com & domainC.com are used for other purpose), and let the two group of PCs to have their own email address which could be used for internal and ONLY capable of sending/receiving mails to/from domainB.com & domainC.com~


Zimbra Server (OS Zimbra 4.5.5) on OpenSUSE 10.2
I would like to set it as domainA.com
Internal IP: 192.168.1.10/24
NAT for domainB.com: 10.10.10.10 (group.domainB.com)
NAT for domainC.com: 10.10.20.10 (group.domainC.com)
Hostname: zimbra (i.e. zimbra.domainA.com)
-----------------------------------------------------
Content of /etc/hosts
-----------------------------------------------------
127.0.0.1 localhost
192.168.1.10 zimbra.domainA.com zimbra
127.0.0.2 group.domainB.com shop
127.0.0.3 group.domainC.com shop

Internal DNS setting
'A' record is set for zimbra.domainA.com
Remark: There is NO DNS for domainB.com & domainC.com internally

External DNS setting
for domainA.com ----
didn't added anything even zimbra.domainA.com

for domainB.com ---
'A' record - group.domainB.com, 10.10.10.10
'MX' record - (pointed to another production mail server)
subdomain 'MX' record - group.domainB.com

for domainC.com ---
'A' record - group.domainC.com, 10.10.20.10
'MX' record - (pointed to another production mail server)
subdomain 'MX' record - group.domainC.com

Firewall policy
1/ ZimbraServer ----> ANY services ----> External (Internet)
2/ External (Internet) ----> http/https/7071/ping ----> ZimbraServer-B (NATed)
3/ External (Internet) ----> http/https/7071/ping ----> ZimbraServer-C (NATed)
Remark: Under current circumstance, I still haven't catered for the requirement of restricting the email communication with outside domains.

Problems
1/ Is it correct to set the Zimbra smtp server as group.domainB.com? (or even group.domainC.com should be the same result?)

2/ From both internal or external, I can resolve the domainB.com & domainC.com to show the mx record of the proper external IP, and even can ping to the proper external IP with group.domainB.com & group.domainC.com. However, I still can only send emails... but no one could received .....

I know it's a complicated scenario and maybe I have set it up totally wrong...... please kindly help to advise/suggest~ Many thanks!!
Reply With Quote
  #2 (permalink)  
Old 06-22-2007, 11:01 PM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Set-up Zimbra for the primary domain with this in your /etc/hosts file:

Code:
127.0.0.1 localhost.localdomain localhost
192.168.1.10 zimbra.domainA.com zimbra
Make sure that this domain has DNS A & MX records and you can send and receive email. When that's done just create the second domains on the Zimbra server the just add DNS A & MX records for your additional domains.

You won't actually need internal LAN DNS records for the secondary domains unless you need to use http://yourdomainb.com as the url for users to get their mail.
__________________
Regards


Bill

Last edited by phoenix; 06-22-2007 at 11:04 PM..
Reply With Quote
  #3 (permalink)  
Old 06-23-2007, 11:35 AM
Senior Member
 
Posts: 62
Default

Thanks phoenix~

I have done what you said.... the first time, I can sent out the email to a yahoo account, but cannot deliver to the a/c on the same domain (i.e. @domainB.com).... which is the same email to both accounts~

And later on, I cannot sent out any mails to any accounts even internal or external... and I found that in the account@domainB.com on zimbra admin web panel, it's saying that it's using the mail server "zimbra.domainA.com"~ this make me confused.....

Probably something is wrong during my installation, here is the config.4379 file content:
----------------------------------------------------------------------------------------------------------------------------
AVUSER=admin@group.domainB.com
CREATEADMIN=admin@group.domainB.com
CREATEDOMAIN=group.domainB.com
DOCREATEADMIN=yes
DOCREATEDOMAIN=yes
DOTRAINSA=yes
EXPANDMENU=yes
HOSTNAME=zimbra.domainA.com
HTTPPORT=80
HTTPSPORT=443
IMAPPORT=143
IMAPPROXYPORT=143
IMAPSSLPORT=993
IMAPSSLPROXYPORT=993
JAVAHOME=/opt/zimbra/java
LDAPHOST=zimbra.domainA.com
LDAPPORT=389
MODE=both
MTAAUTHHOST=zimbra.domainA.com
MYSQLMEMORYPERCENT=30
NOTEBOOKACCOUNT=wiki@group.domainB.com
POPPORT=110
POPPROXYPORT=110
POPSSLPORT=995
POPSSLPROXYPORT=995
REMOVE=no
RUNAV=yes
RUNSA=yes
SMTPDEST=admin@domainB.com
SMTPHOST=group.domainB.com
SMTPNOTIFY=yes
SMTPSOURCE=admin@group.domainB.com
SNMPNOTIFY=yes
SNMPTRAPHOST=zimbra.domainA.com
SPELLURL=http://group.domainB.com:7780/aspell.php
STARTSERVERS=yes
SYSTEMMEMORY=0.5
TOMCATMEMORYPERCENT=40
TRAINSAHAM=ham.zvvy.b19m@group.domainB.com
TRAINSASPAM=spam.an8kjxmijr@group.domainB.com
UPGRADE=yes
USEIMAPPROXY=no
USESPELL=yes
INSTALL_PACKAGES="zimbra-apache zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-spell zimbra-store "
----------------------------------------------------------------------------------------------------------------------------


I just though that it should use the name of zimbra.domainA.com for the LDAP to host all of the accounts for both domainB.com & domainC.com, so I didn't change it to be group.domainB.com... maybe this is the reason to make the wrong way.... should I really need to change ALL of the name in BLUE to be group.domainB.com instead?? And is it correct to use group.domainB.com as the smtphost, so that the a/c of group.domainC.com will use it as smtp server also? Or it will use a separate smtp host for each new created domain?

Thanks for anyone could guide me to leave the headache suffering~
Reply With Quote
  #4 (permalink)  
Old 06-24-2007, 11:38 AM
Senior Member
 
Posts: 62
Default

Oh.... it seems that the most critical one is the LDAPHOST? I think I should change it to "group.domainB.com" instead of "zimbra.domainA.com"..... as I have re-installed ZCS so many times and only left the LDAPHOST, HOSTNAME & SNMP one as zimbra.domainA.com, found that the mail server for the user accounts created under group.domainB.com is still using zimbra.domainA.com ........

OK, I will re-install it again.... and change all of the name to be "group.domainB.com" except the HOSTNAME......
Reply With Quote
  #5 (permalink)  
Old 06-25-2007, 02:09 AM
Senior Member
 
Posts: 62
Smile

OK~ Finally, I have given up the previous idea..... now it's working with below setting:

1/ Added A & MX record for zimbra.domainA.com
2/ Added sub-domain of group.domainB.com and point the MX record to zimbra.domainA.com
3/ Re-install the ZCS 4.5.5 (forgot how many times of such procedures....)
4/ Let the zimbra.domainA.com as the smtphost, ldaphost, mta auth...

Up to this moment, the account@group.domainB.com & account@group.domainC.com could send/receive mails to/from both of internal & external domains~
Reply With Quote
  #6 (permalink)  
Old 06-23-2009, 06:15 PM
Member
 
Posts: 10
Default

Quote:
Originally Posted by wcbenyip View Post
OK~ Finally, I have given up the previous idea..... now it's working with below setting:

1/ Added A & MX record for zimbra.domainA.com
2/ Added sub-domain of group.domainB.com and point the MX record to zimbra.domainA.com
3/ Re-install the ZCS 4.5.5 (forgot how many times of such procedures....)
4/ Let the zimbra.domainA.com as the smtphost, ldaphost, mta auth...

Up to this moment, the account@group.domainB.com & account@group.domainC.com could send/receive mails to/from both of internal & external domains~
I am having the same problem and am going to try your fix on my server. From what I understand you used the main server domain as the MX record for the other domains on the server.

We'll see what happens. Thanks for the post
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.