Skip to content

Commit

Permalink
Update postfix permissions docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Dec 29, 2017
1 parent 6e8a113 commit 47999f7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugins/inputs/postfix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@ For each of the active, hold, incoming, maildrop, and deferred queues (http://ww
#### 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
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
$ sudo chmod -R g+rXs /var/spool/postfix
$ 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 -R -m u:telegraf:rX /var/spool/postfix
$ sudo setfacl -R -m u:telegraf:rX /var/spool/postfix/{active,hold,incoming,deferred,maildrop}

This comment has been minimized.

Copy link
@dynek

dynek Dec 29, 2017

Contributor

On my side I added minus d:

-d, --default
All operations apply to the Default ACL. Regular ACL entries in the input set are promoted to Default ACL entries. Default ACL entries in the input set are discarded. (A warning is issued if that happens).

Otherwise looks good to me.

```

### Measurements & Fields:
Expand Down

0 comments on commit 47999f7

Please sign in to comment.