From a2f22422ca7cb6c2f0248648e751bdcfeba67e8c Mon Sep 17 00:00:00 2001 From: Casper Date: Mon, 7 Mar 2022 23:00:32 +0100 Subject: [PATCH] docs: Enhance logrotate description (#2469) --- docs/content/config/environment.md | 8 ++++---- mailserver.env | 12 +++++++----- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/content/config/environment.md b/docs/content/config/environment.md index 535dec5b..4636db9b 100644 --- a/docs/content/config/environment.md +++ b/docs/content/config/environment.md @@ -317,11 +317,11 @@ Defines who sends reports (if they are enabled). ##### LOGROTATE_INTERVAL -Changes the interval in which a report is being sent. +Changes the interval in which log files are rotated. -- **weekly** => Rotate weekly. -- daily => Rotate daily. -- monthly => Rotate monthly. +- **weekly** => Rotate log files weekly +- daily => Rotate log files daily +- monthly => Rotate log files monthly !!! note diff --git a/mailserver.env b/mailserver.env index 6d3d7bca..48a07d37 100644 --- a/mailserver.env +++ b/mailserver.env @@ -233,17 +233,19 @@ REPORT_RECIPIENT= # => Specify the sender address REPORT_SENDER= -# Changes the interval in which a report is being sent. -# **weekly** => Send a report every week -# daily => Send a daily report -# monthly => Send a report every month +# Changes the interval in which log files are rotated +# **weekly** => Rotate log files weekly +# daily => Rotate log files daily +# monthly => Rotate log files monthly # # Note: This Variable actually controls logrotate inside the container -# and rotates the log depending on this setting. The main log output is +# and rotates the log files depending on this setting. The main log output is # still available in its entirety via `docker logs mail` (Or your # respective container name). If you want to control logrotation for # the Docker-generated logfile see: # https://docs.docker.com/config/containers/logging/configure/ +# +# Note: This variable can also determine the interval for Postfix's log summary reports, see [`PFLOGSUMM_TRIGGER`](#pflogsumm_trigger). LOGROTATE_INTERVAL=weekly # Choose TCP/IP protocols for postfix to use