Results 1 to 6 of 6

Thread: Issue: MX Record & Multi-domain

  1. #1
    wcbenyip is offline Senior Member
    Join Date
    Jun 2007
    Location
    Hong Kong
    Posts
    62
    Rep Power
    7

    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!!

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

    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.
    Last edited by phoenix; 06-22-2007 at 11:04 PM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    wcbenyip is offline Senior Member
    Join Date
    Jun 2007
    Location
    Hong Kong
    Posts
    62
    Rep Power
    7

    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~

  4. #4
    wcbenyip is offline Senior Member
    Join Date
    Jun 2007
    Location
    Hong Kong
    Posts
    62
    Rep Power
    7

    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......

  5. #5
    wcbenyip is offline Senior Member
    Join Date
    Jun 2007
    Location
    Hong Kong
    Posts
    62
    Rep Power
    7

    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~

  6. #6
    countupir is offline Member
    Join Date
    Jun 2009
    Location
    fresno, ca
    Posts
    10
    Rep Power
    5

    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. multi domain / multi IP / SMTP HELO problem
    By fisch09 in forum Administrators
    Replies: 3
    Last Post: 04-04-2007, 05:22 AM
  2. Domain issue
    By fredano in forum Installation
    Replies: 2
    Last Post: 02-14-2007, 12:12 PM
  3. Multi domain Spam Control (thoughts)
    By dlochart in forum Administrators
    Replies: 0
    Last Post: 12-13-2006, 09:04 AM

Posting Permissions

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