rpvw

Well-Known Member
Jul 18, 2013
1,101
465
113
UK
cPanel Access Level
Root Administrator
So v68 bought a lot of eagerly anticipated new features.......and seemed to have gone backwards at the same time.

Thirdly.....the new SSL notifications

Whilst I applaud the initiative of providing more information to the end user - the fact is the vast majority have no clue as to what they are being told, and are actually annoyed at getting even more emails. Now one can calmly tell them they can turn the notifications off in cPanel (which many of them have never actually logged into in their lives) but they, not unreasonably, retort that they didn't ask for the bl....y notifications in the first place, and bl.....y well stop them !!

The lack of a simple control on a server wide basis for disabling these client notifications would appear to be a glaring omission, and one that perhaps should have been implemented before pushing these new features onto the clients.

Hope this feedback is constructive and someone takes notice :)
 
Last edited by a moderator:

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
Hi,

The notifications sent about expiring certificates are managed globally via the "Send notifications when certificates approach expiry." tweak setting.
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
465
113
UK
cPanel Access Level
Root Administrator
Thanks Kenneth - you jumped in here just as I was composing a query about that very same Tweak Settings feature, as it was unclear to me if the setting applied to admin, users or both ...... I guess globally means both ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello @rpvw,

The global AutoSSL notification settings are separate from the individual cPanel AutoSSL notification settings. The following feature request is open for the ability to set default values for the cPanel user notifications:

Ability to set defaults for cPanel User Notifications

In the meantime, you'd need to manually disable the individual AutoSSL notifications for cPanel users via "cPanel >> Contact Information" or setup a script that loops the cPanel API 2 functions referenced on the post:

AutoSSL notifications in cPanel 68

Thank you.
 

texo

Well-Known Member
Mar 28, 2007
150
3
168
cPanel Access Level
Root Administrator
The lack of a simple control on a server wide basis for disabling these client notifications would appear to be a glaring omission, and one that perhaps should have been implemented before pushing these new features onto the clients.
I fully agree. This is a shocking mistake, and I have already received 17 support tickets about this, with hundreds probably to follow today. It is impossible for me to log into every server, and manually disable these notifications for thousands of accounts.
Can someone PLEASE provide a shell script to do this?
 

NanoGame

Member
Oct 6, 2016
5
6
53
Russia
cPanel Access Level
Root Administrator
My clients attacked hosting support with questions about these letters. Please make the global option to disable such notifications.
So far I've disabled notifications via the API, the script is below, I think many will need it.

Code:
#!/bin/bash

/bin/ls -1 /var/cpanel/users | while read USER; do
  /bin/echo "Now processing ${USER} ..."
  /usr/bin/cpapi2 --user=${USER} CustInfo savecontactinfo notify_autossl_expiry_coverage=0 notify_autossl_renewal_coverage=0
done
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
465
113
UK
cPanel Access Level
Root Administrator
@ NanoGame

Thank you VERY much for sharing this.

Not only did this work perfectly, but I now understand a whole lot more about how to script using the API

Excellent work
 

Net Ninjas

Registered
Nov 4, 2017
1
1
3
Australia
cPanel Access Level
DataCenter Provider
This is extremely poor form cPanel, that you would make such a change. Most hosting companies dont want notifications or emails going to their clients. Especially emails of this sort. To only find out that would happen in v68 after the clients have received the emails. I have to say Im more that a little pi**ed off right now
 
  • Like
Reactions: loudcanvas

Friends4U

Member
Jan 20, 2005
18
2
153
Great script BUT, after each new account creation you must run the script again (for the new account) and that will reset the choices of customers who DO want to have these emails.
 
  • Like
Reactions: loudcanvas

Damian

Well-Known Member
Oct 1, 2001
108
7
318
Hi Texo, we are getting a lot of tickets about these notices too. This is a little shell script I wrote to change the notifications for the 5 AutoSSL notices off for every user on the server.

Save it to /root/something.sh, chmod 755 somthing.sh and then run it with ./something.sh

Code:
#!/bin/bash
cd /var/cpanel/users
for user in *
do
    cpapi2 --user=$user CustInfo savecontactinfo notify_autossl_renewal=0 notify_autossl_renewal_coverage=0 notify_autossl_expiry_coverage=0 notify_autossl_expiry=0 notify_ssl_expiry=0 
