Comments (10)
ping @raphink
from puppet-postfix.
+1 ping @raphink ?
from puppet-postfix.
I had a look at trying to get regexes to work via augeas and gave up in the end, instead I ended up doing the following:
profile::postfix::virtual:
- "/rob.*/ root"
$virtual = lookup('profile::postfix::virtual',
{
value_type => Array,
default_value => [],
merge => 'unique',
})
# A bit of a hack to work around the fact augeaus really doesn't want to
# use regexes in key names
#
# Note the double quote within double quote (which works here)
postfix::hash { '/etc/postfix/virtual':
content => "${ $virtual.join("\n") }\n",
}
from puppet-postfix.
@jordiclariana @OlivierLM do you have a specific example of the syntax you'd like to pass?
from puppet-postfix.
As an example, this virtual map shall work :
/^.*-owner\@liste\.unicaen\.fr$/ sympabounce:
/^bounce\+.*/ sympabounce:
/^.+(?<!-owner)\@liste\.unicaen\.fr$/ sympa:
from puppet-postfix.
@OlivierLM ok, and what would the Puppet code you'd expect to use for that?
from puppet-postfix.
For the first line :
postfix::transport {'/^.*-owner\@liste\.unicaen\.fr':
ensure => present,
destination => 'sympabounce',
}
from puppet-postfix.
@OlivierLM #225 should fix it. Can you test it?
from puppet-postfix.
Don't know how to try this easily :(
from puppet-postfix.
Fixed in #225
from puppet-postfix.
Related Issues (20)
- Stop managing alias map (/etc/aliases) HOT 2
- Module fails with blank mydestination on a satellite HOT 8
- v3.0.0 has unmentioned deps HOT 1
- Docs unclear on "relayhost"'s "direct" value HOT 1
- virt advice is wrong
- TLS settings not reflecting on some of the servers in main.cf HOT 3
- canonical map doesn't accept underscores in destination address HOT 5
- virtual maps not permitted to have multiple recipients by Augeas lens HOT 3
- [3.1.0] Add support to puppet 8 HOT 1
- [3.1.0] Add support for RHEL9 HOT 6
- [4.0.0.] support puppet-alternatives > 5.0.0 HOT 1
- Mynetworks value in init.pp is not applied HOT 2
- 4.0.0+: not possible to construct a valid dependency tree due to dependency on camptocamp/augeas HOT 2
- support smtpd_forbid_bare_newline to mitigate smtp smuggling HOT 1
- postfix::transport ignores destination if nexthop includes []
- maillog configuration? HOT 4
- Add possibility to specify a template for main.cf HOT 1
- Please add support for Ubuntu 24.04 HOT 3
- Doc: link to metadata.json is broken
- missing postfix-ldap rpm on RHEL8+ distro
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-postfix.