aboutsummaryrefslogtreecommitdiff
path: root/manifests/rules/managesieve.pp
blob: ce1c321fb09aec64bbfa4c9c96e06936d16d1b4b (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
# manage managesieve ports
class shorewall::rules::managesieve(
  $legacy_port = false,
) {
  shorewall::rule {
    'net-me-tcp_managesieve':
      source          =>      'net',
      destination     =>      '$FW',
      proto           =>      'tcp',
      destinationport =>      '4190',
      order           =>      260,
      action          =>      'ACCEPT';
  }
  if $legacy_port {
    shorewall::rule {
      'net-me-tcp_managesieve_legacy':
        source          =>      'net',
        destination     =>      '$FW',
        proto           =>      'tcp',
        destinationport =>      '2000',
        order           =>      260,
        action          =>      'ACCEPT';
    }
  }
}