Comments (13)
Can you launch with --debug
and post the Augeas debug information please?
from puppet-postfix.
from puppet-postfix.
Thank you. The important part here will be:
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): sending command 'set' with params ["/files/etc/postfix/virtual/pattern[. = '@$mydomain']", "@$mydomain"]
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): sending command 'set' with params ["/files/etc/postfix/virtual/pattern[. = '@$mydomain']/destination", "root"]
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): Put failed on one or more files, output from /augeas//error:
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): /augeas/files/etc/postfix/virtual/error = put_failed
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): /augeas/files/etc/postfix/virtual/error/path = /files/etc/postfix/virtual
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): /augeas/files/etc/postfix/virtual/error/lens = /usr/share/augeas/lenses/dist/postfix_virtual.aug:51.10-.47:
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): /augeas/files/etc/postfix/virtual/error/message = Malformed child node 'pattern'
Can you show what your /etc/postfix/virtual
file looks like please?
from puppet-postfix.
@$mydomain
is not valid as a pattern as far as the lens is concerned (because of the $
).
The lens accepts patterns matching /[A-Za-z0-9@\*.+=-]+/
only.
Should it be valid?
from puppet-postfix.
This is the default /etc/postfix/virtual, only commented lines:
postfix-virtual.txt
Yes, it is valid:
http://www.postfix.org/postconf.5.html#myorigin
I'm currently using it on all servers.
from puppet-postfix.
I don't see where it says that @$mydomain
is valid as a pattern in virtual
. Can you be more specific?
from puppet-postfix.
No, not in virtual
, I use it in main.cf
from puppet-postfix.
But this issue is about using @$mydomain
in /etc/postfix/virtual
.
from puppet-postfix.
No; I started form a fresh install of OS and I applied config:
inet_interfaces: loopback-only
mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin: $mydomain
relayhost: smtp.cervedgroup.com
satellite: true
getting error above
from puppet-postfix.
OK, that's because https://github.com/camptocamp/puppet-postfix/blob/master/manifests/satellite.pp#L39 creates a virtual
entry from $myorigin
:
postfix::virtual { "@${postfix::myorigin}":
ensure => 'present',
destination => 'root',
}
and since you used $mydomain
as the value for $myorigin
, that fails.
from puppet-postfix.
OK, I switched to:
mta: true
satellite: false
and it works flawlessy.
Thank you
from puppet-postfix.
So shall I mark this as a question and close?
from puppet-postfix.
For me, OK. Unless you want to indagate furtherly.
Thank you very much
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.