Skip to content
Snippets Groups Projects
Unverified Commit f3a280ab authored by micah's avatar micah Committed by GitHub
Browse files

Add virtual and transport regexp examples (#116)

* Enhance virtual example to include a regexp virtual map

* Enhance transport example to include a regexp transport
parent 4f935088
Branches
Tags
No related merge requests found
...@@ -26,12 +26,19 @@ ...@@ -26,12 +26,19 @@
# ensure => present, # ensure => present,
# } # }
# postfix::config { 'transport_maps': # postfix::config { 'transport_maps':
# value => 'hash:/etc/postfix/transport', # value => 'hash:/etc/postfix/transport, regexp:/etc/postfix/transport_regexp',
# } # }
# postfix::transport { 'mailman.example.com': # postfix::transport {
# 'mailman.example.com':
# ensure => present, # ensure => present,
# destination => 'mailman', # destination => 'mailman';
# 'slow_transport':
# ensure => present,
# nexthop => '/^user-.*@mydomain\.com/'
# file => '/etc/postfix/transport_regexp',
# destination => 'slow'
# } # }
#
# } # }
# #
define postfix::transport ( define postfix::transport (
......
...@@ -25,14 +25,19 @@ ...@@ -25,14 +25,19 @@
# ensure => present, # ensure => present,
# } # }
# postfix::config { "virtual_alias_maps": # postfix::config { "virtual_alias_maps":
# value => "hash:/etc/postfix/virtual" # value => "hash:/etc/postfix/virtual, regexp:/etc/postfix/virtual_regexp"
# } # }
# postfix::virtual { "user@example.com": # postfix::virtual { "user@example.com":
# ensure => present, # ensure => present,
# destination => ['root', 'postmaster'], # destination => ['root', 'postmaster'],
# } # }
# postfix::virtual { "/.+@.+/"
# ensure => present,
# file => '/etc/postfix/virtual_regexp',
# destination => 'root',
# } # }
# # }
define postfix::virtual ( define postfix::virtual (
Variant[String, Array[String]] $destination, Variant[String, Array[String]] $destination,
Stdlib::Absolutepath $file='/etc/postfix/virtual', Stdlib::Absolutepath $file='/etc/postfix/virtual',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment