summaryrefslogtreecommitdiff
path: root/manifests/rules/managesieve.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-06-13 20:37:21 +0200
committervarac <varacanero@zeromail.org>2016-06-13 20:37:21 +0200
commit06e89ed3486916ae12186e46b8ec59c8c7c79142 (patch)
treeb82b60b4390763c7d805a37e40b67319641671c3 /manifests/rules/managesieve.pp
parent34fbca68d478c2edd5f13e74245cf675b5b53303 (diff)
parentf560a426885f0982cae39495321222158a69e895 (diff)
Merge remote-tracking branch 'shared/master' into leap_master
Diffstat (limited to 'manifests/rules/managesieve.pp')
-rw-r--r--manifests/rules/managesieve.pp30
1 files changed, 22 insertions, 8 deletions
diff --git a/manifests/rules/managesieve.pp b/manifests/rules/managesieve.pp
index 63fafcb..ce1c321 100644
--- a/manifests/rules/managesieve.pp
+++ b/manifests/rules/managesieve.pp
@@ -1,11 +1,25 @@
-class shorewall::rules::managesieve {
+# 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':
- source => 'net',
- destination => '$FW',
- proto => 'tcp',
- destinationport => '2000',
- order => 260,
- action => 'ACCEPT';
+ 'net-me-tcp_managesieve_legacy':
+ source => 'net',
+ destination => '$FW',
+ proto => 'tcp',
+ destinationport => '2000',
+ order => 260,
+ action => 'ACCEPT';
}
+ }
}