Add mail processing log permissions
This commit is contained in:
parent
7685918b9e
commit
edffa61466
1 changed files with 8 additions and 0 deletions
|
@ -39,6 +39,14 @@
|
|||
pip:
|
||||
name: git+ssh://git@repos.susurrando.com:1122/srv/git.repos/mail_processor.git
|
||||
|
||||
- name: Ensure filter user can write disclaimer log
|
||||
file:
|
||||
path: /var/log/mail_processor.log
|
||||
owner: filter
|
||||
group: postfix
|
||||
mode: 0660
|
||||
state: touch
|
||||
|
||||
- name: Compress stored incoming messages labeler logs
|
||||
shell: find /var/spool/filter/ -maxdepth 1 -type f -iname in.\*.log -exec bzip2 -z9 {} \;
|
||||
|
||||
|
|
Loading…
Reference in a new issue