View Full Version : I have email piping in WHMCS and I get an email
Cape Dave 01-03-2010, 01:39 PM every time the cron runs which is every 5 minutes. I am desperate to stop this and I think I need to look in CPanel but am not sure where.
Could anyone help me with this? It is interfering with my business.
Thanks, Dave
FazeWire 01-03-2010, 01:51 PM The cron section in cpanel is under the "advanced" heading, which is usually all the way at the bottom.
Cape Dave 01-03-2010, 02:14 PM Yes, but how do I tell Cpanel NOT to send an email each time the Cron runs? Getting truly desperate :)
FazeWire 01-03-2010, 02:18 PM Is this the WHMCS cron job? Looks like this:
Cron Job Report for 03-01-2010 00:00:02
Updated Currency Exchange Rates
X Invoices Created
Credit Card Payments: X Captured, X Failed
X Overdue Invoice Reminders Sent
X Invoice Payment Reminders Sent
X Upcoming Domain Renewal Notices Sent
X Services Suspended
X Pending Affiliate Payments Made
Disk & Bandwidth Usage Statistics Updated
If so, that should only be run once a day, why are you running it every 5 minutes?
Cape Dave 01-03-2010, 02:19 PM OK, I went there and redirected the output as it said. thanks! We'll see if it works! Getting an email every 5 minutes will make me crazy very quickly :) If you do not believe me, try it!
Cape Dave 01-03-2010, 02:20 PM Running it every five minutes is because of piping for WHMCS so that a ticket opens when some sends an email to support@.....
Cape Dave 01-03-2010, 02:21 PM >/dev/null 2>&1
So I did the above and hope that will stop it. Damn, it did not stop it :(
FazeWire 01-03-2010, 02:25 PM What exactly are you running? Paste the exact cron here please. :)
Cape Dave 01-03-2010, 02:26 PM php -q /home/capecodb/public_html/whmcs/pipe/pop.php >/dev/null 2>&1
FazeWire 01-03-2010, 02:27 PM And each email you get says:
POP Import Log
Date: 03/01/2010 10:13:23
Right?
Cape Dave 01-03-2010, 02:28 PM Actually, I think the last email may have been vestigial and it might now have actually stopped the torture.
Cape Dave 01-03-2010, 02:28 PM Yes it does say that
Cape Dave 01-03-2010, 02:29 PM Actually, I think it has stopped! Yes!
Cape Dave 01-03-2010, 02:30 PM Thank you for jumping on my problem!
FazeWire 01-03-2010, 02:32 PM Okay, well I recommend doing this instead:
Remove that cron.
In cpanel, click "Forwarders" under the "Mail" heading
Click "Add Forwarder"
Address to forward: support@yourdomain.com
Click "Advanced Options"
Pipe to a Program:
Use the command found here: www.yourdomain.com/whmcs/admin/configticketdepartments.php (http://www.yourdomain.com/whmcs/admin/configticketdepartments.php) that starts with | php -q
That works faster than the cron method, and no emails!
Cape Dave 01-03-2010, 02:36 PM Yes, that is what I tried at first. But that did not work because my email is hosted at RackSpace, not on my server. At least that is the conclusion I came to :) And come to think of it, WHMCS seemed to agree with that conclusion.
I do wish I could do it the simpler way, as I always try to keep things as simple as possible and still get the job done.
FazeWire 01-03-2010, 02:38 PM You can always do the same at rackspace, have them forward your email there.
Anyway, looks like you got it fixed. :)
|