Setting Cron Job to empty Mailboxes
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 -
[QUOTE]/usr/bin/archivemail --quiet --delete --days 2 /home/magicalw/mail/mydomain.com/myles/inbox
(I've removed my actual domain from above command) Unfortunately I'm returned the following error - [QUOTE]/usr/local/cpanel/bin/jailshell: /usr/bin/archivemail: No such file or directory
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, Myles Oops, looks like I posted this in the wrong forum. Thanks for moving thread to correct place! :)
(I've removed my actual domain from above command) Unfortunately I'm returned the following error - [QUOTE]/usr/local/cpanel/bin/jailshell: /usr/bin/archivemail: No such file or directory
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, Myles Oops, looks like I posted this in the wrong forum. Thanks for moving thread to correct place! :)
-
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. 0
Please sign in to leave a comment.
Comments
1 comment