summaryrefslogtreecommitdiff
path: root/puppet/modules/site_shorewall/manifests/mx.pp
blob: 332f164e96110eb1fc5574a1b1d4b9fd1998c95d (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
class site_shorewall::mx {

  include site_shorewall::defaults

  $smtpd_ports = '25,465,587'

  # define macro for incoming services
  file { '/etc/shorewall/macro.leap_mx':
    content => "PARAM   -       -       tcp    ${smtpd_ports} ",
    notify  => Service['shorewall'],
    require => Package['shorewall']
  }


  shorewall::rule {
      'net2fw-mx':
        source      => 'net',
        destination => '$FW',
        action      => 'leap_mx(ACCEPT)',
        order       => 200;
  }

  include site_shorewall::service::smtp
}