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 09-29-2008, 05:38 PM
Active Member
 
Posts: 46
Default [SOLVED] slowly, surely going insane.

I've been trying to get this up and running now for over 2 days and I'm truly beaten...........................
I wish I could say I managed to do everything from what I've read on these forums and picked up the rest but I've got to the point where i think I've read so much that its all starting to completely jumble everything up and although I am soooooo tantalizingly close....... it's just not working. I have successfully managed to transfer my whole server from a fully managed RHEL4 keeping all the accounts and mail to CentOS 5 server in-house within our internal network. It's been blood sweat and tears, every Wiki page i found, got me a small step closer but then created errors and problems of its own which then in turn meant i had to change tack and try another way inching closer towards the light at the end of the tunnel.

Here's where I am now:

I have all of the features running except imapproxy which doesn't seem to matter as it has been working in the past and just started throwing this error:

Code:
[zimbra@mailserver]$ zmcontrol start
Host mailserver.myexampleserver.com              <-- not real address
	Starting ldap...Done.
	Starting logger...Done.
	Starting mailbox...Done.
	Starting imapproxy...FAILED
2008/09/30 00:37:17 [emerg] 30519#0: SSL_CTX_use_certificate_chain_file("/opt/zimbra/conf/nginx.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:sys)
nginx is not running
memcached is running

	Starting antispam...Done.
	Starting antivirus...Done.
	Starting snmp...Done.
	Starting spell...Done.
	Starting mta...Done.
	Starting stats...Done.
I can see all mailboxes and all content. I can also log into the admin area fine and carry out all the tasks i need. However, it simply won't send or receive mail.....
It does manage to receive them into the admin area where it promptly shoves them into the deferred queue and does nothing further. It play's the same delightful game when it comes to outgoing mail also except with the added bonus that whenever i try to send an email to an address outside of the local network, i.e. to a domain not listed as a domain in the admin area it gives me this cute but rather intangible little box.


however when i send email 'internally' so to speak it puts it in the deferred queue.

A hint might be that all received mail in the deferred queue seems to have been stripped of it's originator's server details for example when i send an email from my gmail account to a zimbra one it says that it came FROM localhost@localdomain and the FROM IP was 127.0.0.1 and that the reason it has been deferred is because "mail transport unavailable".

Ive read this forum back to front, most of the WIKI, tried a hundred things...................... Please, please........ help, it's stripping me of all humanity.
I pray to thee oh zimbra gods.... put me out of my misery

Last edited by underdog; 09-29-2008 at 05:45 PM.. Reason: delerious spelling
Reply With Quote
  #2 (permalink)  
Old 09-29-2008, 06:53 PM
Active Member
 
Posts: 46
Default

Ok thanks to the wonderful Cedbobking, i have managed to successfully fix my sending issue. it was so easy, a delirious overlooking. I hope that the recieving part will be similar.

So a little more detail.....
Now what happens is:
if I send an email to my zimbra mailbox from gmail i get a response form the server saying:
Code:
This is the mail system at host mailserver.mymailservername.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                  The mail system

<me@mymailservername.com>: Host or domain name not found. Name service error for
   name=mailserver.mymailservername.com type=A: Host not found

Final-Recipient: rfc822; me@mymailservername.com
Original-Recipient: rfc822;me@mymailservername.com
Action: failed
Status: 5.4.4
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error
   for name=mailserver.mymailservername.com type=A: Host not found
However, i have checked, and checked again....
Here are some tests from my environment:

Code:
[root@mailserver opt]# dig mx mailserver.mymailservername.com

; <<>> DiG 9.3.4-P1 <<>> mx mailserver.mymailservername.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 10738
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mailserver.mymailservername.com.	IN	MX

;; AUTHORITY SECTION:
mymailservername.com.	86400	IN	SOA	mymailservername.com. mailserver.mymailservername.com. 42 10800 900 604800 86400

;; Query time: 0 msec
;; SERVER: 192.168.80.158#53(192.168.80.158)
;; WHEN: Tue Sep 30 02:41:28 2008
;; MSG SIZE  rcvd: 89
192.168.80.158 is my internal network DNS server running bind/named
Here's my /etc/hosts file

Code:
127.0.0.1	localhost.localdomain   localhost
192.168.80.166  mailserver.mymailservername.com  mailserver
192.168.80.158  dnsserver.mymailservername.com    dnsserver
something like this:


Still no joy..................
Anyone?

Last edited by underdog; 09-29-2008 at 07:03 PM..
Reply With Quote
  #3 (permalink)  
Old 09-29-2008, 10:41 PM
Moderator
 
Posts: 2,207
Default

On your mailserver, what is the answer to : "dig mailserver.mymailservername.com" ?

Still on your mailserver, what is the content of /etc/resolv.conf ?

These should help you to check your SplitDNS setup.
Reply With Quote
  #4 (permalink)  
Old 09-30-2008, 01:35 AM
Active Member
 
Posts: 46
Default

Hi Klug,
Thanks for your response.

dig gives me
Code:
# dig mailserver.mymailservername.com


; <<>> DiG 9.3.4-P1 <<>> mailserver.mymailservername.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 47186
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mailserver.mymailservername.com.	IN	A

;; AUTHORITY SECTION:
mymailservername.com.	86400	IN	SOA	mymailservername.com. mailserver.mymailservername.com. 42 10800 900 604800 86400

;; Query time: 0 msec
;; SERVER: 192.168.80.158#53(192.168.80.158)
;; WHEN: Tue Sep 30 09:30:42 2008
;; MSG SIZE  rcvd: 84
and my resolv.conf file has:

