dovecot 2.2 Auto Expunging - when does it run?

amasci

Registered
Sep 14, 2014
3
0
1
cPanel Access Level
Root Administrator
So I have turned on the setting in WHM (Server Configuration > Mailserver Configuration) Auto Expunging to remove messages older than 60 days. However, at what point does this script run? Does it run daily at a set time?

Thanks
 

kdean

Well-Known Member
Oct 19, 2012
365
56
78
Orlando, FL
cPanel Access Level
Root Administrator
It runs during cPanel's daily update, so you can check the update log for:

Code:
Processing: Cleaning up mailbox trash
Processing command `/usr/local/cpanel/scripts/dovecot_auto_expunge_trash`
with specific details below those lines.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

cPanel update logs are stored in the following directory:

Code:
/var/cpanel/updatelogs/
Keep in mind the option you are referring to does not remove messages older than the configured time frame. It removes messages after they have been in the trash folder for that set time frame.

Thank you.