summaryrefslogtreecommitdiff
path: root/manifests/system.pp
blob: e48f52e12bc014a70b586639e2ff7d347b129a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
class mail::system {
  $postfix_smtp_listen     = "all"
  $postfix_use_amavisd     = "yes"
  $postfix_use_dovecot_lda = "yes"
  $postfix_use_schleuder   = "yes"
  $postfix_use_sympa       = "yes"
  $postfix_mydestination   = '$myhostname, localhost.$mydomain, localhost'

  case $postfix_mynetworks {
    '': { $postfix_mynetworks = "127.0.0.0/8" }
  }

  # Module requirements
  include postfix
  include ssl::mail

  # Common subsystems
  include mail::packages
  include mail::base
  include mail::tls
  include mail::amavisd
  include mail::header_checks
  include mail::clamav

  # Virtual mail system
  case $mail_virtual {
    true: {
      include mail::virtual
    }
    default: {
      include mail::regular
    }
  }

  # Sympa mailing list manager
  case $mail_sympa {
    true: {
      include mail::sympa
    }
    default: {
      include mail::regexps
    }
  }

  # Schleuder mailing list manager
  case $mail_schleuder {
    true: {
      include mail::schleuder
    }
  }
}