added pflogsumm local mta note to work
Dieser Commit ist enthalten in:
Ursprung
3f82c5437d
Commit
15fe2b46ef
2 geänderte Dateien mit 16 neuen und 6 gelöschten Zeilen
|
@ -13,4 +13,8 @@ SHELL=/bin/bash
|
||||||
59 23 * * * root docker logs --since 24h $(docker ps -qf name=postfix-mailcow) | /usr/sbin/pflogsumm -d today | mail -s "Postfix Report of $(date)" postmaster@example.net
|
59 23 * * * root docker logs --since 24h $(docker ps -qf name=postfix-mailcow) | /usr/sbin/pflogsumm -d today | mail -s "Postfix Report of $(date)" postmaster@example.net
|
||||||
```
|
```
|
||||||
|
|
||||||
Basierend auf den Postfix-Logs der letzten 24 Stunden sendet dieses Beispiel jeden Tag um 23:59:00 Uhr einen pflogsumm-Bericht an postmaster@example.net.
|
Um zu funktionieren muss ein lokaler Postfix auf dem Server installiert werden, welcher an den Postfix der mailcow relayed.
|
||||||
|
|
||||||
|
Genauere Informationen lassen sich finden unter Sektion [Post-Installationsaufgaben -> Lokaler MTA auf Dockerhost](https://mailcow.github.io/mailcow-dockerized-docs/de/post_installation/firststeps-local_mta/) finden.
|
||||||
|
|
||||||
|
Basierend auf den Postfix-Logs der letzten 24 Stunden sendet dieses Beispiel dann jeden Tag um 23:59:00 Uhr einen pflogsumm-Bericht an postmaster@example.net.
|
|
@ -1,16 +1,22 @@
|
||||||
To use pflogsumm with the default logging driver, we need to query postfix-mailcow via docker logs and pipe the output to pflogsumm:
|
To use pflogsumm with the default logging driver, we need to query postfix-mailcow via docker logs and direct the output to pflogsumm:
|
||||||
|
|
||||||
```
|
```
|
||||||
docker logs --since 24h $(docker ps -qf name=postfix-mailcow) | pflogsumm
|
docker logs --since 24h $(docker ps -qf name=postfix-mailcow) | pflogsumm
|
||||||
```
|
```
|
||||||
|
|
||||||
The above log output is limited to the past 24 hours.
|
The above log output is limited to the last 24 hours.
|
||||||
|
|
||||||
It's also possible to create a daily pflogsumm report via cron. Create the file /etc/cron.d/pflogsumm with the following content:
|
It is also possible to create a daily pflogsumm report via cron. Create the /etc/cron.d/pflogsumm file with the following content:
|
||||||
|
|
||||||
```
|
```
|
||||||
SHELL=/bin/bash
|
SHELL=/bin/bash
|
||||||
59 23 * * * root docker logs --since 24h $(docker ps -qf name=postfix-mailcow) | /usr/sbin/pflogsumm -d today | mail -s "Postfix Report of $(date)" postmaster@example.net
|
59 23 * * root docker logs --since 24h $(docker ps -qf name=postfix-mailcow) | /usr/sbin/pflogsumm -d today | mail -s "Postfix Report of $(date)" postmaster@example.net
|
||||||
```
|
```
|
||||||
|
|
||||||
Based on the last 24h postfix logs, this example sends every day at 23:59:00 a pflogsumm report to postmaster@example.net.
|
To work, a local postfix must be installed on the server, which relays to the mailcow postfix.
|
||||||
|
|
||||||
|
More detailed information can be found in section [Post installation tasks -> Local MTA on Dockerhost](https://mailcow.github.io/mailcow-dockerized-docs/post_installation/firststeps-local_mta/).
|
||||||
|
|
||||||
|
Based on the postfix logs of the last 24 hours, this example then sends a pflogsumm report to postmaster@example.net every day at 23:59:00.
|
||||||
|
|
||||||
|
Translated with www.DeepL.com/Translator (free version)
|
Laden …
In neuem Issue referenzieren