#
#   Logrotate config file for MailerQ
#
#   This file contains settings to automatically rotate the logfiles
#   using logrotate. To see all possible settings, use `man 8 logrotate`.
#

# Settings for all the user formatted logfiles. If you renamed logfiles, or the files
# are in a non-standard location, alter the glob below.
/var/log/mailerq/*.log {
    # General settings, may be altered.
    rotate 20
    daily
    compress
    missingok
    notifempty
    maxsize 100M

    # Required setting for normal logfiles, because MailerQ monitors the filesystem
    # and needs time to close the writers to a logfile
    delaycompress
    # MailerQ creates its own logfiles.
    nocreate
}

# Settings for all the binary logfiles. If you renamed logfiles, or the files
# are in a non-standard location, alter the glob below.
/var/log/mailerq/*.bin {
    # General settings, may be altered.
    rotate 20
    daily
    missingok
    notifempty
    maxsize 100M

    # Required setting for binary logfiles, because MailerQ reads out the logfiles for the
    # web interface and processing purposes.
    nocompress
    # MailerQ creates its own logfiles.
    nocreate
}
