NTTCom-MS / eyp-postfix

postfix management - relay or multidomain mailserver
Apache License 2.0
0 stars 10 forks source link

Selinux contexts for files and directories #51

Closed albatrossflavour closed 6 years ago

albatrossflavour commented 6 years ago

I've added in code to set the selinux contexts on the various files that require it when running in enforce mode. If selinux is not enabled, these are ignored.

Without the contexts, the /etc/aliases.db file could not be read by postfix and the /var/vmail directory structure was not accessible through dovecot.

There is no requirement to have the selinux module as a dependency as we are using puppet built-in functionality.

jordiprats commented 6 years ago

Hi, I've merged this PR using PR-52

Thanks for your work on this

regards,