Skip to content

soluvas/puppet-postfix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postfix Puppet module

This module will help install and configure postfix.

A couple of classes will preconfigure postfix for common needs.

Example


  include postfix

  postfix::config { "relay_domains": value  => "localhost host.foo.com" }

Virtual Domains support with Dovecot transport


  # Virtual Domains Linux user & group
  group { vmail: }
  user { vmail:
    gid        => 'vmail',
    home       => '/var/vmail',
    managehome => true,
  }

  # Postfix with Dovecot Virtual Domains support
  class { postfix:
    dovecot_enabled => true,
    dovecot_user    => 'vmail',
    dovecot_group   => 'vmail',
    require         => User['vmail'],
  }
  postfix::config {
    virtual_mailbox_domains: value => 'member.berbatik.com, shop.berbatik.com';
    virtual_transport:       value => 'dovecot';
  }

  # Dovecot
  class { dovecot:
    auth_includes    => ['system', 'ldap'],
    auth_userdb_user => 'vmail',
    require          => User['vmail'],
  }
  include dovecot::postfix
  class { dovecot::ldap:
    hosts          => 'localhost:10389',
    dn             => 'uid=admin,ou=system',
    dnpass         => 'secret',
    tls            => 'no',
    auth_bind      => 'no',
    ldap_version   => 3,
    base           => 'dc=berbatik,dc=com',
    ldap_scope     => 'subtree',
    user_attrs     => '=home=/var/mail/%d/%n,=uid=vmail,=gid=vmail',
    user_filter    => '(virtualMail=%u)',
    pass_attrs     => 'virtualMail=user,userPassword=password',
    pass_filter    => '(virtualMail=%u)',
    iterate_attrs  => 'virtualMail=user',
    iterate_filter => '(virtualMail=*)', 
  }

Dovecot module is at https://github.com/soluvas/puppet-dovecot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Puppet 53.8%
  • HTML 46.1%
  • Pascal 0.1%