The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Remove old unused mailbox

Discussion in 'E-mail Discussions' started by pixel, Apr 19, 2008.

  1. pixel

    pixel Member

    Joined:
    May 30, 2002
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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
     
Loading...

Share This Page