Unverified Commit f3a280ab authored by micah's avatar micah Committed by GitHub

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
......@@ -26,12 +26,19 @@
# ensure => present,
# }
# postfix::config { 'transport_maps':
# value => 'hash:/etc/postfix/transport',
# value => 'hash:/etc/postfix/transport, regexp:/etc/postfix/transport_regexp',
# }
# postfix::transport { 'mailman.example.com':
# ensure => present,
# destination => 'mailman',
# postfix::transport {
# 'mailman.example.com':
# ensure => present,
# destination => 'mailman';
# 'slow_transport':
# ensure => present,
# nexthop => '/^user-.*@mydomain\.com/'
# file => '/etc/postfix/transport_regexp',
# destination => 'slow'
# }
#
# }
#
define postfix::transport (
......
......@@ -25,14 +25,19 @@
# ensure => present,
# }
# 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":
# ensure => present,
# destination => ['root', 'postmaster'],
# }
# postfix::virtual { "/.+@.+/"
# ensure => present,
# file => '/etc/postfix/virtual_regexp',
# destination => 'root',
# }
# }
#
define postfix::virtual (
Variant[String, Array[String]] $destination,
Stdlib::Absolutepath $file='/etc/postfix/virtual',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment