mailserver
Version information
This version is compatible with:
- Puppet >=2.7.20 <4.0.0
- Ubuntu ,
Start using this module
Add this module to your Puppetfile:
mod 'mjhas-mailserver', '1.0.1'
Learn more about managing modules with a PuppetfileDocumentation
mailserver
This Module provides a mailserver with postfix as SMTP-Server and dovecot as IMAP Server with virtual configuration stored in a postgres database including virus scanning with clamav. Patches and Feature Requests are welcome and can be handed in at Github.
Dependencies:
- postfix
- dovecot
- amavis
- clamav
- postgresql
Prerequisites:
You need to install augeas-lenses and libruby-augeas beforehand, otherwise the installation will just fail because most of the configuration is done using augeas.
Simplest Configuration:
class { 'mailserver':
ssl_key_file =>'/etc/ssl/private/ssl-cert-snakeoil.key',
ssl_cert_file =>'/etc/ssl/certs/ssl-cert-snakeoil.pem',
dbpassword =>'password',
dbuser =>'username',
domains => ["$::fqdn"],
users => { "root@${::fqdn}" => {
password=> 'wt3T3FHETdggQ', quota => '100000' } } }
Configuration with forwards
class { 'mailserver':
ssl_key_file =>'/etc/ssl/private/ssl-cert-snakeoil.key',
ssl_cert_file =>'/etc/ssl/certs/ssl-cert-snakeoil.pem',
dbpassword =>'password',
dbuser =>'username',
domains => ["$::fqdn"],
users => { "root@${::fqdn}" => {
password=> 'wt3T3FHETdggQ', quota => '100000' } }, forwards => { "postmaster@${::fqdn}" => { destination => "root@${::fqdn}" }, "admin@${::fqdn}" => { destination => ["root@${::fqdn}","post@${::fqdn}"] } } }
Passwords have to be encrypted beforehand, use the following: perl -e 'print crypt('password','salt')."\n"'
Contributors
Dependencies
- mjhas/amavis (1.0.0)
- mjhas/clamav (1.0.0)
- mjhas/dovecot (1.0.1)
- mjhas/postfix (1.0.0)
- puppetlabs/postgresql (>=3.0.0)
- mjhas-amavis (1.0.0)
- mjhas-clamav (1.0.0)
- mjhas-dovecot (1.0.1)
- mjhas-postfix (1.0.0)
- puppetlabs-postgresql (>=3.0.0)
Copyright 2013 Michael Haslgrübler Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.