Test on Debian 4.0 openVZ
Step 1: Create template and set DNS with the same IP as Virtual Machine IP – to avoid changes in /etc/hosts
Name: test
Domain: domain.com
Local IP: aaa.bbb.ccc.ddd
Step 2: install updates (apt-get update / apt-get upgrade) and remove postfix (apt-get remove postfix). Verify with “nmap” if TCP 25 is still open anymore. If YES go to the next step.
Spep 3: Configure DNS; install bind first (apt-get install bind9)
Now, edit /etc/bind/named.conf.options
Replace existing content with:
Where xxx.xxx.xxx.xxx are your ISP DNS IP’s.
On the next step we will add the domain in the DNS local file; edit /etc/bind/named.conf.local
Create the domain file in the place specified: nano /etc/bind/db.domain.com
Edit /etc/resolv.conf and here we need to have only local IP
nameserver aaa.bbb.ccc.ddd
Edit /etc/hosts and we need to have (these info are set from PVE WebUI – if you change manually on next reboot are back to the old version):
Now, restart bind and test domain with nslookup and ping an external host to be sure that forwarders are defined correct (ping www.google.com)
OK, we have a correct DNS configurated! Now, we go to the next step.
STEP 4: Install zimbra.
Install necessary files:
apt-get install libpcre3 libgmp3c2 libstdc++5 libltdl3 fetchmail unzip p7zip-full lzop lzma arj zoo unzoo cabextract tnef nomarch bzip2 lha unrar rpm binutils
or
aptitude install libpcre3 libgmp3c2 libstdc++5 libltdl3 fetchmail unzip p7zip-full lzop lzma arj zoo unzoo cabextract tnef nomarch bzip2 lha unrar rpm binutils
We create a folder for Zimbra installation files (mkdir /zinstall) and enter in this folder;
We download Zimbra for Debian 4 32bit (http://h.yimg.com/lo/downloads/5.0.14_GA/zcs-5.0.14_GA_2850.DEBIAN4.0.20090303135618.tgz)
wget http://h.yimg.com/lo/downloads/5.0.14_GA/zcs-5.0.14_GA_2850.DEBIAN4.0.20090303135618.tgz
After this unpack the archive using
[FONT="]tar xzvf zcs-5.0.14_GA_2850.DEBIAN4.0.20090303135618.tgz[/FONT]
[FONT="]and we start install with ./install.sh[/FONT]
[FONT="]Now, on DNS settings you will receive the error:[/FONT]
[FONT="]
[/FONT]
[FONT="]Press YES and enter only domain : [/FONT]
[FONT="]Now, after finish installation packages, I skip Zimbra notification the install process go to START ZERVERS..and here he ask me for password:[/FONT]
[FONT="]OK, the setup is end but with errors; I do as zimbra user (su zimbra) and test services:[/FONT]
[FONT="]Zmcontrol status (after he ask me again 3 times for root password I receive messages):[/FONT]
OK, I stop and start again the services: and the same errors!
What it’s wrong in my configuration?
PS: this is a correct guide for a full KVM install
Step 1: Create template and set DNS with the same IP as Virtual Machine IP – to avoid changes in /etc/hosts
Name: test
Domain: domain.com
Local IP: aaa.bbb.ccc.ddd
Step 2: install updates (apt-get update / apt-get upgrade) and remove postfix (apt-get remove postfix). Verify with “nmap” if TCP 25 is still open anymore. If YES go to the next step.
Code:
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2009-04-13 09:05 EEST
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1677 closed ports
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
113/tcp open auth
Now, edit /etc/bind/named.conf.options
Replace existing content with:
Code:
options {
directory "/var/cache/bind";
query-source address * port 53;
forwarders {
xxx.xxx.xxx.xxx; xxx.xxx.xxx.xxx;
};
auth-nxdomain no; # conform to RFC1035
};
On the next step we will add the domain in the DNS local file; edit /etc/bind/named.conf.local
Code:
zone "domain.com" {
type master;
file "/etc/bind/db.domain.com";
allow-transfer {127.0.0.1;
};
};
Code:
;
; BIND data file for domain.com
;
$TTL 604800
@ IN SOA test.domain.com. admin.domain.com. (
130409 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS test
IN MX 10 test
IN A aaa.bbb.ccc.ddd
test IN A aaa.bbb.ccc.ddd
zimbra IN A aaa.bbb.ccc.ddd
;
nameserver aaa.bbb.ccc.ddd
Edit /etc/hosts and we need to have (these info are set from PVE WebUI – if you change manually on next reboot are back to the old version):
Code:
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
aaa.bbb.ccc.ddd test.domain.com test
Code:
test:~# nslookup
> domain.com
Server: aaa.bbb.ccc.ddd
Address: aaa.bbb.ccc.ddd #53
Name: domain.com
Address: aaa.bbb.ccc.ddd
Code:
test:~# ping www.google.com
PING www.l.google.com (72.14.221.147) 56(84) bytes of data.
64 bytes from fg-in-f147.google.com (72.14.221.147): icmp_seq=1 ttl=245 time=39.5 ms
64 bytes from fg-in-f147.google.com (72.14.221.147): icmp_seq=2 ttl=245 time=31.9 ms
64 bytes from fg-in-f147.google.com (72.14.221.147): icmp_seq=3 ttl=245 time=31.4 ms
STEP 4: Install zimbra.
Install necessary files:
apt-get install libpcre3 libgmp3c2 libstdc++5 libltdl3 fetchmail unzip p7zip-full lzop lzma arj zoo unzoo cabextract tnef nomarch bzip2 lha unrar rpm binutils
or
aptitude install libpcre3 libgmp3c2 libstdc++5 libltdl3 fetchmail unzip p7zip-full lzop lzma arj zoo unzoo cabextract tnef nomarch bzip2 lha unrar rpm binutils
We create a folder for Zimbra installation files (mkdir /zinstall) and enter in this folder;
We download Zimbra for Debian 4 32bit (http://h.yimg.com/lo/downloads/5.0.14_GA/zcs-5.0.14_GA_2850.DEBIAN4.0.20090303135618.tgz)
wget http://h.yimg.com/lo/downloads/5.0.14_GA/zcs-5.0.14_GA_2850.DEBIAN4.0.20090303135618.tgz
After this unpack the archive using
[FONT="]tar xzvf zcs-5.0.14_GA_2850.DEBIAN4.0.20090303135618.tgz[/FONT]
[FONT="]and we start install with ./install.sh[/FONT]
[FONT="]Now, on DNS settings you will receive the error:[/FONT]
Code:
[FONT="]DNS ERROR resolving MX for test.domain.com[/FONT]
[FONT="]It is suggested that the domain name have an MX record configured in DNS[/FONT]
[FONT="]Change domain name? [Yes][/FONT]
[/FONT]
[FONT="]Press YES and enter only domain : [/FONT]
Code:
[FONT="]
[/FONT]
[FONT="]Create domain: [test.domain.com]: domain.com[/FONT]
Code:
[FONT="]Starting servers...Could not create the Java virtual machine.[/FONT]
[FONT="]Unable to determine enabled services from ldap.[/FONT]
[FONT="]Enabled services read from cache. Service list may be inaccurate.[/FONT]
[FONT="]Password: (ENTER root password)[/FONT]
[FONT="]done.[/FONT]
[FONT="]Checking for deprecated zimlets...failed.[/FONT]
[FONT="]Installing common zimlets...[/FONT]
[FONT="] com_zimbra_cert_manager...failed. This may impact system functionality.[/FONT]
[FONT="] com_zimbra_ymemoticons...failed. This may impact system functionality.[/FONT]
[FONT="] com_zimbra_local...failed. This may impact system functionality.[/FONT]
[FONT="] com_zimbra_phone...failed. This may impact system functionality.[/FONT]
[FONT="] com_zimbra_bulkprovision...failed. This may impact system functionality.[/FONT]
[FONT="] com_zimbra_url...failed. This may impact system functionality.[/FONT]
[FONT="] com_zimbra_date...failed. This may impact system functionality.[/FONT]
[FONT="] com_zimbra_email...failed. This may impact system functionality.[/FONT]
[FONT="]Finished installing common zimlets.[/FONT]
[FONT="]Could not create the Java virtual machine.[/FONT]
[FONT="]Initializing Documents...failed to initialize documents...see logfile for details.[/FONT]
[FONT="]Restarting mailboxd...done.[/FONT]
[FONT="]Setting up zimbra crontab...done.[/FONT]
[FONT="]Moving /tmp/zmsetup.04132009-103711.log to /opt/zimbra/log[/FONT]
[FONT="]Zmcontrol status (after he ask me again 3 times for root password I receive messages):[/FONT]
Code:
zmcontrol status
Could not create the Java virtual machine.
Unable to determine enabled services from ldap.
Enabled services read from cache. Service list may be inaccurate.
Host
antispam Stopped
zmmtaconfigctl is not running
zmamavisdctl is not running
antivirus Stopped
zmmtaconfigctl is not running
zmamavisdctl is not running
zmclamdctl is not running
ldap Running
logger Stopped
logmysql.server is not running
zmlogswatchctl is not running
mailbox Stopped
zmmtaconfigctl is not running.
mysql.server is not running.
zmmailboxdctl is not running.
Password:
Password:
Password:
mta Stopped
zmmtaconfigctl is not running
postfix is not running
zmsaslauthdctl is not running
snmp Stopped
zmswatch is not running.
spell Running
stats Stopped
Code:
zmcontrol start
Could not create the Java virtual machine.
Host
Unable to determine enabled services from ldap.
Enabled services read from cache. Service list may be inaccurate.
Starting ldap...Done.
FAILED
Could not create the Java virtual machine.
Failed to start slapd. Attempting debug start to determine error.
What it’s wrong in my configuration?
PS: this is a correct guide for a full KVM install