Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Setting Cron Job to empty Mailboxes

Discussion in 'E-mail Discussion' started by magicalwonders, Feb 13, 2014.

  1. magicalwonders

    magicalwonders Well-Known Member

    Nov 21, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I'm trying to set up some cron jobs to empty mailboxes after specified period. I want a hands free, set it and forget process.

    I found a website that gave some examples of the command for cron job, so gave it a go. I have tried the following for one of my mail accounts -

    (I've removed my actual domain from above command) Unfortunately I'm returned the following error -

    I've connected to the server by root and taken a peek, and sure enough there is no folder called "archivemail".

    My server is running CENTOS 6.5 x86_64 virtuozzo / WHM 11.40.1 (build 11)

    Can anybody help with what would be the correct path for this cron?

    Many thanks,


    Oops, looks like I posted this in the wrong forum. Thanks for moving thread to correct place! :)
    #1 magicalwonders, Feb 13, 2014
    Last edited: Feb 13, 2014
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    There "archivemail" binary does not exist on cPanel servers. However, the following post might be useful to you:

    Cron Job to remove email

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice