Server and account management questions

driftux

Registered
Dec 9, 2018
2
0
1
Europe
cPanel Access Level
DataCenter Provider
Hi, I plan to have about 10-20 servers with several thousands of domains and need a control panel to manage all the hosting environment professionally. I have some question is Cpanel suite my needs:

  1. Can I set in Cpanel server template or per domain limitations of sending email: a) from one mailbox let to send 50 emails per 10 minutes b) from one mailbox let to send till 200 emails per 1 hour c) from one domain let to send 500 emails per 1 hour d) one email can contain up to 50 recieptiens (this means one email = one recieptient)

  2. Sending email from website a) from one website would be possible to send 50 emails per 10 minutes and 300 emails per 1 hour. If the limits are crossed all emails would be rejected. b) if email queue will consist more thant 10 000 emails, email service for that domain will be stopped and all emails will be deleted AND domain account will be disabled. If emails go with SMTP auth from website, this mailbox will be disabled.

  3. Website virus. Most of the user uses vulnarable CMS's and their being infected quite quickly. Suddenly cripto currenciences starting to generating, o other strange things happen. Server gets very slow, because one website starting to generate 99% of CPU. It can cause simple virus as well. I need to automatically block that website or account from executing such activities or sending spam (I wrote above). Domain owner and me will be notified by email.

  4. Can I allow visit website only from specific countries? Is there any host using GEO-IP modules or smth?
I need functions that can easy the administrator job with limiting bad activities. Or when the problem arises it could easely be controled, enabled/disabled and so on. I need not only control panel to manage the domains, but also do automatically a lot of functions of prevention.
 

Eminds

Well-Known Member
Nov 10, 2016
319
32
28
India
cPanel Access Level
Root Administrator
Regarding your first two queries of emails , you can manage the things with below 2 options however they are limited and not exactly as per your requirement.

1)Number of emails a domain may send per day before the system sends a notification.

2) Max hourly emails per domain

The above settings can be done from Tweak settings in WHM

Regarding the 3rd query of email notification when server resources are overused , it can be done with enabling LFD notifications , but you will receive the notifications only. In order to control the things or diagnose the issue you have to have login to the server in order to check what is causing the high server resource usage. If you are trying to automate this task , you will need advance scripting which will control things.

The 4th query , yes you can surely block specific countries by blocking the country's complete IP range in firewall .. its an easy task.

Furthermore , you can not really automate all the tasks that you are looking to do , Few things like server security patches , modules updates need manual attention.
 
  • Like
Reactions: cPanelLauren

driftux

Registered
Dec 9, 2018
2
0
1
Europe
cPanel Access Level
DataCenter Provider
Thanks for clarification. Could someone share the knowledge how do they automate such tasks or use third party software?
I mean they are very necessary, when you deal with big amount of domains.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,272
313
Houston
Hi @driftux

Firstly I want to note that the advice provided by @Eminds was solid. Secondly as far as automation it depends on what you want to automate. A lot of companies use monitoring services like nagios to monitor server load, CSF/LFD will send some notifications automatically, Malware scanners like ClamAV or Maldet will automatically scan servers. For custom searches and items you want to monitor for you can create cron jobs to send an email report to you.