mailro.songshu.org (192.168.1.86)
Installation
newvserver --vsroot /VSERVERS --hostname mailro --domain songshu.org --ip 192.168.1.86/24 --dist etch --arch i386 --mirror http://192.168.1.12:3142/debian.apt-get.eu/debian --interface dummy0
Your current time zone is set to Unknown Do you want to change that? [n]: Enter for default
Enable shadow passwords? Yes
enter the root password
Create a normal user account now? No
Choose software to install: Ok
Change the size of /tmp from 16m to 128m
nano /etc/vservers/mailro/fstab none /proc proc defaults 0 0 none /tmp tmpfs size=128m,mode=1777 0 0 none /dev/pts devpts gid=5,mode=620 0 0
vserver mailro start vserver mailro enter
nano /etc/apt/sources.list deb http://192.168.1.12:3142/security.debian.org/ etch/updates main contrib deb http://192.168.1.12:3142/ftp.nl.debian.org/debian/ etch main contrib non-free
apt-get update apt-get upgrade
apt-get install libgetopt-mixed-perl file libc6-i686 sudo libidn11 curl fetchmail libgmp3c2 libxml2 libstdc++6 openssl libexpat1 libpcre3 libltdl3 libtie-ixhash-perl libperl5.8 ssh
cd /usr/src wget http://h.yimg.com/lo/downloads/5.0.9_GA/zcs-5.0.9_GA_2533.DEBIAN4.0.20080815215219.tgz
tar xvfz zcs-5.0.9_GA_2533.DEBIAN4.0.20080815215219.tgz cd zcs-5.0.9_GA_2533.DEBIAN4.0.20080815215219
We made a 32bit server on a 64bit host and install the 32bit zimbra version, nevertheless we need to override or the installer will refuse
./install.sh --platform-override
Press Return to continue
Install zimbra-ldap [Y] y Install zimbra-logger [Y] y Install zimbra-mta [Y] y Install zimbra-snmp [Y] y Install zimbra-store [Y] y Install zimbra-apache [Y] y Install zimbra-spell [Y] y Install zimbra-proxy [N] n
This platform is DEBIAN4.0_64 Packages found: DEBIAN4.0 Install anyway? [N] Y
The system will be modified. Continue? [N] Y
DNS ERROR resolving MX for mailro.songshu.org It is suggested that the domain name have an MX record configured in DNS Change domain name? [Yes] No
Address unconfigured (**) items (? - help) 3 Select, or 'r' for previous menu [r] 4 set the password ******* *** CONFIGURATION COMPLETE - press 'a' to apply Select from menu, or press 'a' to apply config (? - help) a Save configuration data to a file? [Yes] yes Save config in file: [/opt/zimbra/config.19658] The system will be modified - continue? [No] Yes Notify Zimbra of your installation? [Yes] no
The installation should be done by now, we still need to do some modification for the Vserver to listen to its RFC 1918 IP instead of 127.0.0.1
cd /opt/zimbra/conf && mkdir bak new && cp * bak && for i in *; do sed 's/127.0.0.1/192.168.1.86/g' $i > new/$i; done && mv new/* . && rmdir new
su zimbra
zmprov modifyServer mailro.songshu.org zimbraMtaMyNetworks '10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, 192.168.1.86'
exit
nano /opt/zimbra/postfix/conf/master.cf 192.168.1.86:10025 inet n - n - - smtpd -o mynetworks=127.0.0.1/8,192.168.1.86
nano /opt/zimbra/amavisd/sbin/amavisd @inet_acl = qw( 127.0.0.1 192.168.1.86 [::1] ); # allow SMTP access only from localhost $inet_socket_bind = '192.168.1.86'; # limit socket bind to loopback interface $notify_method = 'smtp:[192.168.1.86]:10025'; $forward_method = 'smtp:[192.168.1.86]:10025';
nano /opt/zimbra/conf/amavisd.conf
$archive_quarantine_method = 'smtp:[192.168.1.86]:10025';
&ask_daemon, ["CONTSCAN {}n", '192.168.1.86:3310'],
nano /opt/zimbra/conf/dspam.conf LocalMX 192.168.1.86
http://www.songshu.org/zimbra/sync-zimbra-contacts-with-funambol