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

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 12-10-2010, 01:46 AM
New Member
 
Posts: 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.
Reply With Quote
  #2 (permalink)  
Old 12-10-2010, 02:07 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
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?
__________________
Regards


Bill

Last edited by phoenix; 12-10-2010 at 02:14 AM..
Reply With Quote
  #3 (permalink)  
Old 12-10-2010, 02:10 AM
New Member
 
Posts: 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 02:13 AM.. Reason: additional note
Reply With Quote
  #4 (permalink)  
Old 12-10-2010, 02:26 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
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:

Quote:
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
Reply With Quote
  #5 (permalink)  
Old 12-10-2010, 02:29 AM
New Member
 
Posts: 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.
Reply With Quote
  #6 (permalink)  
Old 12-10-2010, 05:32 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
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
Reply With Quote
  #7 (permalink)  
Old 12-10-2010, 12:17 PM
New Member
 
Posts: 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.
Reply With Quote
  #8 (permalink)  
Old 12-10-2010, 11:53 PM
Zimbra Consultant & Moderator
 
Posts: 20,313
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
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.