Hi,
I try to delete all email arrived of 1 month old of a specific domain with a cron job I tried with this commands:
I have been reading a lot in internet, I read and search in this forum but nothing works for me.
My host it a VPS of Godaddy I don't know if this influences in the command
I read these entries previously and others from internet:
Possible to auto delete old emails after x number of days?
Deleting Mails with Cron ???
Some errors sending to my email are with different commands:
find: missing argument to `-exec'
find: unknown predicate `--delete'
find: `/home/mail/MYDOMAIN.COM/': No such file or directory
I try to delete all email arrived of 1 month old of a specific domain with a cron job I tried with this commands:
Code:
/usr/bin/archivemail -quiet -delete -days 30 /home/USERNAME/mail/MYDOMAIN.COM/
Code:
find /home/USERNAME/mail/MYDOMAIN.COM/*/cur -type f -mtime +30 -exec rm -f {} \;
Code:
find /home/mail/MYDOMAIN.COM/*/ -quiet -delete -days 30
Code:
find /home/mail/MYDOMAIN.COM/ -type f -mtime +7 -delete
My host it a VPS of Godaddy I don't know if this influences in the command
I read these entries previously and others from internet:
Possible to auto delete old emails after x number of days?
Deleting Mails with Cron ???
Some errors sending to my email are with different commands:
find: missing argument to `-exec'
find: unknown predicate `--delete'
find: `/home/mail/MYDOMAIN.COM/': No such file or directory