Remove old unused mailbox

pixel

Member
May 30, 2002
9
0
301
Hello,

Is there a way to find all mailbox that are not used (pop3 or imap login) from more than 6 months?

I need this information to create a script to remove all old mail account

Thank you!

Nicolas
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Hello,

Is there a way to find all mailbox that are not used (pop3 or imap login) from more than 6 months?

I need this information to create a script to remove all old mail account

Thank you!

Nicolas
Perhaps you may wish to scan the IMAP/POP3 logs for this information, such as /var/log/maillog and /var/log/messages. Webmail logins are logged in /usr/local/cpanel/logs/access_log