Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information about how to set postfix permissions #3594

Merged
merged 4 commits into from
Jan 2, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update postfix permissions docs
  • Loading branch information
danielnelson committed Jan 2, 2018
commit 6115a50213523bac98961a2bf2e92eac7f1af581
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}
```

### Measurements & Fields:
Expand Down