Fix PMG custom-check log ownership to avoid permission denied errors.

Updated the custom_check state to manage /var/log/mail_av and checked file with pmg-smtp-filter ownership and configurable modes, and documented new pillar settings for log owner/group/modes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ruslan Petrovich
2026-06-24 21:26:13 +03:00
co-authored by Cursor
parent 7373d5520f
commit 664a544aa9
3 changed files with 20 additions and 4 deletions
+4
View File
@@ -52,6 +52,10 @@ pmg:
enabled: true
script_path: /usr/local/bin/pmg-custom-check
log_dir: /var/log/mail_av
log_dir_user: pmg-smtp-filter
log_dir_group: pmg
log_dir_mode: "0770"
log_file_mode: "0660"
managed_packages:
- pwgen
ksc_superuser: