Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[debops.nullmailer] - falis to start because config files have mode 0600 #1482

Closed
jkraemer opened this issue Aug 26, 2020 · 4 comments
Closed
Labels
bug something is not working as expected priority: high tag: mail services

Comments

@jkraemer
Copy link

It seems that the role specifies no mode and the files in /etc/nullmailer are created by Ansible with mode 0600 as a default. I helped myself with overriding the nullmailer__configuration_files in my inventory and specifying mode '644' for all of them, but this should probably be used as a default in the task that processes this list.

  • Ansible 2.9.12, Debops 2.1.1, Python 3.7
  • Debian Buster on control and managed hosts.
@nqb
Copy link
Contributor

nqb commented Aug 26, 2020

Hi,

It's related to Ansible 2.9.12 as reported by @imrejonk on DebOps users mailing list.

See ansible/ansible#71200. This change has been reverted.

@drybjed drybjed added bug something is not working as expected priority: high tag: mail services labels Aug 26, 2020
@drybjed
Copy link
Member

drybjed commented Aug 26, 2020

Thanks for the bug report. This issue has been fixed in 059e685 commit which was backported to the stable branches, but a new stable release hasn't happened yet. I'll to make on during this week.

Also, remember that /etc/nullmailer/remotes file needs to be 0600 and owned by mail:mail, otherwise you are exposing your SMTP passwords to other local accounts.

@jkraemer
Copy link
Author

Thanks!

@imrejonk
Copy link
Contributor

This was fixed in 9496c18. You can either update Ansible to 2.9.13, use the nullmailer role from master, or wait for a new stable release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something is not working as expected priority: high tag: mail services
Projects
None yet
Development

No branches or pull requests

4 participants