Paper Lantern for cPanel accounts is being retired this year. Find out more »
cPanel & WHM Version 102 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Protection to prevent /var/log/maillog to fill up disk when account over quota

cglmicro shared this idea 5 months ago
Open Discussion

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.

Replies (1)

photo
1

Thank you for your feedback! We will be looking at this one soon.

Leave a Comment
 
Attach a file