Here is the Source code repository,
please fork and contribute
http://github.com/computerlyrik/chef-zarafa
Having a eMail Server with exchange (mail/contacts/calendar) Support automatically setup for you?
Working with mobile devices and want your 'own Server' for you or your business?
Here we go.
- Automatic download and installation of zarafa
- Automatic setup of z-sync (exchange plugin)
- Using TLS for your connection encrytpion
- Authenticating and delivering mail into zarafa mailboxes
- Syncing your Android/i/Windows Phone with ActiveSync
- eMail Push
- Receive and send eMail via imap
- Have two rich Webinterfaces to login wherever, whenever you want
See the Zarafa documentation for Hardware req
The recipes itself currently support Debian 7.5
- database and mysql
for setting up the mysql DB - apache2
our favourite webserver - postfix
our favourite mailserver - certificate
Managing your certificate for https/TLS via a databag.
http://community.opscode.com/cookbooks/certificate - openssl
- ark
Some pre-settings have been made. Please see attributes ruby files for reference.
Example
default['zarafa']['catchall_user'] = "mydeliverymail@mydomain.com"
default['zarafa']['certificate_databag_id'] = 'mySecureDataBag'
Example, expecting to run on myhostname.example.com
default['zarafa']['additional_domains'] = ['example.net', 'example.org']
Combines all cookbooks to setup a server
Set up and configure Apache2 Webserver
Make some basic configuration for the postfix Server.
Calls sub-recipies.
Configure postfix to read Mailboxses from MySQL and deliver them via lmtp[1[1].
By default [2] server installation is configured to only deliver to unix system users.
[1] http://doc.zarafa.com/7.1/Administrator_Manual/en-US/html/_MTAIntegration.html#_configure_zcp_postfix_integration_with_the_db_plugin
[2] http://www.zarafa.com/wiki/index.php/Installing_Zarafa_from_packages
Sets up an alias-DB for postfix to have the configured CatchAll user for the all domains we configured
By default, the postfix server takes all eMail via port 25. If the Server is directly connected to the internet you want to secure this connection only for logged-in users.
This recipe configures sasl to authenticate via the rimap protocol.
http://www.zarafa.com/wiki/index.php/SMTP-Auth_for_IMAP_users
Set up the Database for zarafa
Installs the zarafa server exactly as described here:
http://www.zarafa.com/wiki/index.php/Installing_Zarafa_from_packages
Enables TLS on zarafa-gateway. This is used for port 145 (imap) TLS connections.
Install and activate ActiveSync on Zarafa Server
For more see http://www.zarafa.com/content/mobility
- set all attributes mentioned above
- run
zarafa::default
- login to server and do
sudo /usr/bin/zarafa-admin -c test -p password -e test@example.com -f "Zarafa Test"
see metadata.rb
- fix vmail (mailbox transport or virtual boxes)