User Tools

Site Tools


internet:mail:zarafa

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
internet:mail:zarafa [2014/03/21 17:05]
gcooper
— (current)
Line 1: Line 1:
-====== Zarafa Collaboration Platform ====== 
- 
-Editions: http://www.zarafa.com/content/editions 
- 
-Web Client: http://www.zarafa.com/content/webapp 
- 
-Mobility: http://www.zarafa.com/content/mobility 
- 
-http://www.unixmen.com/install-zarafa-centos-6-5-alternative-microsoft-exchange-mail-server/ 
- 
-http://wiki.centos.org/OzydeJong/CentOS6_ZarafaServer7 
- 
-http://wiki.centos.org/OzydeJong/CentOS6_ZarafaServer7_Z-push1 
- 
-===== CentOS 6.5 ===== 
- 
-Perform a **[[computing:linux:minimal_centos_install|Minimal Install]]**. 
- 
-Change the SSH port and firewall. 
- 
-Install some prerequisites, start some services and reboot: 
- 
-<file> 
-yum install file libxslt poppler-utils unzip sysstat mysql-server mysql php php-cli w3m httpd \ 
-vim-enhanced wget libicu boost man postfix telnet cyrus-sasl-plain 
- 
-chkconfig postfix on 
-chkconfig saslauthd on 
-chkconfig mysqld on 
-chkconfig httpd on 
- 
-reboot 
-</file> 
- 
-Secure MySQL: 
- 
-<file> 
-/usr/bin/mysql_secure_installation 
-</file> 
- 
-selinux: 
- 
-http://www.zarafa.com/wiki/index.php/Zarafa_Selinux_policy 
- 
-<file> 
-setsebool httpd_can_network_connect=1 
-</file> 
- 
-===== Install ZCP ===== 
- 
-:!: The community edition is available in the [[computing:linux:epel|EPEL Repo]].  Use that for the community edition. 
- 
-==== Get Trial Edition ==== 
- 
-Download then copy the install tarball to the Zarafa server: 
- 
-<file> 
-scp -vP 2222 Desktop/zcp-7.1.8-44004-rhel-6-x86_64-evaluation.tar.gz root@zarafa.mydomain.com:~ 
-</file> 
- 
-==== Install Community Edition ==== 
- 
-:!: The community edition is easily installed with packages from the EPEL repo, but you must create the MySQL database yourself. 
- 
-Configure the [[computing:linux:epel|EPEL Repo]]. 
- 
-<file> 
-yum install zarafa zarafa-webaccess 
-</file> 
- 
-==== Install ==== 
- 
-Extract the tarball: 
- 
-<file> 
-tar -xzvf zcp-7.1.8-44004-rhel-6-x86_64-free.tar.gz 
-cd zcp-7.1.8-44004-rhel-6-x86_64-free 
-</file> 
- 
-Install a prerequisite and launch the installer: 
- 
-<file> 
-rpm -ivh catdoc* 
- 
-./install.sh 
-</file> 
- 
-==== Localization ==== 
- 
-<file> 
-vim /etc/sysconfig/zarafa 
- 
-ZARAFA_LOCALE="en_US" 
-ZARAFA_USERSCRIPT_LOCALE="en_US" 
-</file>  
- 
-==== Attachment Storage ==== 
- 
-<file> 
-vim /etc/zarafa/server.cfg 
- 
-attachment_compression  = 9 
-</file> 
- 
-If you want to store attachments in the MySQL database instead: 
- 
-<file> 
-attachment_storage = database 
-</file> 
- 
-==== Restart Zarafa ==== 
- 
-<file> 
-service zarafa-server restart 
-</file> 
- 
-===== Create Admin User ===== 
- 
-<file> 
-zarafa-admin -c admin -P -f "System Administrator" -e admin@yourdomain.tld -a 2 
-</file> 
- 
-:!: 'a' is the admin level, (0) = user, (1) = admin, (2) = organisation admin 
- 
-You can check whether this worked with 
- 
-<file> 
-zarafa-admin -l 
- 
-zarafa-admin --details <username> 
-</file> 
- 
-===== Postfix ===== 
- 
-:!: Users must have system accounts and Zarafa accounts. 
- 
-<file> 
-postconf -e "myhostname = zarafa.virtualarchitects.com" 
-postconf -e 'mydomain = virtualarchitects.com' 
-postconf -e 'myorigin = $mydomain' 
-postconf -e 'inet_interfaces = all' 
-postconf -e 'inet_protocols = all' 
-postconf -e 'mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain' 
-postconf -e 'mynetworks = 192.168.0.0/24, 127.0.0.0/8, 10.10.0.0/16, 198.167.188.32/27, 198.167.189.16/28' 
-postconf -e 'home_mailbox = Maildir/' 
-postconf -e 'mailbox_command = /usr/bin/zarafa-dagent "$USER"' 
-postconf -e 'smtpd_sasl_authenticated_header = yes' 
-# SSL Related Entries 
-postconf -e 'smtpd_tls_auth_only = yes' 
-postconf -e 'smtpd_tls_security_level = may' 
-postconf -e 'smtpd_tls_key_file = /etc/zarafa/ssl/zarafa.key' 
-postconf -e 'smtpd_tls_cert_file = /etc/zarafa/ssl/zarafa.crt' 
-postconf -e 'smtpd_tls_received_header = yes' 
-postconf -e 'smtpd_tls_session_cache_timeout = 3600s' 
-postconf -e 'tls_random_source = dev:/dev/urandom' 
-postconf -e 'smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination' 
-postconf -e 'smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated' 
-postconf -e 'smtpd_sasl_auth_enable = yes' 
-postconf -e 'broken_sasl_auth_clients = yes' 
-</file> 
- 
-Uncomment the ''submission'' and ''smtps'' sections: 
- 
-<file> 
-vim /etc/postfix/master.cf 
-</file> 
- 
-Restart Postfix and check the configuration: 
- 
-<file> 
-service postfix restart 
- 
-postconf -n 
-</file> 
- 
-===== SSL Support ===== 
- 
-https://forums.zarafa.com/showthread.php?7786-SASL-and-postfix-TLS-with-centos-6 
- 
-https://www.linux-answered.com/2012/04/25/enable-secure-imap-and-pop3-on-zarafa/ 
- 
-<file> 
-vim /etc/sysconfig/saslauthd 
- 
-SOCKETDIR=/var/run/saslauthd 
-MECH=rimap 
-FLAGS="-c -r -O 127.0.0.1" 
-</file> 
- 
-Generate a private key: 
- 
-<file> 
-mkdir /etc/zarafa/ssl/ 
-cd /etc/zarafa/ssl/ 
-openssl genrsa -out zarafa.key 1024 
-</file> 
- 
-Generate a certificate (valid for 10 years): 
- 
-<file> 
-openssl req -new -x509 -key zarafa.key -out zarafa.crt -days 3650 
-</file> 
- 
-Edit Zarafa ''gateway.cfg'': 
- 
-<file> 
-vim /etc/zarafa/gateway.cfg 
- 
-# File with RSA key for SSL 
-ssl_private_key_file    =       /etc/zarafa/ssl/mykey.pem 
- 
-#File with certificate for SSL 
-ssl_certificate_file    =       /etc/zarafa/ssl/cacert.pem 
-    
-# enable/disable POP3, and POP3 listen port 
-pop3_enable           no 
-pop3_port             110 
- 
-# enable/disable Secure POP3, and Secure POP3 listen port 
-pop3s_enable    =       yes 
-pop3s_port      =       995 
- 
-# enable/disable IMAP, and IMAP listen port 
-imap_enable           no 
-imap_port             143 
- 
-# enable/disable Secure IMAP, and Secure IMAP listen port 
-imaps_enable    =       yes 
-imaps_port      =       993 
-</file> 
- 
-===== Z-Push (ActiveSync) ===== 
- 
-===== Web Access ===== 
- 
-==== Web Access ==== 
- 
-Web Access is the basic web interface. 
- 
-<file> 
-rm /etc/httpd/conf.d/welcome.conf 
-</file> 
- 
-<file> 
-vim /etc/httpd/conf/httpd.conf 
- 
-DocumentRoot "/usr/share/zarafa-webaccess" 
-</file> 
- 
-<file> 
-service httpd restart 
-</file> 
- 
-==== Web App ==== 
- 
-http://www.zarafa.com/wiki/index.php/Securing_Zarafa_WebAccess_with_SSL 
- 
-Web App is the advanced HTML5 web interface and it requires SSL. 
- 
  
internet/mail/zarafa.1395443151.txt.gz · Last modified: 2014/03/21 17:05 by gcooper