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 07-25-2008, 05:46 AM
Active Member
 
Posts: 33
Default [SOLVED] Local delivery used Split DNS, localhost problems

Hi!

I have a fresh install on my computer. I used Split DNS and set up a nonexistent domain name. It works fine. I can connect to the server and so on. The only problem is that I get errors when trying to send emails to the local domain.
The error message is:
Quote:
lost connection with 127.0.0.1 while recieving initial server greetings
What is this? I suppose it is a postfix error, right?
The unique about this install is that it is Ubuntu8.04 with a custom patched kernel (version 2.6.22-vs2.2.0.7). I patched it for use with Linux-Vserver. The vserver runs Hoary as well.

Thanx a lot in advance
Reply With Quote
  #2 (permalink)  
Old 07-25-2008, 05:54 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

The usual questions, what do the following commands show:

Code:
cat /etc/hosts
cat /etc/resolv.conf
host `hostname`  <-- type that command and use backticks not single quotes
dig yourdomain.com any
dig yourdomain.com mx
and post the output. How much RAM is on this Zimbra server?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 07-25-2008, 06:24 AM
Active Member
 
Posts: 33
Default

Hi!

I didn't know it was important in this case, bere here you go:

Quote:
root@dreamact:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.10 mail.dreamact.hu mail dreamact.hu
Quote:
root@dreamact:~# cat /etc/resolv.conf
### BEGIN INFO
#
# Modified_by: NetworkManager
# Process: /usr/bin/NetworkManager
# Process_id: 4689
#
### END INFO

search dreamact.hu
#search mail.danis.myip.hu

nameserver 192.168.1.10
#nameserver 213.46.246.53
#nameserver 192.168.1.1
Quote:
root@dreamact:~# host `hostname`
dreamact.hu has address 192.168.1.10
dreamact.hu mail is handled by 10 mail.dreamact.hu.
Quote:
root@dreamact:~# dig dreamact.hu any

; <<>> DiG 9.4.2 <<>> dreamact.hu any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49155
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;dreamact.hu. IN ANY

;; ANSWER SECTION:
dreamact.hu. 604800 IN SOA dreamact.hu. admin.dreamact.hu. 2008072504 604800 86400 2419200 604800
dreamact.hu. 604800 IN NS ns1.dreamact.hu.
dreamact.hu. 604800 IN MX 10 mail.dreamact.hu.
dreamact.hu. 604800 IN A 192.168.1.10

;; ADDITIONAL SECTION:
mail.dreamact.hu. 604800 IN A 192.168.1.10

;; Query time: 1 msec
;; SERVER: 192.168.1.10#53(192.168.1.10)
;; WHEN: Fri Jul 25 12:22:52 2008
;; MSG SIZE rcvd: 142
Quote:
root@dreamact:~# dig dreamact.hu mx

; <<>> DiG 9.4.2 <<>> dreamact.hu mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1298
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;dreamact.hu. IN MX

;; ANSWER SECTION:
dreamact.hu. 604800 IN MX 10 mail.dreamact.hu.

;; AUTHORITY SECTION:
dreamact.hu. 604800 IN NS ns1.dreamact.hu.

;; ADDITIONAL SECTION:
mail.dreamact.hu. 604800 IN A 192.168.1.10

;; Query time: 0 msec
;; SERVER: 192.168.1.10#53(192.168.1.10)
;; WHEN: Fri Jul 25 12:22:53 2008
;; MSG SIZE rcvd: 84

root@dreamact:~#
I hope these infos can help you
Reply With Quote
  #4 (permalink)  
Old 07-25-2008, 06:37 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

Apart from this line:

Code:
192.168.1.10 mail.dreamact.hu mail dreamact.hu
which should read this:
Code:
192.168.1.10 mail.dreamact.hu mail
the configuration seems OK.

How much RAM is on this server? Are there any other errors in the log files? Do you get this message all the time? It's only for sending local mail that you see this message, sending external mail works OK?

[edit]
Sorry, I forgot to ask if you could post the exact error message you're getting.
__________________
Regards


Bill

Last edited by phoenix; 07-25-2008 at 06:44 AM..
Reply With Quote
  #5 (permalink)  
Old 07-25-2008, 06:53 AM
Active Member
 
Posts: 33
Default

Hi!

The server has more than enough ram. I use only 50% of it as of now. 2GB..
I cannot send mails to outer domains as the domain I testing the install against is not registered. Yet local delivery should still work, shouldn't it?

That was an attempt to send mail:
Quote:
Jul 25 12:15:13 dreamact postfix/qmgr[19049]: 377C838C3D1: from=, size=723, nrcpt=1 (queue active)
Jul 25 12:15:13 dreamact postfix/qmgr[19049]: 20D2638C3CD: from=, size=717, nrcpt=1 (queue active)
Jul 25 12:15:13 dreamact amavis[18474]: (!)DENIED ACCESS from IP 192.168.1.10, policy bank ''
Jul 25 12:15:13 dreamact amavis[18484]: (!)DENIED ACCESS from IP 192.168.1.10, policy bank ''
Jul 25 12:15:13 dreamact postfix/smtp[25258]: 20D2638C3CD: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=2286, delays=2286/0.04/0.12/0, dsn=4.4.2, status=deferred (lost connection with 127.0.0.1[127.0.0.1] while receiving the initial server greeting)
Jul 25 12:15:13 dreamact postfix/smtp[25257]: 377C838C3D1: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=2508, delays=2507/0.01/0.24/0, dsn=4.4.2, status=deferred (lost connection with 127.0.0.1[127.0.0.1] while receiving the initial server greeting)
[edit]
When I do telnet 127.0.0.1 25 I get response from the SMTP server...

Last edited by vargadanis; 07-25-2008 at 06:55 AM..
Reply With Quote
  #6 (permalink)  
Old 07-25-2008, 07:09 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

Quote:
Originally Posted by vargadanis View Post
ul 25 12:15:13 dreamact amavis[18484]: (!)DENIED ACCESS from IP 192.168.1.10, policy bank ''.
This is likely to be the cause of your problem. I don't know much about Ubuntu but what's causing that error - firewall or SElinux?
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 07-25-2008, 07:16 AM
Active Member
 
Posts: 33
Default

I don't have either. I have no SELinux and no firewall...
Reply With Quote
  #8 (permalink)  
Old 07-25-2008, 07:21 AM
y@w y@w is offline
Moderator
 
Posts: 658
Default

Ubuntu 8.04 comes with apparmor out of the box. There's a good chance that's causing an issue. Try disabling that.

Code:
/etc/init.d/apparmor stop
__________________
What a n00b!
Reply With Quote
  #9 (permalink)  
Old 07-25-2008, 07:26 AM
Active Member
 
Posts: 33
Default

Thanx for the tip but I don't have that installed either. I have a minimalistic ubuntu env. Zimbra in itself was bigger than the used env all together.

[Edit]
Quote:
root@dreamact:/opt/zimbra/log# dpkg -l | grep appar
root@dreamact:/opt/zimbra/log#
Reply With Quote
  #10 (permalink)  
Old 07-25-2008, 10:21 AM
y@w y@w is offline
Moderator
 
Posts: 658
Default

Hmm ok. Anything in /var/log/messages?
__________________
What a n00b!
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.