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.

Auto deleting emails older than a month

Discussion in 'E-mail Discussions' started by Beelady11, Aug 20, 2015.

  1. Beelady11

    Beelady11 Registered

    Joined:
    Aug 20, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Reseller Owner
    Hi.
    I'm fairly new to this so please forgive my lack of knowledge.

    I have a few websites on Hostgator and I would like to know how to automatically delete emails (from inbox and sent folders) that are, say, older than a month.
    I've read a few threads on here related to this but they mention things like 'cron jobs' which I've never heard of.

    Does anyone have any simple suggestions, please? Or a link to something I can follow?

    Thanks very much in advance :)
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Are you using Webmail or IMAP to manage your emails, or do you download your emails with POP3 in an email client? There are no native features that will allow you to automatically delete emails from your Inbox and Sent folders, so you would have to develop a script or setup a cron job to remove the emails directly from your /home/$username/mail/$domain.com/user/cur directory (and .Sent). Cron jobs are documented at:

    cPanel - Cron Jobs

    Thank you.
     
Loading...

Share This Page