Hi all, thanks for taking a look. How can i create something that cleans all email from all accounts (Cpanel) once a week? Thanks
You would need to traverse /home/<user>/mail/<domain>/<domain_user>/{new,cur,tmp,.spam} That's going to be quite nasty.
How come the accounts are being popped and downloaded to end users? Second, are you allowing unrouteable mail to be delivered to teh default cPanel user? If so you are robbing your server of resources and accepting tons of spam.
First question, dont know what to answer, sorry. Second one, yep, guess all emails from all accounts are being directed to the "main account", so i had 7.000 + emails in there
popped = pop3 Outlook or something downloads email which removes it from the server. If the default account is accepting mail, I would prevent this from editing the /etc/valiases/$domain.com files and change the entry from *: cpaneluser to *: :fail: