diff --git a/docs/manual-guides/Postfix/u_e-postfix-pflogsumm.de.md b/docs/manual-guides/Postfix/u_e-postfix-pflogsumm.de.md index e882d50a8..bdf8710da 100644 --- a/docs/manual-guides/Postfix/u_e-postfix-pflogsumm.de.md +++ b/docs/manual-guides/Postfix/u_e-postfix-pflogsumm.de.md @@ -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 ``` -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. \ No newline at end of file +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. \ No newline at end of file diff --git a/docs/manual-guides/Postfix/u_e-postfix-pflogsumm.en.md b/docs/manual-guides/Postfix/u_e-postfix-pflogsumm.en.md index 26d2dead9..4e033cf5e 100644 --- a/docs/manual-guides/Postfix/u_e-postfix-pflogsumm.en.md +++ b/docs/manual-guides/Postfix/u_e-postfix-pflogsumm.en.md @@ -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 ``` -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 -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. \ No newline at end of file +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) \ No newline at end of file