init.pp 1.11 KB
Newer Older
1
2
3
4
5
6
7
#
# == Class: postfix
#
# This class provides a basic setup of postfix with local and remote
# delivery and an SMTP server listening on the loopback interface.
#
# Parameters:
8
9
10
# - *$postfix_smtp_listen*: address on which the smtp service will listen to.
#      defaults to 127.0.0.1
# - *$root_mail_recipient*: who will recieve root's emails. defaults to 'nobody'
11
12
13
#
# Example usage:
#
14
15
#   node 'toto.example.com' {
#     $postfix_smtp_listen = '192.168.1.10'
16
17
18
#     include postfix
#   }
#
Raphaël Pinson's avatar
Linting    
Raphaël Pinson committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class postfix (
  $smtp_listen = '127.0.0.1',         # postfix_smtp_listen
  $root_mail_recipient = 'nobody',    # root_mail_recipient
  $use_amavisd = 'no',                # postfix_use_amavisd
  $use_dovecot_lda = 'no',            # postfix_use_dovecot_lda
  $use_schleuder = 'no',              # postfix_use_schleuder
  $use_sympa = 'no',                  # postfix_use_sympa
  $mail_user = 'vmail',               # postfix_mail_user
  $myorigin = $::fqdn,
  $inet_interfaces = 'localhost',
) inherits postfix::params {

  class { 'postfix::packages': } ->
  class { 'postfix::files': } ~>
  class { 'postfix::service': } ->
  Class['postfix']
35
}