aboutsummaryrefslogtreecommitdiff
path: root/manifests/mail.pp
blob: 22428073b8beb0f5a36675b0edd43a172175c12e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class nodo::mail {
  # Class for mail nodes
  $mail_host             = true
  $postfix_relayhost     = "$domain"
  $postfix_smtp_listen   = "$ip"
  $postfix_mydestination = "\$myorigin"

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

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

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

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