16 lines
418 B
Plaintext
16 lines
418 B
Plaintext
[
|
|
{ type: install
|
|
message: <<EOM
|
|
For postfix_exporter to read maillog, you need to chown it to maildrop group:
|
|
chown :maildrop /var/log/maillog
|
|
|
|
Also configure newsyslog to apply these rights when rotating log:
|
|
/var/log/maillog root:maildrop 640 7 * @T00 JC
|
|
|
|
Create postfix_exporter logfile with:
|
|
touch /var/log/postfix_exporter.log && chown postfix_exporter /var/log/postfix_exporter.log
|
|
EOM
|
|
}
|
|
]
|
|
|