sendmail: Move mail spool under /export hierarcy
This commit is contained in:
parent
5b03f74903
commit
6cd2a5bbe5
1 changed files with 33 additions and 0 deletions
|
@ -60,6 +60,39 @@
|
||||||
tags: certificates
|
tags: certificates
|
||||||
notify: restart sendmail
|
notify: restart sendmail
|
||||||
|
|
||||||
|
- name: fix selinux contexts from data directory
|
||||||
|
sefcontext:
|
||||||
|
path: "/export/mail(/.*)?"
|
||||||
|
setype: mail_spool_t
|
||||||
|
|
||||||
|
- name: create data directory
|
||||||
|
file:
|
||||||
|
path: /export/mail
|
||||||
|
state: directory
|
||||||
|
mode: 0775
|
||||||
|
owner: root
|
||||||
|
group: mail
|
||||||
|
setype: _default
|
||||||
|
|
||||||
|
- name: backup old data directory
|
||||||
|
command:
|
||||||
|
argv:
|
||||||
|
- mv
|
||||||
|
- /var/spool/mail
|
||||||
|
- /var/spool/mail.backup
|
||||||
|
creates: /var/spool/mail.backup
|
||||||
|
|
||||||
|
- name: link data directory
|
||||||
|
file:
|
||||||
|
path: /var/spool/mail
|
||||||
|
src: /export/mail
|
||||||
|
state: link
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
setype: _default
|
||||||
|
follow: false
|
||||||
|
force: true
|
||||||
|
|
||||||
- name: copy sendmail config template
|
- name: copy sendmail config template
|
||||||
template:
|
template:
|
||||||
src: sendmail.mc.j2
|
src: sendmail.mc.j2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue