Results 1 to 8 of 8

Thread: [SOLVED] Second and Third domain addition woes

  1. #1
    thomaskriz is offline New Member
    Join Date
    Dec 2010
    Posts
    4
    Rep Power
    4

    Unhappy [SOLVED] Second and Third domain addition woes

    Hello all,
    My school uses Zimbra and I was looking for a email service that worked well, and I thought I'd give the open source version a shot. I'm on a clean install of Debian 5 and I was able to get it working for my main domain, domain1.com. I want to add other domains to it though as I have some friends that also have domains. I added the domains domain2.com and domain3.com and from them I can send email to anyone, but not receive. I can receive email on domain2.com from domain3.com or whatever combination of the three but they cannot receive mail outside of my server. Recall that domain1.com can receive email from anyone.

    I:
    Added the domains through the admin GUI and through CLI
    CLI command used: zmprov cd domain2.com
    Read/searched the forums but can't seem to find my answer
    Can receive email on one of the domains (my main domain) so I cannot understand why I can't receive on the other two
    Waited to ensure my DNS settings were propogated.
    Did receive delivery failure noticed 24 hours later from Gmail (after the logs below)
    Have virtual hosts setup


    Some things you guys look for:

    Debian is completely updated
    Zimbra Version: Release 6.0.9_GA_2686.DEBIAN5 DEBIAN5 FOSS edition.
    My server is from Linode - Xen VPS Hosting
    I am running a bind server with afraid.org acting as a backup server

    I'm not entirely sure why this doesn't work:
    Code:
    linode:~# host `hostname`
    Host linode not found: 3(NXDOMAIN)

    Code:
    cat /etc/hosts
    
    127.0.0.1 localhost.localdomain localhost
    173.255.1.1 linode.domain1.com linode
    #note that I do not have an internal IP address.
    The following was done in a seperate computer using Google DNS servers 8.8.8.8 and 8.8.4.4

    Mail server:
    Code:
    dig linode.domain1.com
    ;; QUESTION SECTION:
    ;linode.domain1.com.                IN      A
    
    ;; ANSWER SECTION:
    linode.domain1.com. 38400   IN      A       173.255.1.1

    MX for main domain (and this one works):

    Code:
    dig domain1.com mx
    
    ;; QUESTION SECTION:
    ;domain1.com.               IN      MX
    
    ;; ANSWER SECTION:
    domain1.com.        38400   IN      MX      10 linode.domain1.com.

    Second domain (sends but won't receive non-my domain emails):
    Code:
    dig domain2.com mx
    
    ;; QUESTION SECTION:
    ;domain2.com.                IN      MX
    
    ;; ANSWER SECTION:
    domain2.com. 30290   IN      MX      5 linode.domain1.com.domain2.com.

    Third domain (sends but won't receive non-my domain emails too):
    Code:
    dig domain3.com mx
    
    ;; QUESTION SECTION:
    ;domain3.com.                 IN      MX
    
    ;; ANSWER SECTION:
    domain3.com.          37564   IN      MX      30 linode.domain1.com.domain3.com.

    I notice the ones that don't work have the linode.domain1.com before them in the mx record. Is that normal for my situation? Phoenix says it is wrong in this thread but my bind config should not give those kind of results:

    Code:
    domain3.com.  IN      MX      30 linode.domain1.com
    Code:
    domain2.com. IN      MX      5 linode.domain1.com
    I use webmin to edit my bind configs.


    When sending from Gmail to domain1.com:

    Code:
    Dec 10 09:07:11 linode zmmailboxdmgr[17969]: status requested
    Dec 10 09:07:11 linode zmmailboxdmgr[17969]: status OK
    Dec 10 09:08:04 linode zmmailboxdmgr[18277]: status requested
    Dec 10 09:08:04 linode zmmailboxdmgr[18277]: status OK
    Dec 10 09:08:17 linode postfix/smtpd[18613]: connect from mail-ww0-f44.google.com[74.125.82.44]
    Dec 10 09:08:17 linode postfix/smtpd[18613]: E82204E273: client=mail-ww0-f44.google.com[74.125.82.44]
    Dec 10 09:08:18 linode postfix/cleanup[18652]: E82204E273: message-id=<AANLkTik4dGwbcOo=V0TrZ0=_ez4e93iRQyae+5W2x6_j@mail.gmail.com>
    Dec 10 09:08:18 linode postfix/qmgr[18779]: E82204E273: from=<thomas@gmail.com>, size=1872, nrcpt=1 (queue active)
    Dec 10 09:08:18 linode amavis[16870]: (16870-02) ESMTP::10024 /opt/zimbra/data/amavisd/tmp/amavis-20101210T070309-16870: <thomas@gmail.com> -> <thomas@domain1.com> SIZE=1872 Received: from linode.domain1.com ([127.0.0.1]) by localhost (linode.domain1.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <thomas@domain1.com>; Fri, 10 Dec 2010 09:08:18 +0000 (UTC)
    Dec 10 09:08:18 linode amavis[16870]: (16870-02) Checking: XJ-PCdhisP3X [74.125.82.44] <thomas@gmail.com> -> <thomas@domain1.com>
    Dec 10 09:08:19 linode postfix/smtpd[18733]: connect from localhost.localdomain[127.0.0.1]
    Dec 10 09:08:19 linode postfix/smtpd[18733]: A5EE74E274: client=localhost.localdomain[127.0.0.1]
    Dec 10 09:08:19 linode postfix/cleanup[18652]: A5EE74E274: message-id=<AANLkTik4dGwbcOo=V0TrZ0=_ez4e93iRQyae+5W2x6_j@mail.gmail.com>
    Dec 10 09:08:19 linode postfix/qmgr[18779]: A5EE74E274: from=<thomas@gmail.com>, size=2848, nrcpt=1 (queue active)
    Dec 10 09:08:19 linode postfix/smtpd[18733]: disconnect from localhost.localdomain[127.0.0.1]
    Dec 10 09:08:19 linode amavis[16870]: (16870-02) FWD via SMTP: <thomas@gmail.com> -> <thomas@domain1.com>,BODY=7BIT 250 2.0.0 Ok, id=16870-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A5EE74E274
    Dec 10 09:08:19 linode amavis[16870]: (16870-02) Passed CLEAN, [74.125.82.44] [74.125.82.44] <thomas@gmail.com> -> <thomas@domain1.com>, Message-ID: <AANLkTik4dGwbcOo=V0TrZ0=_ez4e93iRQyae+5W2x6_j@mail.gmail.com>, mail_id: XJ-PCdhisP3X, Hits: -0.8, size: 1872, queued_as: A5EE74E274, dkim_id=@gmail.com,thomas@gmail.com, 1430 ms
    Dec 10 09:08:19 linode postfix/smtp[18664]: E82204E273: to=<thomas@domain1.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.1, delays=0.42/0.07/0.26/1.3, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=16870-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A5EE74E274)
    Dec 10 09:08:19 linode postfix/qmgr[18779]: E82204E273: removed
    Dec 10 09:08:20 linode postfix/lmtp[18734]: A5EE74E274: to=<thomas@domain1.com>, relay=linode.domain1.com[173.255.1.1]:7025, delay=0.59, delays=0.09/0.01/0.22/0.27, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)
    Dec 10 09:08:20 linode postfix/qmgr[18779]: A5EE74E274: removed
    Dec 10 09:08:31 linode zmmailboxdmgr[19159]: status requested
    Dec 10 09:08:31 linode zmmailboxdmgr[19159]: status OK
    Dec 10 09:08:32 linode zmmailboxdmgr[19217]: status requested
    Dec 10 09:08:32 linode zmmailboxdmgr[19217]: status OK
    Dec 10 09:08:48 linode postfix/smtpd[18613]: disconnect from mail-ww0-f44.google.com[74.125.82.44]

    But when I send to domain2.com I see nothing:

    Code:
    Dec 10 09:08:48 linode postfix/smtpd[18613]: disconnect from mail-ww0-f44.google.com[74.125.82.44]
    Dec 10 09:09:50 linode zmmailboxdmgr[20043]: status requested
    Dec 10 09:09:50 linode zmmailboxdmgr[20043]: status OK
    Dec 10 09:09:51 linode zmmailboxdmgr[20101]: status requested
    Dec 10 09:09:51 linode zmmailboxdmgr[20101]: status OK
    Dec 10 09:10:02 linode zimbramon[20139]: 20139:info: 2010-12-10 09:10:02, QUEUE: 0 0
    Dec 10 09:10:09 linode zmmailboxdmgr[20536]: status requested
    Dec 10 09:10:09 linode zmmailboxdmgr[20536]: status OK
    Dec 10 09:11:10 linode zmmailboxdmgr[21405]: status requested
    Dec 10 09:11:10 linode zmmailboxdmgr[21405]: status OK
    Dec 10 09:11:11 linode zmmailboxdmgr[21463]: status requested
    Dec 10 09:11:11 linode zmmailboxdmgr[21463]: status OK
    Gmail says:
    Technical details of temporary failure:
    The recipient server did not accept our requests to connect. Learn more at 'The recipient server did not accept our requests...' - Gmail Help
    [linode.domain1.com.domain2.com. (5): Destination address required]

    I think it's a DNS problem, but I can't see what I did wrong.

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

    Default

    Do you have a firewall on this server? Do you actually have a public IP for this server and Public DNS records for the domain?
    Last edited by phoenix; 12-10-2010 at 03:14 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    thomaskriz is offline New Member
    Join Date
    Dec 2010
    Posts
    4
    Rep Power
    4

    Default

    I do not have a firewall at the moment. I do have a public IP and I can access the Zimbra GUI services from the web [EDIT: via their domain names or IP]. The DNS records that I posted were form Google DNS on a separate server, so I believe my bind server is propagating appropriately. As I can receive email on domain1.com from Gmail/Yahoo/etc I did not think it was a firewall problem.
    Last edited by thomaskriz; 12-10-2010 at 03:13 AM. Reason: additional note

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

    Default

    Quote Originally Posted by thomaskriz View Post
    I do not have a firewall at the moment. I do have a public IP and I can access the Zimbra GUI services from the web. The DNS records that I posted were form Google DNS on a separate server, so I believe my bind server is propagating appropriately. As I can receive email on domain1.com from Gmail/Yahoo/etc I did not think it was a firewall problem.
    A VPS server is nota good choice for running Zimbra, they can be problematic - search the forums and wiki for details.

    If you have a public IP and DNS records then you need to provide details that they're working correctly. If people are sending mail to you on Domain2 & Domain3 then you will need valid external DNS records for those domains, do you have them?

    The error message from google tells you why it wasn't delivered:

    his error message indicates that we've attempted to make a connection with your recipient's server but didn't receive a reply. Some possible causes include the following:

    The other domain doesn't have up-to-date MX records or is otherwise misconfigured.
    The other domain is blacklisting or graylisting messages from Gmail.
    The other domain is experiencing temporary networking problems.
    Although your DNS records for the primary domain apepar to be correct the following error indicates there's a DNS lookup problem:

    Code:
    linode:~# host `hostname`
    Host linode not found: 3(NXDOMAIN)
    The DNS records you have for domani2 & domain3 are totally incorrect:

    Code:
    domain2.com. 30290   IN      MX      5 linode.domain1.com.domain2.com.
    domain3.com. 37564   IN      MX      30 linode.domain1.com.domain3.com.
    They need to be fixed.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    thomaskriz is offline New Member
    Join Date
    Dec 2010
    Posts
    4
    Rep Power
    4

    Default

    Yes I was wondering if that was normal or irregular. Then this seems to be a bind problem on my end and I'll have to investigate that. I'm not sure why bind is appending the linode.domain1.com to the two domains.

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

    Default

    Quote Originally Posted by thomaskriz View Post
    Then this seems to be a bind problem on my end and I'll have to investigate that.
    That would be my first guess.

    Quote Originally Posted by thomaskriz View Post
    I'm not sure why bind is appending the linode.domain1.com to the two domains.
    The likelihood is that you've configured the BIND files incorrectly but without seeing them I don't know what the exact problem is.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    thomaskriz is offline New Member
    Join Date
    Dec 2010
    Posts
    4
    Rep Power
    4

    Default

    Yes it was a bind problem. I had assumed that for the MX record that the server would be linode.domain1.com . That was wrong. I just created A records for linode.domain2.com and linode.domain3.com and used them as the mail server. Then it worked. Thanks for clarifying that the MX record was improper.

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

    Default

    Quote Originally Posted by thomaskriz View Post
    Yes it was a bind problem. I had assumed that for the MX record that the server would be linode.domain1.com . That was wrong. I just created A records for linode.domain2.com and linode.domain3.com and used them as the mail server. Then it worked. Thanks for clarifying that the MX record was improper.
    Glad you've fixed it, enjoy.
    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)

Posting Permissions

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