summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/base.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index 727a38b..5a4cdc5 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -14,9 +14,15 @@ class mail::base {
"recipient_delimiter": value => '+';
}
+ # Postgrey port configuration
+ $postgrey_port = $lsbdistcodename ? {
+ 'lenny' => '60000',
+ 'default' => '10023',
+ }
+
# Recipient restrictions
postfix::config { "smtpd_recipient_restrictions":
- value => 'permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client psbl.surriel.com, check_policy_service inet:127.0.0.1:60000' }
+ value => 'permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client psbl.surriel.com, check_policy_service inet:127.0.0.1:$postgrey_port' }
postfix::hash { "/etc/postfix/virtual":
ensure => present,