Code:
nameserver 192.168.80.158              <----- this one is the internal
nameserver 193.108.246.4
nameserver 213.52.175.34
search underdogmedia.co.uk
I think all is right?
Please anyone, i'm getting shot here
Reply With Quote
  #5 (permalink)  
Old 09-30-2008, 01:44 AM
Active Member
 
Posts: 46
Default

I thought i might include this for the eyes of anyone interested. This is my /var/log/zimbra.log output for when i send myself an email from my gmail account. It makes it to the server then gets deferred but i dont know why:

Code:
 

Sep 30 09:13:06 mailserver postfix/smtpd[5389]: connect from fg-out-1718.google.com[72.14.220.158]
Sep 30 09:13:06 mailserver postfix/smtpd[5389]: A8322B4543B: client=fg-out-1718.google.com[72.14.220.158]
Sep 30 09:13:06 mailserver postfix/cleanup[5385]: A8322B4543B: message-id=<f4c4a8f10809300115n1ec78c75l297246d3cfbec58c@mail.gmail.com>
Sep 30 09:13:06 mailserver postfix/qmgr[5167]: A8322B4543B: from=<mygmailccount@gmail.com>, size=2091, nrcpt=1 (queue active)
Sep 30 09:13:06 mailserver amavis[4608]: (04608-04) ESMTP::10024 /opt/zimbra/data/amavisd/tmp/amavis-20080930T090908-04608: < mygmailccount@gmail.com> -> <me@mymailservername.com> SIZE=2091 Received: from mailserver.mymailservername.com ([127.0.0.1]) by localhost (mailser$
Sep 30 09:13:06 mailserver amavis[4608]: (04608-04) Checking: 1-jsIDhu88B9 [72.14.220.158] < mygmailccount@gmail.com> -> <me@mymailservername.com>
Reply With Quote
  #6 (permalink)  
Old 09-30-2008, 02:32 AM
Active Member
 
Posts: 46
Default

since setting the correct ip in MtaMyNetworks the postfix errror message has changed.
it now reads:
Code:
Final-Recipient: rfc822; me@mymailservername.com
Original-Recipient: rfc822;me@mymailservername.com
Action: failed
Status: 5.4.4
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error
   for name=mailserver.mymailservername.com type=A: Host not found
I did a bit of checking on another forum and found this post so i thought i'd double check.
All is as expected:

Code:
[root@mailserver ~]# hostname -f
mailserver.mymailservername.com
Still can't seem to find the issue
Reply With Quote
  #7 (permalink)  
Old 09-30-2008, 02:58 AM
Active Member
 
Posts: 46
Default

for once hotmail has proved useful.
I tried a message from a hotmail account which again gets rejected but it does give me more details on the postfix error:

Code:
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mailserver.mymailservername.com
 (Postfix) with ESMTP id 438C7B45424
	for <me@mymailservername.com>; Tue, 30 Sep 2008 10:39:52 +0100 (BST)
X-Virus-Scanned: amavisd-new at 
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-10 required=10
	tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mailserver.mymailservername.com([127.0.0.1])
	by localhost (mailserver.mymailservername.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id gtIN2BBtzQVo for <me@mymailservername.com>;
	Tue, 30 Sep 2008 10:39:51 +0100 (BST)
Received: from blu0-omc2-s35.blu0.hotmail.com (blu0-omc2-s35.blu0.hotmail.com [65.55.111.110])
	by mailserver.mymailservername.com (Postfix) with ESMTP id 5DC11B45423
	for <me@mymailservername.com>; Tue, 30 Sep 2008 10:39:51 +0100 (BST)
Received: from BLU146-W8 ([65.55.111.71]) by blu0-omc2-s35.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959);
	 Tue, 30 Sep 2008 02:42:02 -0700
Message-ID: <BLU146-W8D77611B3962331F93EE784430@phx.gbl>
Content-Type: multipart/alternative;
	boundary="_dd973b2b-ed26-4cfe-bce8-177770dc0b58_"
X-Originating-IP: [my ip address here]
is it right that it seems for forward the hotmail message on from localhost.localdomain 127.0.0.1 ? this seems a bit odd.
Can someone verify this is right?

Thanks very much
Reply With Quote
  #8 (permalink)  
Old 09-30-2008, 02:58 AM
Moderator
 
Posts: 2,207
Default

Quote:
Originally Posted by underdog View Post
dig gives me
Code:
# dig mailserver.mymailservername.com

; <<>> DiG 9.3.4-P1 <<>> mailserver.mymailservername.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 47186
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mailserver.mymailservername.com.	IN	A

;; AUTHORITY SECTION:
mymailservername.com.	86400	IN	SOA	mymailservername.com. mailserver.mymailservername.com. 42 10800 900 604800 86400

;; Query time: 0 msec
;; SERVER: 192.168.80.158#53(192.168.80.158)
;; WHEN: Tue Sep 30 09:30:42 2008
;; MSG SIZE  rcvd: 84
In other words, mailserver.mymailservername.com is not in your DNS...

Quote:
Originally Posted by underdog View Post
and my resolv.conf file has:

Code:
nameserver 192.168.80.158              <----- this one is the internal
nameserver 193.108.246.4
nameserver 213.52.175.34
search underdogmedia.co.uk
As you're using SplitDNS, you should only have the _internal_ server in your resolv.conf...
Reply With Quote
  #9 (permalink)  
Old 09-30-2008, 03:52 AM
Active Member
 
Posts: 46
Default

I've just scrapped the whole idea of an external dns server for inside of my local network and gone back to basics. Followed the basic split dns setup and all is working.
I really wanted to get an external dns inside of my locl netword running but i suppose this wasnt to be.
Thanks for all your help.
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.