Comments (2)
The problem probably is, that we are calling service postfix reload
to restart Postfix on configuration changes. Appparently, this will not work in every case.
I'd suggest to do a hard restart (i.e. stop && start) on configuration changes per default, and additionally provide an Exec like, e.g.
exec { 'reload postfix configuration':
command => $::postfix::params::reload_cmd,
refreshonly => true,
}
which can then be triggered from, e.g. puppet::files
by adding correpsonding notify
attributes to those File resources.
An even easier approch could be to do a hard restart
, if we detect that a reload
did not succeed.
from puppet-postfix.
I've run into the same problem on RHEL 6.6 with the following manifest
include ::augeas
class { 'postfix':
satellite => true,
smtp_listen => '127.0.0.1',
relayhost => 'relayhost.example.com',
}
I have to run puppet twice for this manifest to work. There are no errors in the puppet logs, but the reload fails and after the puppet run is completed, the service is in a 'stopped' state. Below are the postfix logs.
Apr 29 13:45:11 mailhost postfix/postfix-script[12268]: refreshing the Postfix mail system
Apr 29 13:45:11 mailhost postfix/master[1506]: reload -- version 2.6.6, configuration /etc/postfix
Apr 29 13:45:11 mailhost postfix/master[1506]: warning: service 127.0.0.1:smtp: ignoring inet_interfaces change
Apr 29 13:45:11 mailhost postfix/master[1506]: warning: to change inet_interfaces, stop and start Postfix
Apr 29 13:45:11 mailhost postfix/master[1506]: fatal: bind 127.0.0.1 port 25: Address already in use
@rauchrob - Have you thought about creating a PR with one of your suggestions?
Thanks,
Alex
from puppet-postfix.
Related Issues (20)
- increase dependency of puppet/alternatives to next major version
- smtp address in master.cf not needed for loopback
- Allow multiple instances
- Problem with hardcoded "hash" (=Berkeley DB) on distros phasing out Berkeley DB HOT 3
- 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
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.