]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
Switching to parametrized classes
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Jan 2013 16:03:24 +0000 (14:03 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Jan 2013 16:03:24 +0000 (14:03 -0200)
23 files changed:
README
manifests/config.pp
manifests/hash.pp
manifests/header_checks_snippet.pp
manifests/init.pp
manifests/mailalias.pp
manifests/mailman.pp
manifests/mta.pp
manifests/satellite.pp
manifests/tlspolicy.pp
manifests/tlspolicy_snippet.pp
manifests/transport.pp
manifests/transport_regexp.pp
manifests/transport_regexp_snippet.pp
manifests/virtual.pp
manifests/virtual_regexp.pp
manifests/virtual_regexp_snippet.pp
templates/master.cf.debian-etch.erb
templates/master.cf.debian-lenny.erb
templates/master.cf.debian-sid.erb
templates/master.cf.debian-squeeze.erb
templates/master.cf.debian-wheezy.erb
templates/master.cf.redhat5.erb

diff --git a/README b/README
index b03c4e6de8953f85147d3de5dbf9d00dcde1d884..a3518ece9db5f183922960d5878f97fa1ae2f3e2 100644 (file)
--- a/README
+++ b/README
@@ -8,31 +8,37 @@ This module needs:
 
 - the concat module: git://labs.riseup.net/shared-concat
 
+!! Upgrade Notice (01/2013) !!
+
+This module now uses parameterized classes, where it used global variables
+before. So please whatch out before pulling, you need to change the 
+class declarations in your manifest !
+
 Config
 ------
-- set $postfix_use_amavisd="yes" to include postfix::amavis
-- set $postfix_anon_sasl="yes" to hide the originating IP in email
+- set $use_amavisd="yes" to include postfix::amavis
+- set $anon_sasl="yes" to hide the originating IP in email
   relayed for an authenticated SASL client; this needs Postfix
   2.3 or later to work; beware! Postfix logs the header replacement
   has been done, which means that you are storing this information,
   unless you are anonymizing your logs.
-- set $postfix_manage_header_checks="yes" to manage header checks (see
+- set $manage_header_checks="yes" to manage header checks (see
   postfix::header_checks for details)
-- set $postfix_manage_transport_regexp="yes" to manage header checks (see
+- set $manage_transport_regexp="yes" to manage header checks (see
   postfix::transport_regexp for details)
-- set $postfix_manage_virtual_regexp="yes" to manage header checks (see
+- set $manage_virtual_regexp="yes" to manage header checks (see
   postfix::virtual_regexp for details)
-- set $postfix_manage_tls_policy="yes" to manage TLS policy (see
+- set $manage_tls_policy="yes" to manage TLS policy (see
   postfix::tlspolicy for details)
 - by default, postfix will bind to all interfaces, but sometimes you don't want
-  that. To bind to specific interfaces, use the $postfix_inet_interfaces
+  that. To bind to specific interfaces, use the $inet_interfaces
   variable and set it to exactly what would be in the main.cf file.
 - some hosts have weird-looking host names (dedicated servers and VPSes). To
-  set the server's domain of origin, set the $postfix_myorigin value
+  set the server's domain of origin, set the $myorigin value
 
 == Example:
 
-  include postfix
+  class { 'postfix': }
 
   postfix::config { "relay_domains": value  => "localhost host.foo.com" }
 
index 8e203a666f78a0c2f2a08b337ce83292807673d1..ce7af9e46b53f07839a6827b0fb01edbb69466c3 100644 (file)
@@ -18,7 +18,7 @@ Example usage:
 
   node "toto.example.com" {
 
-    include postfix
+    class { 'postfix': }
 
     postfix::config {
       "smtp_use_tls"            => "yes";
index 6e2012f515cad3e955aee529166948dd0f83eef4..006f8815ada1f116dbf9d9a4aa68e5866568b90a 100644 (file)
@@ -17,7 +17,7 @@ Example usage:
 
   node "toto.example.com" {
 
-    include postfix
+    class { 'postfix': }
 
     postfix::hash { "/etc/postfix/virtual":
       ensure => present,
index 91d7501880026d8cd07ac976cc4a636bb05fbe88..05929a339e37dd79c6df020d9648b4411a418db6 100644 (file)
@@ -14,7 +14,7 @@ Requires:
 Example usage:
 
   node "toto.example.com" {
-    include postfix
+    class { 'postfix': }
     postfix::header_checks_snippet {
       'wrong_date': content => 'FIXME';
       'bla':        source => 'puppet:///files/etc/postfix/header_checks.d/bla';
index 5b04a0fb01aae53a8041a12e4db95a8c9f2b3575..20b04f462540a349442a7bf0a55dc121b9d37b3a 100644 (file)
@@ -5,17 +5,55 @@
 # delivery and an SMTP server listening on the loopback interface.
 #
 # Parameters:
-# - *$postfix_smtp_listen*: address on which the smtp service will listen to. defaults to 127.0.0.1
+# - *$smtp_listen*: address on which the smtp service will listen to. defaults to 127.0.0.1
 # - *$root_mail_recipient*: who will recieve root's emails. defaults to "nobody"
+# - *$anon_sasl*: set $anon_sasl="yes" to hide the originating IP in email
+# - *$manage_header_checks*: manage header checks
+# - *$manage_tls_policy*: manage tls policy
+# - *$manage_transport_regexp*: manage transport regexps
+# - *$manage_virtual_regexp*: manage virtual regexps
+# - *$tls_fingerprint_digest*: fingerprint digest for tls policy class
+# - *$use_amavisd*: set to "yes" to configure amavis
+# - *$use_dovecot_lda*: include dovecot declaration at master.cf
+# - *$use_schleuder*: whether to include schleuder portion at master.cf
+# - *$use_sympa*: whether to include sympa portion at master.cf
+# - *$use_firma*: whether to include firma portion at master.cf
+# - *$use_mlmmj*: whether to include mlmmj portion at master.cf
+# - *$use_submission*: set to "yes" to enable submission section at master.cf
+# - *$use_smtps*: set to "yes" to enable smtps section at master.cf
+# - *$mastercf_tail*: set this for additional content to be added at the end of master.cf
+# - *$inet_interfaces*: which inet interface postfix should listen on
+# - *$myorigin*: sets postfix $myorigin configuration
 #
 # Example usage:
 #
 #   node "toto.example.com" {
-#     $postfix_smtp_listen = "192.168.1.10"
-#     include postfix
+#     class { 'postfix':
+#       smtp_listen => "192.168.1.10"
+#     }
 #   }
 #
-class postfix {
+class postfix(
+  $smtp_listen             = "127.0.0.1",
+  $root_mail_recipient     = "nobody",
+  $anon_sasl               = "no",
+  $manage_header_checks    = "no",
+  $manage_tls_policy       = "no",
+  $manage_transport_regexp = "no",
+  $manage_virtual_regexp   = "no",
+  $tls_fingerprint_digest  = 'sha1'
+  $use_amavisd             = "no",
+  $use_dovecot_lda         = "no",
+  $use_schleuder           = "no",
+  $use_sympa               = "no",
+  $use_firma               = "no",
+  $use_mlmmj               = "no",
+  $use_submission          = "no",
+  $use_smtps               = "no",
+  $mastercf_tail           = "",
+  $inet_interfaces         = 'all',
+  $myorigin                = $::fqdn
+) {
 
   # selinux labels differ from one distribution to another
   case $::operatingsystem {
@@ -33,65 +71,30 @@ class postfix {
     }
   }
 
-  # Default value for various options
-  case $postfix_smtp_listen {
-    "": { $postfix_smtp_listen = "127.0.0.1" }
-  }
-  case $root_mail_recipient {
-    "":   { $root_mail_recipient = "nobody" }
-  }
-  case $postfix_anon_sasl {
-    "":    { $postfix_anon_sasl = "no" }
-  }
-  case $postfix_manage_header_checks {
-    "":   { $postfix_manage_header_checks = "no" }
-  }
-  case $postfix_manage_tls_policy {
-    "":   { $postfix_manage_tls_policy = "no" }
-  }
-  case $postfix_use_amavisd {
-    "":   { $postfix_use_amavisd = "no" }
-  }
-  case $postfix_use_dovecot_lda {
-    "":   { $postfix_use_dovecot_lda = "no" }
-  }
-  case $postfix_use_schleuder {
-    "":   { $postfix_use_schleuder = "no" }
-  }
-  case $postfix_use_sympa {
-    "":   { $postfix_use_sympa = "no" }
-  }
-  case $postfix_mastercf_tail {
-    "":   { $postfix_mastercf_tail = "" }
-  }
-  case $postfix_inet_interfaces {
-    "": { $postfix_inet_interfaces = 'all' }
-  }
-  case $postfix_myorigin {
-    "": { $postfix_myorigin = $fqdn }
-  }
 
   # Bootstrap moduledir
   include common::moduledir
   module_dir{'postfix': }
 
   # Include optional classes
-  if $postfix_anon_sasl == 'yes' {
+  if $anon_sasl == 'yes' {
     include postfix::anonsasl
   }
-  if $postfix_manage_header_checks == 'yes' {
+  if $header_checks == 'yes' {
     include postfix::header_checks
   }
-  if $postfix_manage_tls_policy == 'yes' {
-    include postfix::tlspolicy
+  if $manage_tls_policy == 'yes' {
+    class { 'postfix::tlspolicy':
+      fingerprint_digest => $tls_fingerprint_digest,
+    }
   }
-  if $postfix_use_amavisd == 'yes' {
+  if $use_amavisd == 'yes' {
     include postfix::amavis
   }
-  if $postfix_manage_transport_regexp == 'yes' {
+  if $manage_transport_regexp == 'yes' {
     include postfix::transport_regexp
   }
-  if $postfix_manage_virtual_regexp == 'yes' {
+  if $manage_virtual_regexp == 'yes' {
     include postfix::virtual_regexp
   }
 
@@ -163,9 +166,9 @@ class postfix {
 
   # Default configuration parameters
   postfix::config {
-    "myorigin":   value => "${postfix_myorigin}";
+    "myorigin":   value => "${myorigin}";
     "alias_maps": value => "hash:/etc/aliases";
-    "inet_interfaces": value => "${postfix_inet_interfaces}";
+    "inet_interfaces": value => "${inet_interfaces}";
   }
 
   case $::operatingsystem {
index cd1af507bf61dc93879e6241ab96b15c2e746105..2f239ac33799bc47db6eb3a45651d3e7821cefb4 100644 (file)
@@ -15,7 +15,7 @@ Example usage:
 
   node "toto.example.com" {
 
-    include postfix
+    class { 'postfix': }
 
     postfix::mailalias { "postmaster":
       ensure => present,
index cba0848600fe1cd00dd13e8fe9fbd6ed852a83cc..8c6ee32cdc18770e81853ecbeab0d57ed03917bd 100644 (file)
@@ -4,19 +4,17 @@
 # Configures a basic smtp server, able to work for the mailman mailing-list
 # manager.
 #
-# Parameters:
-# - every global variable which works for class "postfix" will work here.
-#
 # Example usage:
 #
 #   node "toto.example.com" {
 #     include mailman
-#     include postfix::mailman
+#     class { 'postfix::mailman': }
 #   }
 #
 class postfix::mailman {
-  $postfix_smtp_listen = "0.0.0.0"
-  include postfix
+  class { 'postfix':
+    smtp_listen => "0.0.0.0",
+  }
 
   postfix::config {
     "mydestination":                        value => "";
index c36c0bc1cefa47f274a48fc4ed57750fb0ba1b73..f7a865db8725ed047c49240ccf1a369969c1dc7d 100644 (file)
 # - *$postfix_mydestination*
 # - every global variable which works for class "postfix" will work here.
 #
+# Requires:
+# - Class["postfix"]
+#
 # Example usage:
 #
 #   node "toto.example.com" {
-#     $postfix_relayhost = "mail.example.com"
-#     $postfix_smtp_listen = "0.0.0.0"
-#     $postfix_mydestination = "\$myorigin, myapp.example.com"
 #
-#     include postfix::mta
+#     class { 'postfix':
+#       smtp_listen => "0.0.0.0",
+#     }
+#
+#     class { 'postfix::mta':
+#       relayhost     => "mail.example.com",
+#       mydestination => "\$myorigin, myapp.example.com",
+#     }
 #
 #     postfix::transport { "myapp.example.com":
 #       ensure => present,
 #     }
 #   }
 #
-class postfix::mta {
+class postfix::mta(
+  $mydestination = '',
+  $relayhost     = ''
+) {
 
-  #case $postfix_relayhost {
-  #  "":   { fail("Required \$postfix_relayhost variable is not defined.") }
+  #case $relayhost {
+  #  "":   { fail("Required relayhost parameter is not defined.") }
   #}
 
-  case $postfix_mydestination {
+  case $mydestination {
     "": { $postfix_mydestination = "\$myorigin" }
+    default: { $postfix_mydestination = "$mydestination" }
   }
 
-  include postfix
-
   postfix::config {
     "mydestination":                        value => $postfix_mydestination;
     "mynetworks":                           value => "127.0.0.0/8";
-    "relayhost":                            value => $postfix_relayhost;
+    "relayhost":                            value => $relayhost;
     "virtual_alias_maps":                   value => "hash:/etc/postfix/virtual";
     "transport_maps":                       value => "hash:/etc/postfix/transport";
   }
index 99904dde320e84b2d1f98c945f8215e1a665b3d6..63fc466a83d039c6400d4ee1b6cb1c88d2b03b19 100644 (file)
 # Example usage:
 #
 #   node "toto.local.lan" {
-#     $postfix_relayhost = "mail.example.com"
-#     $valid_fqdn = "toto.example.com"
-#     $root_mail_recipient = "the.sysadmin@example.com"
-#
-#     include postfix::satellite
+#     class { 'postfix::satellite':
+#       relayhost           => "mail.example.com"
+#       valid_fqdn          => "toto.example.com"
+#       root_mail_recipient => "the.sysadmin@example.com"
+#     }
 #   }
 #
-class postfix::satellite {
+class postfix::satellite(
+  $relayhost           = '',
+  $valid_fqdn          = '',
+  $root_mail_recipient = ''
+) {
 
   # If $valid_fqdn exists, use it to override $fqdn
   case $valid_fqdn {
@@ -29,7 +33,13 @@ class postfix::satellite {
     default: { $fqdn = "${valid_fqdn}" }
   }
 
-  include postfix::mta
+  class { 'postfix:
+    root_mail_recipient => $root_mail_recipient,
+  }
+
+  class { 'postfix::mta':
+    relayhost => $relayhost,
+  }
 
   postfix::virtual {"@${valid_fqdn}":
     ensure      => present,
index fb7020dafd7d139247dd375118590ca2234f29ae..e1272b9c6acb5a256f7573dc623bac2f1507f3ec 100644 (file)
@@ -5,18 +5,15 @@
 # via postfix::tlspolicy_snippet defines
 #
 # Parameters:
-# - $postfix_tls_fingerprint_digest (defaults to sha1)
+# - $fingerprint_digest (defaults to sha1)
 #
 # Note that this class is useless when used directly.
 # The postfix::tlspolicy_snippet defines takes care of importing
 # it anyway.
 #
-class postfix::tlspolicy {
-
-  # Default value for parameters
-  case $postfix_tls_fingerprint_digest {
-    "": { $postfix_tls_fingerprint_digest = 'sha1' }
-  }
+class postfix::tlspolicy(
+  $fingerprint_digest = 'sha1'
+) {
 
   include common::moduledir
   module_dir{'postfix/tls_policy': }
@@ -37,7 +34,7 @@ class postfix::tlspolicy {
   }
 
   postfix::config {
-    'smtp_tls_fingerprint_digest': value => "$postfix_tls_fingerprint_digest";
+    'smtp_tls_fingerprint_digest': value => "$fingerprint_digest";
   }
 
   postfix::config { 'smtp_tls_policy_maps':
index 701528bca1073f5ed3b651849dc27cf2bd9d6b32..b63f812cb5a2450366c66302568059378844c720 100644 (file)
@@ -16,8 +16,9 @@ Requires:
 Example usage:
 
   node "toto.example.com" {
-    $postfix_manage_tls_policy = yes
-    include postfix
+    class { 'postfix':
+      manage_tls_policy => 'yes',
+    }
     postfix::tlspolicy_snippet {
       'example.com':  value => 'encrypt';
       '.example.com': value => 'encrypt';
index 5ca5554c96c05879d432f7c8769fa8809ffe5b52..90c5468d981f78aa503ba84d3df89028feba9374 100644 (file)
@@ -18,7 +18,7 @@ Example usage:
 
   node "toto.example.com" {
 
-    include postfix
+    class { 'postfix': }
 
     postfix::hash { "/etc/postfix/transport":
       ensure => present,
index 924ae8a77919bc53df4538305d2b268ea5f15e3f..7670d7d11f84c379c73f815eb31536952fd80db0 100644 (file)
@@ -11,8 +11,9 @@
 # Example usage:
 # 
 #   node "toto.example.com" {
-#     $postfix_manage_transport_regexp = yes
-#     include postfix
+#     class { 'postfix':
+#       manage_transport_regexp => 'yes',
+#     }
 #     postfix::config { "transport_maps":
 #       value => "hash:/etc/postfix/transport, regexp:/etc/postfix/transport_regexp",
 #     }
index eb43c373675bb6022123ade4b9270f80b4a0cf8d..2b13ed14f5331ac1e1d8a4c2365beb69ddfa5f7e 100644 (file)
@@ -14,7 +14,7 @@ Requires:
 Example usage:
 
   node "toto.example.com" {
-    include postfix
+    class { 'postfix': }
     postfix::transport_regexp {
       'wrong_date': content => 'FIXME';
       'bla':        source => 'puppet:///files/etc/postfix/transport_regexp.d/bla';
index 8fcd53a63babb0d80cd2939c07d423f0c5433366..d6912a4a549bd68fa5d2525517db5b4c15e36a55 100644 (file)
@@ -18,7 +18,7 @@ Example usage:
 
   node "toto.example.com" {
 
-    include postfix
+    class { 'postfix': }
 
     postfix::hash { "/etc/postfix/virtual":
       ensure => present,
index db41354040dea350ecb1747e1fb798b8fcaa8b6a..ece3117682771cb0f3b3d9e955b0a494cf653fce 100644 (file)
@@ -11,8 +11,9 @@
 # Example usage:
 # 
 #   node "toto.example.com" {
-#     $postfix_manage_virtual_regexp = yes
-#     include postfix
+#     class { 'postfix':
+#       manage_virtual_regexp => 'yes',
+#     }
 #     postfix::config { "virtual_alias_maps":
 #       value => 'hash://postfix/virtual, regexp:/etc/postfix/virtual_regexp',
 #     }
index b4515b48adeb9f768462c9db6ba8cee552dd4a3d..bd9a982d6c723a8a6dcb04c7a741f570c4822f55 100644 (file)
@@ -14,7 +14,7 @@ Requires:
 Example usage:
 
   node "toto.example.com" {
-    include postfix
+    class { 'postfix': }
     postfix::virtual_regexp {
       'wrong_date': content => 'FIXME';
       'bla':        source => 'puppet:///files/etc/postfix/virtual_regexp.d/bla';
index aaea777ab7001d1d418c116c6f87442554dcf4d8..b49a3993ab8efc55ba84f8e40ed7e88f15f85bfe 100644 (file)
@@ -7,14 +7,14 @@
 # service type  private unpriv  chroot  wakeup  maxproc command + args
 #               (yes)   (yes)   (yes)   (never) (100)
 # ==========================================================================
-<% if postfix_smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
-<% else %><%= postfix_smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
-<% if postfix_use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
+<% if smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
+<% else %><%= smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
+<% if use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
   -o smtpd_enforce_tls=yes
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
 <% end %>
-<% if postfix_use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
+<% if use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
   -o smtpd_tls_wrappermode=yes
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
@@ -77,7 +77,7 @@ scalemail-backend unix        -       n       n       -       2       pipe
 mailman   unix  -       n       n       -       -       pipe
   flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
   ${nexthop} ${user}
-<% if postfix_use_amavisd == 'yes' %>
+<% if use_amavisd == 'yes' %>
 amavis unix - - - - 2 smtp
         -o smtp_data_done_timeout=1200
         -o smtp_send_xforward_command=yes
@@ -96,25 +96,25 @@ amavis unix - - - - 2 smtp
         -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
         -o smtpd_bind_address=127.0.0.1
 <% end %>
-<% if postfix_use_dovecot_lda == 'yes' %>
+<% if use_dovecot_lda == 'yes' %>
 dovecot   unix  -       n       n       -       -       pipe
   flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -n -m ${extension}  
 <% end %>
-<% if postfix_use_schleuder == 'yes' %>
+<% if use_schleuder == 'yes' %>
 schleuder  unix  -       n       n       -       -       pipe
   flags=DRhu user=schleuder argv=/usr/bin/schleuder ${user}
 <% end %>
-<% if postfix_use_sympa == 'yes' %>
+<% if use_sympa == 'yes' %>
 sympa        unix  -       n       n       -       -       pipe
   flags=R user=sympa argv=/usr/lib/sympa/bin/queue ${recipient}
 sympabounce  unix  -       n       n       -       -       pipe
   flags=R user=sympa argv=/usr/lib/sympa/bin/bouncequeue ${user}
 <% end %>
-<% if postfix_use_mlmmj == 'yes' %>
+<% if use_mlmmj == 'yes' %>
 mlmmj   unix  -       n       n       -       -       pipe
   flags=DORhu user=mlmmj argv=/usr/bin/mlmmj-recieve -F -L /var/spool/mlmmj/$nexthop/
 <%- end -%>
 
-<%- unless postfix_mastercf_tail.to_s.empty? then -%>
-<%= postfix_mastercf_tail %>
+<%- unless mastercf_tail.to_s.empty? then -%>
+<%= mastercf_tail %>
 <%- end -%>
index ab71f97b8fb00a8487ea87c0b7f0fd90101a40d1..50241b8baf16f72bdb957b73a771db59fae65a11 100644 (file)
@@ -9,15 +9,15 @@
 # service type  private unpriv  chroot  wakeup  maxproc command + args
 #               (yes)   (yes)   (yes)   (never) (100)
 # ==========================================================================
-<% if postfix_smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
-<% else %><%= postfix_smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
-<% if postfix_use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
+<% if smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
+<% else %><%= smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
+<% if use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
   -o smtpd_tls_security_level=encrypt
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
   -o milter_macro_daemon_name=ORIGINATING
 <% end %>
-<% if postfix_use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
+<% if use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
   -o smtpd_tls_wrappermode=yes
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
@@ -83,7 +83,7 @@ scalemail-backend unix  -       n       n       -       2       pipe
 mailman   unix  -       n       n       -       -       pipe
   flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
   ${nexthop} ${user}
-<% if postfix_use_amavisd == 'yes' %>
+<% if use_amavisd == 'yes' %>
 amavis unix - - - - 2 smtp
         -o smtp_data_done_timeout=1200
         -o smtp_send_xforward_command=yes
@@ -102,25 +102,25 @@ amavis unix - - - - 2 smtp
         -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
         -o smtpd_bind_address=127.0.0.1
 <% end %>
-<% if postfix_use_dovecot_lda == 'yes' %>
+<% if use_dovecot_lda == 'yes' %>
 dovecot   unix  -       n       n       -       -       pipe
   flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -n -m ${extension}  
 <% end %>
-<% if postfix_use_schleuder == 'yes' %>
+<% if use_schleuder == 'yes' %>
 schleuder  unix  -       n       n       -       -       pipe
   flags=DRhu user=schleuder argv=/usr/bin/schleuder ${user}
 <% end %>
-<% if postfix_use_sympa == 'yes' %>
+<% if use_sympa == 'yes' %>
 sympa        unix  -       n       n       -       -       pipe
   flags=R user=sympa argv=/usr/lib/sympa/bin/queue ${recipient}
 sympabounce  unix  -       n       n       -       -       pipe
   flags=R user=sympa argv=/usr/lib/sympa/bin/bouncequeue ${user}
 <% end %>
-<% if postfix_use_mlmmj == 'yes' %>
+<% if use_mlmmj == 'yes' %>
 mlmmj   unix  -       n       n       -       -       pipe
   flags=DORhu user=mlmmj argv=/usr/bin/mlmmj-recieve -F -L /var/spool/mlmmj/$nexthop/
 <%- end -%>
 
-<%- unless postfix_mastercf_tail.to_s.empty? then -%>
-<%= postfix_mastercf_tail %>
+<%- unless mastercf_tail.to_s.empty? then -%>
+<%= mastercf_tail %>
 <%- end -%>
index 3450369bc3155ff76b4eff610d792cf6571443f9..d5a5a1480d3484ad24af9ed39015e7b07e21a0dc 100644 (file)
@@ -8,19 +8,19 @@
 # service type  private unpriv  chroot  wakeup  maxproc command + args
 #               (yes)   (yes)   (yes)   (never) (100)
 # ==========================================================================
-<% if postfix_smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
-<% else %><%= postfix_smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
+<% if smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
+<% else %><%= smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
 #smtp      inet  n       -       -       -       1       postscreen
 #smtpd     pass  -       -       -       -       -       smtpd
 #dnsblog   unix  -       -       -       -       0       dnsblog
 #tlsproxy  unix  -       -       -       -       0       tlsproxy
-<% if postfix_use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
+<% if use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
   -o smtpd_tls_security_level=encrypt
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
   -o milter_macro_daemon_name=ORIGINATING
 <% end %>
-<% if postfix_use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
+<% if use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
   -o smtpd_tls_wrappermode=yes
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
@@ -114,7 +114,7 @@ mailman   unix  -       n       n       -       -       pipe
   flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
   ${nexthop} ${user}
 
-<% if postfix_use_amavisd == 'yes' %>
+<% if use_amavisd == 'yes' %>
 amavis unix - - - - 2 smtp
         -o smtp_data_done_timeout=1200
         -o smtp_send_xforward_command=yes
@@ -133,25 +133,25 @@ amavis unix - - - - 2 smtp
         -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
         -o smtpd_bind_address=127.0.0.1
 <% end %>
-<% if postfix_use_dovecot_lda == 'yes' %>
+<% if use_dovecot_lda == 'yes' %>
 dovecot   unix  -       n       n       -       -       pipe
   flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
 <% end %>
-<% if postfix_use_schleuder == 'yes' %>
+<% if use_schleuder == 'yes' %>
 schleuder  unix  -       n       n       -       -       pipe
   flags=DRhu user=schleuder argv=/usr/bin/schleuder ${user}
 <% end %>
-<% if postfix_use_sympa == 'yes' %>
+<% if use_sympa == 'yes' %>
 sympa        unix  -       n       n       -       -       pipe
   flags=R user=sympa argv=/usr/lib/sympa/bin/queue ${recipient}
 sympabounce  unix  -       n       n       -       -       pipe
   flags=R user=sympa argv=/usr/lib/sympa/bin/bouncequeue ${user}
 <% end %>
-<% if postfix_use_mlmmj == 'yes' %>
+<% if use_mlmmj == 'yes' %>
 mlmmj   unix  -       n       n       -       -       pipe
   flags=DORhu user=mlmmj argv=/usr/bin/mlmmj-recieve -F -L /var/spool/mlmmj/$nexthop/
 <%- end -%>
 
-<%- unless postfix_mastercf_tail.to_s.empty? then -%>
-<%= postfix_mastercf_tail %>
+<%- unless mastercf_tail.to_s.empty? then -%>
+<%= mastercf_tail %>
 <%- end -%>
index 50084efda3cc21957069b3fd0662f4be6017c921..9ce32647bd769e40e9836d878d5bbfb9fa47cf3a 100644 (file)
@@ -8,9 +8,9 @@
 # service type  private unpriv  chroot  wakeup  maxproc command + args
 #               (yes)   (yes)   (yes)   (never) (100)
 # ==========================================================================
-<% if postfix_smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
-<% else %><%= postfix_smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
-<% if postfix_use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
+<% if smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
+<% else %><%= smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
+<% if use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
   -o smtpd_enforce_tls=yes
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
@@ -22,7 +22,7 @@
 #  -o smtpd_sasl_auth_enable=yes
 #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
 #  -o milter_macro_daemon_name=ORIGINATING
-<% if postfix_use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
+<% if use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
   -o smtpd_tls_wrappermode=yes
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
@@ -109,7 +109,7 @@ scalemail-backend unix      -       n       n       -       2       pipe
 mailman   unix  -       n       n       -       -       pipe
   flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
   ${nexthop} ${user}
-<% if postfix_use_amavisd == 'yes' %>
+<% if use_amavisd == 'yes' %>
 amavis unix - - - - 2 smtp
         -o smtp_data_done_timeout=1200
         -o smtp_send_xforward_command=yes
@@ -128,31 +128,31 @@ amavis unix - - - - 2 smtp
         -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
         -o smtpd_bind_address=127.0.0.1
 <% end %>
-<% if postfix_use_dovecot_lda == 'yes' %>
+<% if use_dovecot_lda == 'yes' %>
 dovecot   unix  -       n       n       -       -       pipe
   flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -n -m ${extension}  
 <% end %>
-<% if postfix_use_schleuder == 'yes' %>
+<% if use_schleuder == 'yes' %>
 schleuder  unix  -       n       n       -       -       pipe
   flags=DRhu user=schleuder argv=/usr/bin/schleuder ${user}
 <% end %>
-<% if postfix_use_sympa == 'yes' %>
+<% if use_sympa == 'yes' %>
 sympa        unix  -       n       n       -       -       pipe
   flags=R user=sympa argv=/usr/lib/sympa/bin/queue ${recipient}
 sympabounce  unix  -       n       n       -       -       pipe
   flags=R user=sympa argv=/usr/lib/sympa/bin/bouncequeue ${user}
 <% end %>
-<% if postfix_use_mlmmj == 'yes' %>
+<% if use_mlmmj == 'yes' %>
 mlmmj   unix  -       n       n       -       -       pipe
   flags=DORhu user=mlmmj argv=/usr/bin/mlmmj-recieve -F -L /var/spool/mlmmj/$nexthop/
 <%- end -%>
-<% if postfix_use_firma == 'yes' %>
+<% if use_firma == 'yes' %>
 firma  unix  -       n       n       -       -       pipe
   flags=DRhu user=firma argv=/var/lib/firma/firma -p ${user}
 firmarequest  unix  -       n       n       -       -       pipe
   flags=DRhu user=firma argv=/var/lib/firma/firma -e ${user}
 <% end %>
 
-<%- unless postfix_mastercf_tail.to_s.empty? then -%>
-<%= postfix_mastercf_tail %>
+<%- unless mastercf_tail.to_s.empty? then -%>
+<%= mastercf_tail %>
 <%- end -%>
index 14497f2625b93418e9bc4c69e150781e0f14042f..cc4bbf0b939c31a4feb8615b6901dafb89e539f0 100644 (file)
@@ -8,19 +8,19 @@
 # service type  private unpriv  chroot  wakeup  maxproc command + args
 #               (yes)   (yes)   (yes)   (never) (100)
 # ==========================================================================
-<% if postfix_smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
-<% else %><%= postfix_smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
+<% if smtp_listen == 'all' %>smtp      inet  n       -       -       -       -       smtpd
+<% else %><%= smtp_listen %>:smtp      inet  n       -       -       -       -       smtpd<% end %>
 #smtp      inet  n       -       -       -       1       postscreen
 #smtpd     pass  -       -       -       -       -       smtpd
 #dnsblog   unix  -       -       -       -       0       dnsblog
 #tlsproxy  unix  -       -       -       -       0       tlsproxy
-<% if postfix_use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
+<% if use_submission == 'yes' %>submission inet n       -       -       -       -       smtpd
   -o smtpd_tls_security_level=encrypt
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
   -o milter_macro_daemon_name=ORIGINATING
 <% end %>
-<% if postfix_use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
+<% if use_smtps == 'yes' %>smtps     inet  n       -       -       -       -       smtpd
   -o smtpd_tls_wrappermode=yes
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
@@ -114,7 +114,7 @@ mailman   unix  -       n       n       -       -       pipe
   flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
   ${nexthop} ${user}
 
-<% if postfix_use_amavisd == 'yes' %>
+<% if use_amavisd == 'yes' %>
 amavis unix - - - - 2 smtp
         -o smtp_data_done_timeout=1200
         -o smtp_send_xforward_command=yes
@@ -133,25 +133,25 @@ amavis unix - - - - 2 smtp
         -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
         -o smtpd_bind_address=127.0.0.1
 <% end %>
-<% if postfix_use_dovecot_lda == 'yes' %>
+<% if use_dovecot_lda == 'yes' %>
 dovecot   unix  -       n       n       -       -       pipe
   flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -n -m ${extension}  
 <% end %>
-<% if postfix_use_schleuder == 'yes' %>
+<% if use_schleuder == 'yes' %>
 schleuder  unix  -       n       n       -       -       pipe
   flags=DRhu user=schleuder argv=/usr/bin/schleuder ${user}
 <% end %>
-<% if postfix_use_sympa == 'yes' %>
+<% if use_sympa == 'yes' %>
 sympa        unix  -       n       n       -       -       pipe
   flags=R user=sympa argv=/usr/lib/sympa/bin/queue ${recipient}
 sympabounce  unix  -       n       n       -       -       pipe
   flags=R user=sympa argv=/usr/lib/sympa/bin/bouncequeue ${user}
 <% end %>
-<% if postfix_use_mlmmj == 'yes' %>
+<% if use_mlmmj == 'yes' %>
 mlmmj   unix  -       n       n       -       -       pipe
   flags=DORhu user=mlmmj argv=/usr/bin/mlmmj-recieve -F -L /var/spool/mlmmj/$nexthop/
 <%- end -%>
 
-<%- unless postfix_mastercf_tail.to_s.empty? then -%>
-<%= postfix_mastercf_tail %>
+<%- unless mastercf_tail.to_s.empty? then -%>
+<%= mastercf_tail %>
 <%- end -%>
index 1d98d27558ab9ff8e5e978c2258bdc2d0b551334..01741e4ed73e12769f91db6535c2f9247abdb972 100644 (file)
@@ -7,14 +7,14 @@
 # service type  private unpriv  chroot  wakeup  maxproc command + args
 #               (yes)   (yes)   (yes)   (never) (100)
 # ==========================================================================
-<%= postfix_smtp_listen %>:smtp      inet  n       -       n       -       -       smtpd
+<%= smtp_listen %>:smtp      inet  n       -       n       -       -       smtpd
 #smtp      inet  n       -       n       -       -       smtpd
-<% if postfix_use_submission == 'yes' %>submission inet n       -       n       -       -       smtpd
+<% if use_submission == 'yes' %>submission inet n       -       n       -       -       smtpd
   -o smtpd_enforce_tls=yes
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
 <% end %>
-<% if postfix_use_smtps == 'yes' %>smtps     inet  n       -       n       -       -       smtpd
+<% if use_smtps == 'yes' %>smtps     inet  n       -       n       -       -       smtpd
   -o smtpd_tls_wrappermode=yes
   -o smtpd_sasl_auth_enable=yes
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
@@ -82,6 +82,6 @@ ifmail    unix  -       n       n       -       -       pipe
 bsmtp     unix  -       n       n       -       -       pipe
   flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
 
-<%- unless postfix_mastercf_tail.to_s.empty? then -%>
-<%= postfix_mastercf_tail %>
+<%- unless mastercf_tail.to_s.empty? then -%>
+<%= mastercf_tail %>
 <%- end -%>