voxpupuli / puppet-postfix

Puppet postfix module
Apache License 2.0
72 stars 176 forks source link

Can we have postlog enabled in redhat? #416

Open reypanganiban opened 4 weeks ago

reypanganiban commented 4 weeks ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

We need to enable the postfix logging on our smarthost server by adding the maillog_file parameter to the main.cf file

profile::postfix::configs:
  maillog_file:
    value: '/var/log/postfix.log'

What are you seeing

postfix/postfix-script: fatal: missing 'postlog' service in master.cf - run 'postfix upgrade-configuration'
postfix/postfix-script: fatal: Postfix integrity check failed!

What behaviour did you expect instead

It enables postfix logging to the maillog_file

Output log

postfix/postfix-script: fatal: missing 'postlog' service in master.cf - run 'postfix upgrade-configuration'
postfix/postfix-script: fatal: Postfix integrity check failed!

Any additional information you'd like to impart

We are deploying postfix to RedHat, but postlog is not included in master.cf.redhat.erb https://github.com/voxpupuli/puppet-postfix/blob/master/templates/master.cf.redhat.erb