This fixes a race condition where postmap files are updated but not generated to
.db files before postfix has been started or restarted. By running these
immediately on updates, this ensures that the .db files exist properly.
Signed-off-by: Lance Albertson <lance@osuosl.org>
OpenSUSE runs a script which builds the main.cf file automatically if a file
doesn't exist. This breaks idempotency so go ahead and touch the file via Chef.
In addition, postfix is built with incorrect default settings for `setgid_group`
and `daemon_directory`, so set it properly in the config.
Signed-off-by: Lance Albertson <lance@osuosl.org>
This change is automatically generated by the Cookstyle Bot using the latest version of Cookstyle (6.18.8). Adopting changes suggested by Cookstyle improves cookbook readability, avoids common coding mistakes, and eases upgrades to newer versions of the Chef Infra Client.
### Style/Encoding
- **/recipes/maps.rb:1**: Unnecessary utf-8 encoding comment.
- **/test/integration/sasl_auth_multiple/serverspec/sasl_auth_multiple_spec.rb:1**: Unnecessary utf-8 encoding comment.
- **/test/integration/sasl_auth_one/serverspec/sasl_auth_one_spec.rb:1**: Unnecessary utf-8 encoding comment.
Signed-off-by: Cookstyle <cookbooks@chef.io>
We now disable all sendmail services and periodic services on FreeBSD
before attempting to start postfix. Additionally, this updates
mailer.conf mappings to use postfix applications rather than sendmail.
In my development env i want to make sure nobody can send a mail to a wrong address. So all outgoing mails are changed.
Signed-off-by: Bram Gillemon <bram@gillemon.be>
* Wrapper cookbook usually uses default level to override attributes
of the wrapped cookbook. Here, we had a problem because if the
wrapper cookbook was enabling sasl and was setting a relayhost
and a user/password combination using the default level, this was
not working because _attributes resets those attributes.
To fix this, we now use node.default_unless which will set the
attribute only if it's not already set ensuring that wrapper
cookbook overriden attributes using default level are correctly
kept when computing derived attributes.