Giter Club home page Giter Club logo

Comments (2)

rauchrob avatar rauchrob commented on June 23, 2024

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.

alexjfisher avatar alexjfisher commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.