aboutsummaryrefslogtreecommitdiff
path: root/manifests/mail.pp
blob: cf88d70bc97647c1d5bf3f48d88d9f1a9df0911e (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
class nodo::mail {
  # Class for mail nodes
  $mail_host             = true
  $postfix_relayhost     = "$domain"
  $postfix_smtp_listen   = "$ipaddress"
  $postfix_mydestination = "\$myorigin"

  include nodo::vserver
  include postfix::mta
  include database

  # The needed packages
  package { [ 'postfix-mysql', 'dovecot-imapd' ]:
    ensure => installed,
  }

  package { [ 'libauthen-sasl-cyrus-perl' 'libpam-mysql', 'libsasl2-modules', 'sasl2-bin', 
              'libsasl2-modules-sql',     'libgsasl7',    'libsasl2-modules-sql' ]:
    ensure => installed,
  }

  package { [ 'postgrey', 'amavisd-new', 'spamassassin', 'spamc' ]:
    ensure => installed,
  }

  package { [ 'clamav-base', 'clamav-daemon', 'clamav-freshclam' ]:
    ensure => installed,
  }

  package { [ 'squirrelmail', 'squirrelmail-secure-login', 'squirrelmail-locales' ]:
    ensure => installed,
  } 

  # Postfix configuration
  postfix::config { "myhostname": value  => "$fqdn" }
}