Difference between revisions of "Basic zimbra configuration"
m |
m |
||
Line 4: | Line 4: | ||
==Installation== | ==Installation== | ||
#Zimbra setup can be downloaded from http://www.zimbra.com/downloads/os-downloads.html | #Zimbra setup can be downloaded from http://www.zimbra.com/downloads/os-downloads.html Steps mentioned below are specific to http://files2.zimbra.com/downloads/8.0.7_GA/zcs-8.0.7_GA_6021.RHEL6_64.20140408123911.tgz and may get changed slightly based on version being installed. | ||
#Verify md5sum and then extract download archive | #Verify md5sum and then extract download archive. | ||
#<tt>service sendmail stop</tt> | #Stop and disable any existing SMTP servers, if any, using: | ||
#<tt>chkconfig sendmail off</tt> | #*<tt>service sendmail stop</tt> | ||
#*<tt>chkconfig sendmail off</tt> | |||
#*<tt>service postfix stop</tt> | |||
#*<tt>chkconfig postfix off</tt> | |||
#Edit <tt>/etc/hosts</tt> | #Edit <tt>/etc/hosts</tt> | ||
##Ensure that it contains <tt>127.0.0.1 localhost.localdomain localhost</tt> and no other aliases for 127.0.0.1 | ##Ensure that it contains <tt>127.0.0.1 localhost.localdomain localhost</tt> and no other aliases for 127.0.0.1 | ||
##For machines ethernet / public IP it should contain FQDN, followed by hostname, followed by other aliases. For example <tt>10.3.3.241 zimbratest.iiit.ac.in zimbratest lab320-pc9 mfsmaster</tt> | ##For machines ethernet / public IP it should contain FQDN, followed by hostname, followed by other aliases. For example <tt>10.3.3.241 zimbratest.iiit.ac.in zimbratest lab320-pc9 mfsmaster</tt> | ||
#Create folder /opt/zimbra. Mount partitons/folder in which you want to install zimbra to /opt/zimbra. | #Ensure that DNS entry for FQDN resolves to machine's IP. Further MX record for email domain should resolve to Zimbra server FQDN directly or through CNAME. | ||
#Create folder /opt/zimbra. Mount partitons/folder in which you want to install zimbra to /opt/zimbra. This step is required only if you want all Zimbra files to go to separate partition and not to / or /opt. | |||
#Use '<tt>yum -y install nc libaio sysstat</tt>' to install required packages | #Use '<tt>yum -y install nc libaio sysstat</tt>' to install required packages | ||
#Go to extracted folder and use '<tt>./install.sh</tt>' from root user | #Go to extracted folder and use '<tt>./install.sh</tt>' from root user | ||
# | #Enter 'Y' for agreeing with terms of service | ||
# | #Enter 'Y' for agreeing with license agreement | ||
# | #Enter 'Y' for installing Zimbra-ldap, Zimbra-logger, Zimbra-mta, Zimbra-snmp, Zimbra-store, Zimbra-apache and Zimbra spell | ||
# | #Enter 'N' for installing Zimbra-memcached and Zimbra-proxy | ||
# | #Enter 'Y' for system will be modified warning. The setup should now install various rpms for Zimbra. | ||
#If FQDN is different from domain name (eg FQDN zimbra.example.com, domain example.com) then Zimbra will give error that MX record cannot be resolved. Enter 'Yes' for change domain name. | |||
#Enter new correct domain name such as example.com | |||
#This would bring setup to Zimbra configuration menu. Only admin password needs to be configured rest all can be left as it is for basic setup. To configure admin password use menu option '3' followed by '4'. Set appropriate admin password. | |||
#Press 'r' to return to previous menu and then 'a' for applying configuration | |||
#Enter 'Yes' for saving configuration to a file | |||
# | #Press enter for file path option and continue with whatever file name has been suggested | ||
#Enter 'Yes' for system will be modified warning | |||
#Now setup should take really long time for various installations and configurations | |||
#Enter 'No' for notify Zimbra of installation for test machines. In case of production machines you can optionally enter 'Yes'. | |||
# | #Press return to exit on 'Press return to exit' message :) | ||
# | #Now zimbra admin interface can be accessed at https://<FQDN>:7071/ and mail can be checked using web interface at https://<FQDN>/ | ||
# | |||
# | |||
# | |||
Revision as of 03:58, 3 May 2014
<yambe:breadcrumb>Zimbra server configuration|Zimbra</yambe:breadcrumb>
Zimbra
Installation
- Zimbra setup can be downloaded from http://www.zimbra.com/downloads/os-downloads.html Steps mentioned below are specific to http://files2.zimbra.com/downloads/8.0.7_GA/zcs-8.0.7_GA_6021.RHEL6_64.20140408123911.tgz and may get changed slightly based on version being installed.
- Verify md5sum and then extract download archive.
- Stop and disable any existing SMTP servers, if any, using:
- service sendmail stop
- chkconfig sendmail off
- service postfix stop
- chkconfig postfix off
- Edit /etc/hosts
- Ensure that it contains 127.0.0.1 localhost.localdomain localhost and no other aliases for 127.0.0.1
- For machines ethernet / public IP it should contain FQDN, followed by hostname, followed by other aliases. For example 10.3.3.241 zimbratest.iiit.ac.in zimbratest lab320-pc9 mfsmaster
- Ensure that DNS entry for FQDN resolves to machine's IP. Further MX record for email domain should resolve to Zimbra server FQDN directly or through CNAME.
- Create folder /opt/zimbra. Mount partitons/folder in which you want to install zimbra to /opt/zimbra. This step is required only if you want all Zimbra files to go to separate partition and not to / or /opt.
- Use 'yum -y install nc libaio sysstat' to install required packages
- Go to extracted folder and use './install.sh' from root user
- Enter 'Y' for agreeing with terms of service
- Enter 'Y' for agreeing with license agreement
- Enter 'Y' for installing Zimbra-ldap, Zimbra-logger, Zimbra-mta, Zimbra-snmp, Zimbra-store, Zimbra-apache and Zimbra spell
- Enter 'N' for installing Zimbra-memcached and Zimbra-proxy
- Enter 'Y' for system will be modified warning. The setup should now install various rpms for Zimbra.
- If FQDN is different from domain name (eg FQDN zimbra.example.com, domain example.com) then Zimbra will give error that MX record cannot be resolved. Enter 'Yes' for change domain name.
- Enter new correct domain name such as example.com
- This would bring setup to Zimbra configuration menu. Only admin password needs to be configured rest all can be left as it is for basic setup. To configure admin password use menu option '3' followed by '4'. Set appropriate admin password.
- Press 'r' to return to previous menu and then 'a' for applying configuration
- Enter 'Yes' for saving configuration to a file
- Press enter for file path option and continue with whatever file name has been suggested
- Enter 'Yes' for system will be modified warning
- Now setup should take really long time for various installations and configurations
- Enter 'No' for notify Zimbra of installation for test machines. In case of production machines you can optionally enter 'Yes'.
- Press return to exit on 'Press return to exit' message :)
- Now zimbra admin interface can be accessed at https://<FQDN>:7071/ and mail can be checked using web interface at https://<FQDN>/
Relaying mails through other MTA
If test system does not has access to internet then mails can be relayed through other MTA which has access to Internet (Similar to SMART_HOST for sendmail). To configure relay MTA
- Login in to zimbra administrative console at https://<IP>:7071/ with user admin
- Go to Configuration -> Global Settings -> MTA
- Set relay MTA for external delivery appropriately.
Stopping and starting zimbra
- Login as root
- Use 'su - zimbra'
- Use 'zmcontrol' command to check zimbra status, start or stop it.
Firewall configuration
Zimbra firewall configuration can be learned from http://wiki.zimbra.com/index.php?title=Firewall_Configuration
Changing Zimbra http port
We can change zimbra http port using:
- su - zimbra
- zmprov ms server.domain.tld zimbraMailPort <http_port> zimbraMailSSLPort <SSL_port>
- zmmailboxctld restart
Note:
- This does not seems to work for HTTPS port
Backup
Zimbra backup and restore is discussed at http://wiki.zimbra.com/wiki/Backing_up_and_restoring_Zimbra_%28Open_Source_Version%29#Another_option
Debugging
Ldap start issue
If ldap server does not starts and gives this error
Failed to start slapd. Attempting debug start to determine error. bdb_db_close: database "": txn_checkpoint failed: Invalid argument (22). backend_startup_one (type=hdb, suffix=""): bi_db_open failed! (22) bdb_db_close: database "": alock_close failed
First verify that domain to IP mapping in /etc/hosts file is correct. If domain to IP mapping in /etc/hosts is not correct then Zimbra will not be able to start listening socket on incorrect IP and hence ldap may fail to start. Also zimbra must be stopped before changing machine IP. Then IP should be changed on system and in /etc/hosts. Then zimbra should be started.
If problem is not due to incorrect IP then:
- Login as root
- Go to dir '/opt/zimbra/data/ldap/hdb/db'
- Use command '/opt/zimbra/bdb/bin/db_recover'
Fixing permisssions on zimbra files
If permissions on zimbra directory could be wrong then following can be use to fix permissions:
chown -R zimbra:zimbra /opt/zimbra /opt/zimbra/libexec/zmfixperms -verbose -extended
Miscellaneous
If you want to store zimbra on mooseFS then storing entire /opt/zimbra on mooseFS will not work. Specially keeping /opt/zimbra/data on moosefs does not works. Hence directories /opt/zimbra/db, /opt/zimbra/index and /opt/zimbra/store can be shifted to other filesystems to preserve space / improve filesystem performance.
Tutorials and documentation related to zimbra are available at http://www.zimbra.com/downloads/os-downloads.html
<yambe:breadcrumb>Zimbra server configuration|Zimbra</yambe:breadcrumb>