MaikelVE Posted May 12, 2019 Share Posted May 12, 2019 Hi! I'm getting several emails a day from my installation giving the 'Domain Synchronisation Cron' Report. And even for the transfers a sperate one. How can I disable these? It's very annoying 0 Quote Link to comment Share on other sites More sharing options...
bear Posted May 12, 2019 Share Posted May 12, 2019 (edited) I'm not aware of any way of disabling just those emails. You can filter them via the mail server; that's what we've done. I'd suggest pushing them to a mailbox just for that, and check it weekly for problems, if you don't want to keep track daily. Alternately, you can just kill them (not recommended). Check this thread: Edited May 12, 2019 by bear 1 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted May 13, 2019 Share Posted May 13, 2019 Which version of WHMCS are you running? Are you running a seperate Domain Sync Cron? 0 Quote Link to comment Share on other sites More sharing options...
MaikelVE Posted May 13, 2019 Author Share Posted May 13, 2019 11 hours ago, WHMCS ChrisD said: Which version of WHMCS are you running? Are you running a seperate Domain Sync Cron? Hi! Running on 7.7.1, latest one. I do have these crons setup: 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Technical Analyst III WHMCS Alex Posted May 16, 2019 WHMCS Technical Analyst III Share Posted May 16, 2019 Hello, There is no specific option to stop only those emails unfortunately, you can navigate to Setup > Staff Management > Administrator Roles and untick "System Emails (eg. Cron Notifications, Invalid Login Attempts, etc...)" but this will stop more than just the domain sync emails. If this is not suitable, I would recommend adding some local filtering rules to discard those emails as they come in, using the subject as the base for creating the rule. 0 Quote Link to comment Share on other sites More sharing options...
Ramin Ramesh Posted December 30, 2020 Share Posted December 30, 2020 hey any solution for these damn domains syncing email? <removed inapporiate language> 0 Quote Link to comment Share on other sites More sharing options...
xyzulu Posted January 1, 2021 Share Posted January 1, 2021 On 12/31/2020 at 2:55 AM, Ramin Ramesh said: hey any solution for these damn domains syncing email? god damn it Email filter? 0 Quote Link to comment Share on other sites More sharing options...
Randall1 Posted January 8, 2021 Share Posted January 8, 2021 The solution worked for me thanks to the community and the members for the solution. 0 Quote Link to comment Share on other sites More sharing options...
IQWeb Posted August 16, 2022 Share Posted August 16, 2022 You guys understand that it is a spam and you are not doing anything about it? It's been 3 years and still no solution to stop cron job emails only? 0 Quote Link to comment Share on other sites More sharing options...
IQWeb Posted August 16, 2022 Share Posted August 16, 2022 You guys understand that it is a spam and you are not doing anything about it? It's been 3 years and still no solution to stop cron job emails only? 0 Quote Link to comment Share on other sites More sharing options...
Vander Host Posted September 14, 2022 Share Posted September 14, 2022 As a consultant installing WHMCS for other the very first question they ask me is about these automated emails for domain synchronisation. I struggle to explain this to them: > Setup > Staff Management > Administrator Roles and untick "System Emails (eg. Cron Notifications, Invalid Login Attempts, etc...)" but this will stop more than just the domain sync emails. Hopefully, one day, there will be a magic button where we can put this off. 0 Quote Link to comment Share on other sites More sharing options...
wsa Posted September 16, 2022 Share Posted September 16, 2022 Disable "Domain Sync Enabled" setting under Configuration > System Setting > Automation Settings, and it should resolve. 0 Quote Link to comment Share on other sites More sharing options...
Vander Host Posted September 17, 2022 Share Posted September 17, 2022 15 hours ago, wsa said: Disable "Domain Sync Enabled" setting under Configuration > System Setting > Automation Settings, and it should resolve. Sounds like that would disable core functionality? 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted September 19, 2022 Share Posted September 19, 2022 On 9/17/2022 at 10:57 AM, Vander Host said: Sounds like that would disable core functionality? It would disable the domain sync yeah. 0 Quote Link to comment Share on other sites More sharing options...
anderson.deda Posted February 24, 2023 Share Posted February 24, 2023 (edited) I too am looking forward to a resolution to this issue! Edited February 24, 2023 by anderson.deda 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted February 24, 2023 Share Posted February 24, 2023 (edited) There's no clean way to prevent email sending. If Domain Synch was an Email Template, we could have stop it via EmailPreSend. Sadly WHMCS sends it by directly requiring (or initializing) phpMailer file (or class). The only solution is an hack. Edit phpMailer loader file so that it throws a die(); when it is included or initialized by crons/domainsync.php. It works but it is ugly and your change will be reverted back on every update of WHMCS. A more sensical approach is to use a filter on your email so that the all incoming emails with "WHMCS Domain Synchronisation Cron Report" title automatically go in "Automatic email" folder. If like me you recieve a lot of such useless emails (I have access to hundreds of WHMCS systems that flood me with thousands cron/sync emails on a daily basis) also enable automatic cancellation after X days. Edited February 24, 2023 by Kian 0 Quote Link to comment Share on other sites More sharing options...
Danse Posted December 11, 2023 Share Posted December 11, 2023 <?php add_hook('EmailPreSend', 1, function ($vars) { $messageName = $vars['messagename']; $templateName = array( 'WHMCS Domain Synchronisation Cron Report', ); $merge_fields = array(); if(in_array($messageName, $templateName)) { $merge_fields['abortsend'] = true; } return $merge_fields; }); Why not use simple Hook? Event more Template names in Array possible to abort. 0 Quote Link to comment Share on other sites More sharing options...
Mikki Posted October 31, 2024 Share Posted October 31, 2024 Would be better if system sends report only if the sync doesn't work. 0 Quote Link to comment Share on other sites More sharing options...
D3vil Posted November 4, 2024 Share Posted November 4, 2024 Oh, I totally get how annoying that is—I had the same issue with my setup. What worked for me was going into the cron job settings and redirecting the email output to /dev/null, so it just runs silently in the background. It took care of all those daily reports cluttering my inbox! Give it a try, and it should stop the spam without messing with the actual function. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted November 4, 2024 Share Posted November 4, 2024 There have been times in the past where the cron fails to sync, generally because of an issue with the registrar. Just my opinion, but better to receive these and know than to have it failing with no notifications of problems. I still recommend creating a "dead letter" mailbox just for them you can view once a day to be sure then toss all at once. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.