Change default logrotate settings for /var/mail/maillog (#1667)

Change default logrotate settings for /var/mail/maillog

See also: https://github.com/tomav/docker-mailserver/issues/1666
This commit is contained in:
Casper 2020-11-07 00:54:50 +01:00 committed by GitHub
parent 2f840d7da5
commit ab45ae5504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1691,15 +1691,15 @@ function _setup_logrotate
case "${LOGROTATE_INTERVAL}" in
"daily" )
_notify 'inf' "Setting postfix logrotate interval to daily"
LOGROTATE="${LOGROTATE} rotate 1\n daily\n"
LOGROTATE="${LOGROTATE} rotate 4\n daily\n"
;;
"weekly" )
_notify 'inf' "Setting postfix logrotate interval to weekly"
LOGROTATE="${LOGROTATE} rotate 1\n weekly\n"
LOGROTATE="${LOGROTATE} rotate 4\n weekly\n"
;;
"monthly" )
_notify 'inf' "Setting postfix logrotate interval to monthly"
LOGROTATE="${LOGROTATE} rotate 1\n monthly\n"
LOGROTATE="${LOGROTATE} rotate 4\n monthly\n"
;;
* ) _notify 'warn' 'LOGROTATE_INTERVAL not found in _setup_logrotate' ;;
esac