Add information about how to set permissions for postfix input (#3594)

(cherry picked from commit a440ed8d8c)
This commit is contained in:
Daniel Nelson 2018-01-02 14:09:14 -08:00 committed by Daniel Nelson
parent f8597f78f4
commit 07985e6524
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 19 additions and 0 deletions

View File

@ -13,6 +13,25 @@ For each of the active, hold, incoming, maildrop, and deferred queues (http://ww
# queue_directory = "/var/spool/postfix"
```
#### Permissions:
Telegraf will need read access to the files in the queue directory. You may
need to alter the permissions of these directories to provide access to the
telegraf user.
Unix permissions:
```sh
$ sudo chgrp -R telegraf /var/spool/postfix/{active,hold,incoming,deferred}
$ sudo chmod -R g+rXs /var/spool/postfix/{active,hold,incoming,deferred}
$ sudo usermod -a -G postdrop telegraf
$ sudo chmod g+r /var/spool/postfix/maildrop
```
Posix ACL:
```sh
$ sudo setfacl -Rdm u:telegraf:rX /var/spool/postfix/{active,hold,incoming,deferred,maildrop}
```
### Measurements & Fields:
- postfix_queue