]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Postgrey port configuration depends on distro version
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 16 Feb 2011 18:01:14 +0000 (16:01 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 16 Feb 2011 18:01:14 +0000 (16:01 -0200)
manifests/base.pp

index 727a38bd1a7ead5524af8e728377b61e1e5160c5..5a4cdc5b48551be77897c90019cbc7d73adf1f66 100644 (file)
@@ -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,