I have created a nice script that deletes old emails for either a single user or all users.
It can also handle junk/spam emails only - which will also help to keep the account space usage down.
A single user, with emails a year or older:
sh ./delete_old_emails.sh someuser 12...
My client has 3 websites that uses amazon mailster to send out campaign emails.
The same cron that is setup on all 3 accounts is is working perfectly on 2 of them except one.
Running an strace on the command in question results in a segmenation fault as seen below in the last few lines...
If I run from root
I get output in the home directory, eg: cpmove-example.tar.gz
If I try to schedule it in crontab, eg:
02 22 * * * /usr/local/cpanel/scripts/pkgacct example
I get no output. What am I doing incorrectly?
When I grep:
I have a series of wget cron jobs that are not firing and I am wondering if that is because the URLs they are getting are long. It is the only thing about these jobs that I can think of that would keep them from working. That or maybe I just have too many cron jobs scheduled.
Here is a redacted...
Is it normal for the free version of imunify360 to produce cron logs showing activity every single minute as well as every 5 minutes as such:
May 31 07:30:01 xxxxxxxxxxxxxx CROND: (root) CMD ( imunify360-agent malware on-demand check-detached 2>&1 > /dev/null || :)
Hi, I get this email notification everyday that ClamAV fails to update.
Cron <[email protected]> /usr/local/cpanel/3rdparty/bin/freshclam --quiet --no-warnings
ERROR: getpatch: Can't download daily-26096.cdiff from database.clamav.net
ERROR: Can't download daily.cvd from database.clamav.net
hi, i can't run this script from cron i tried all possible commands but nothing. launched from terminal works from cron is not executed. I tried everything with usr / bin / bash sh usr / bin and a thousand other combinations but nothing. the script reindexes magento and works but I just can't...
I have a series of cron jobs that are not firing. They are supposed to open the URL of an API on another server. I own the other server, but since it is a Windows Server I though it would be easier for me to automate the running of those scripts using cron jobs on my Linux server. I know cron...
i am using wptoolkit in whm to disable wp-cron
it's nice feature but i have a little problem.
after activating this option the system automatic insert a new rule in cron ...
15 5 * * * cd /home/xxxxxxxxx/public_html && /usr/local/bin/php /home/xxxxxxxx/public_html/wp-cron.php...
Whether it be PHP, Perl or other scripts, when one sends an email the "username" is contained within the email headers. So, this is a concern to me, as emails go through many gateways as plain text, and that username is the Cpanel/website root username. The objective is to keep the username...
Trying to format the cron email to no avail. I get the emails, but cannot format them. They are Content-Type: text/plain; charset=UTF-8 but I cannot get the output to format in single line with a cartriage return. For instance I want the output to be
"User $fname $lname ($id) sent dues reminder...
I'd like to delete all emails in an account's inbox that are older than 1 month on a daily basis.
What would be the best way to go about this?
I'm thinking cron with a PHP script?
But, UAPI / API 1 / API 2 - which one to use?
I have two drives in my server. Every night I have a Cron Job which runs a rsync to backup my user folder and all folders and files below it. This has worked very well for a long time, but lately I have been getting an email indicating there is an error. Here's what the email indicates:
My mail queue is almost frozen mails with over 7k to 10k All mails are related to cron notification
i went to cP > Cron job and i can see the cron notification Email was updated with the cPanel username which is causing the issue
How can i disable the cron notification on bulk for all accounts...
Activated clamav and see that in the control panel there is no setting on *when* to have it run when it does scan.
Alternatively there is a cron job I have (below) that does what I want (except sending me emails about the results).
So if I shut down the GUI clamav settings, i.e, untick...
Upgraded to WHMCS 8.0.1 and changed PHP to 7.4 (cpanel).
Now, health check shows:
Cron PHP Version Mismatch
Your environment appears to be running a different PHP version (7.3.22) for the System Cron than the currently loaded PHP version (7.4.10). This may cause issues running your System...
I have been pulling my hair out to speed up a large forum site on my server. I've spent years tuning my server, and lots of money and time on speeding up the IPB Forum app. I've recently noticed that simply running this command, aside from any changes I make...I mean just running this without...
Is it possible to setup a cron to run every 3 hours at a random in both hours and minutes.
(i.e if the first job runs at 01:20 ,the second job should run at 03:50 and the third one at 07:02 and so on)
Any suggestions on the best way to achieve this would be greatly appreciated.