Skip to content

Commit

Permalink
Add information about how to set postfix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Dec 16, 2017
1 parent 3029d58 commit 429c924
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions plugins/inputs/postfix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@ 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 this directory to provide access to the
telegraf user.

Unix permissions:
```sh
$ sudo chgrp -R telegraf /var/spool/postfix
$ sudo chmod -R g+rX /var/spool/postfix
```

Posix ACL:
```sh
$ sudo setfacl -R -m u:telegraf:r /var/spool/postfix
```

### Measurements & Fields:

- postfix_queue
Expand Down

0 comments on commit 429c924

Please sign in to comment.