done
Adjust the 0 values on the line above to 1 if you want to keep a particular notification on.

Hope this helps :)
 
Last edited by a moderator:
  • Like
Reactions: loudcanvas and texo

garconcn

Well-Known Member
Oct 29, 2009
159
14
68
Hello @rpvw,

The global AutoSSL notification settings are separate from the individual cPanel AutoSSL notification settings. The following feature request is open for the ability to set default values for the cPanel user notifications:

Ability to set defaults for cPanel User Notifications

In the meantime, you'd need to manually disable the individual AutoSSL notifications for cPanel users via "cPanel >> Contact Information" or setup a script that loops the cPanel API 2 functions referenced on the following thread:

AutoSSL notifications in cPanel 68

Thank you.
I guess this is already too late as the "Autossl notification feature" does not exist in cpanel until you upgrade to V68, but once you upgrade, the notification will be sent out right after. So, client will receive at least one notification.
 

jmartinmds

Member
Jul 22, 2016
15
3
53
Maryland
cPanel Access Level
DataCenter Provider
Another note of thanks @NanoGame. I modified the script a little bit to include all 4 AutoSSL notifications:
Code:
#!/bin/bash

/bin/ls -1 /var/cpanel/users | while read USER; do
  /bin/echo "Now processing ${USER} ..."
  /usr/bin/cpapi2 --user=${USER} CustInfo savecontactinfo notify_autossl_expiry_coverage=0 notify_autossl_renewal_coverage=0 notify_autossl_expiry=0 notify_autossl_renewal=0
done
And I agree with the others that this should be configurable for the entire server, and able to be set as a default option to have these disabled for new accounts.
 

anton_latvia

Well-Known Member
PartnerNOC
May 11, 2004
410
17
168
Latvia
cPanel Access Level
Root Administrator
Thanks for the script.

Question - where can we setup defaults for new accounts? So that new accounts will have these settings turned off?
 
  • Like
Reactions: loudcanvas

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Question - where can we setup defaults for new accounts? So that new accounts will have these settings turned off?
It's not yet possible to configure those values by default. We will update the following feature request once there's more information about plans to add that functionality to the product:

Ability to set defaults for cPanel User Notifications

In the meantime, you could setup a custom script like the one referenced earlier in this thread, and configure it to run as a post-stage hook immediately after an account is created. The particular event you would hook into is Accounts::Create:

Guide to Standardized Hooks - Whostmgr Functions - Software Development Kit - cPanel Documentation

EX:

Code:
/usr/local/cpanel/bin/manage_hooks add script /path/to/something.sh --manual --category Whostmgr --event Accounts::Create --stage post
Thank you.
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
939
22
168
I think a distinction needs to be made between the AutoSSL notifications and notifications for certificates the end user may have installed themselves from third parties.

With AutoSSL, sending notifications to the end user is a waste of time, since they can't do anything to resolve any of those problems. Expiry notifications on these certs are also pointless, considering the fact that they auto renew.

I think it's pretty reasonable to assume that AutoSSL notifications should go to the admin contact only.

Also want to mention that we are using cachewall (xvarnish). As someone mentioned this above, I would suggest some of these errors are caused by that software, for us it seems to be an issue on the proxy subdomains. I understand that project has stalled and is currently not being developed -so it is unlikely a fix will be produced. I will attempt to reach out to them about this.
 

ronaldst

Well-Known Member
Feb 22, 2016
85
16
8
Norway
cPanel Access Level
Root Administrator
What on earth been going on at the cPanel office pushing out something causing all clients to be bombarded with emails?

Just spent days sorting this issue.

Thank you to everyone getting a solution written into an actual post, which honestly should been the 2nd post in this topic by an actual cPanel staffer.
 
Last edited:

mrl14

Registered
Mar 16, 2012
3
2
53
cPanel Access Level
Root Administrator
This is a HUGE mistake on CPanel's part. You cannot just introduce new notifications to customers, especially with a very confusing message, as you have with AutoSSL. You are assuming that we have a) enabled this for all customers b) informed them of the service they are receiving from it and c) they understand the email you've sent them.

You need to reverse this immediately and introduce it as a new feature that we can enable if we feel it is necessary. This should be fixed today and issued in a release tonight.