Protection to prevent /var/log/maillog to fill up disk when account over quota
Hi.
When an account get over quota, some data are written in /var/log/maillog repeatidly (about 1Gb each 2 minutes), filling out the disk space of the /root partition pretty fast, causing the server to crash sometime, or ressources getting pretty low.
Here is a sample of what is added HUNDRED OF THOUSAND of times untill the account is no longer over-quota, or the server crashed:
Jan 20 15:20:14 smart dovecot: imap(mgagnon@confidential.tld)<31800><Mj2sAAnWMuGOfj6t>: Error: Mailbox INBOX: file_create_locked(/home/confiden/mail/confidential.tld/mgagnon/mailboxes/INBOX/dbox-Mails/dovecot-vsize.lock) failed: safe_mkstemp(/home/confiden/mail/confidential.tld/mgagnon/mailboxes/INBOX/dbox-Mails/dovecot-vsize.lock) failed: Disk quota exceeded
I would like a mecanism to prevent DOVECOT (or anyother script) to write the same information in the log in a loop, some kind of failsafe that stop logging the error until the account quota is raised.
Thank you.
Thank you for your feedback! We will be looking at this one soon.
Thank you for your feedback! We will be looking at this one soon.
Replies have been locked on this page!