Chef cookbook for a full posty mail server installation with Postfix, Dovecot, Roundcube, ClamAV, SpamAssassin and Posty.
The following external cookbooks are used:
Additionally the following cookbooks must be present due to dependencies, but aren't executed:
All dependencies are automatically resolved when using Berkshelf
The following platforms are currently supported and tested:
- Ubuntu 12.04
- Ubuntu 14.04
- Debian 7.4
Before starting the installation of the posty system it is recommended that you
configure your own passwords (and other settings if you wish) in
config/posty.json
This recipe can be used in multiple ways. The Vagrant method is recommended for inexperienced Chef users.
Warning: This recipe installs a complete mail server with many individual programms, thus changes a lot of system files. Using it on an unconfigured system is recommended.
This recipe's original purpose is to provide an easy way to try out the posty-api. For usage in a production environment a manual customization/ review of the configuration is recommended.
Just include posty
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[posty]"
]
}
For the development of this cookbook and to allow easy testing of the posty system, an automated process to set up a virtual test/development machine is provided.
- VirtualBox
- Vagrant 1.6+
- Vagrant Omnibus
- Vagrant Berkshelf 2.0.1+
- Download the latest Vagrant version from the project page
dpkg -i vagrant*.deb; apt-get install -f
or install the deb via Ubuntu Software Centervagrant plugin install vagrant-omnibus
to install Omnibusvagrant plugin install vagrant-berkshelf --plugin-version '>= 2.0.1'
to install Berkshelf
git clone https://github.com/posty/posty_chef
cd posty_chef
vagrant up
This sets up a virtual machine host posty-chef based on Ubuntu 14.04 providing all services mentioned above.
The IP address assigned to the host is 192.168.254.10 which can be changed by adapting the parameter "config.vm.network" in the Vagrantfile accordingly.
The setup takes a couple of minutes. After the installation has finished
you can login to the machine by running: vagrant ssh
The posty_api and the roundcube webmailer are reachable via HTTP and HTTPS
under the configured IP. The mail services are
reachable under the same IP.
See LICENSE file.