Email notification when cPanel user logs in?
Hello.
Is there any way to get email notification when a user logged to cPanel? I have installed ConfigServer Security & Firewall(csf) to the WHM. Is there any feature in firewall to achieve this target?
Thanks.
-
Yes you can: In CSF configuration look for LF_CPANEL_ALERT and switch this ON [quote] Send an email alert if anyone accesses WHM/cPanel via an account listed in LF_CPANEL_ALERT_USERS. An IP address will be reported again 1 hour after the last tracked access (or if lfd is restarted) 0 -
Hi @Mash962, cPanel also provides this natively at cPanel > User Preferences > Contact Information: "Someone logs in to my account" Contact Information - Version 68 Documentation - cPanel Documentation Thanks, 0 -
Yes you can: In CSF configuration look for LF_CPANEL_ALERT and switch this ON
Thank you for the response. But a notification email never send when I login to cPanel. Is there any configurations?0 -
Hello @Mash962, It looks like your response was to the CSF notification setting. cPanel offers a separate option documented at: Contact Information - Version 68 Documentation - cPanel Documentation Review the section on "Someone logs in to my account" on the above document and let us know if this helps. Thank you. 0 -
Hello @jmginer, In order to use this setting, cPHulk must be enabled in WHM's cPHulk Brute Force Protection interface (WHM >> Security Center >> cPHulk Brute Force Protection). Thank you. 0 -
Hello @jmginer, In order to use this setting, cPHulk must be enabled in WHM's cPHulk Brute Force Protection interface (WHM >> Security Center >> cPHulk Brute Force Protection). Thank you.
Thanks! I've enabled cphulk, but the option is disabled by default. It's possible to enable on all cPanel accounts? and enable by default for new created accounts? Thanks! - Removed -0 -
Hello @jmginer, You'd need to create a bash command that loops the following cPanel API 2 function on all existing accounts: that automatically executes the above cPanel API 2 function. The command for a single account looks like this: cpapi2 --user=username123 CustInfo savecontactinfo notify_account_login=1
Additionally, I encourage you to vote for the following feature request if you'd like to see a way to set the defaults through WHM: Thank you.0
Please sign in to leave a comment.
Comments
8 comments