Accéder au contenu principal

WHM How to Change or Limit Email Attachment size

To Limit Maximum Email Size do the following,
  1. Login to cPanel/WHM as root
  2. Under Service Configuration, Click “exim Configuration Manager”
  3. Click “Advanced Editor”
  4. Scroll down and Click “Add additional Configuration Setting”
  5. Find “message_size_limit” in pull-down list and choose
  6. Enter limit that you want to change to
  7. Scroll to bottom and click “save”



Bandwidth monitoring

 

 

The easiest way to achieve this in cPanel would be to modify the bandwidth processing time for cPanel's statistics software. This can be configured at WHM >> Home >> Server Configuration >> Statistics Software Configuration >> Schedule Configuration >> Bandwidth Processing Frequency. Note, that this might cause a performance degradation, so keep an eye on the server when these changes are made.

As these websites are likely using the same IP, monitoring individual users with a third-party plugin like Munin will be very difficult. Most user bandwidth monitoring tools will have to parse log files to read the individual bandwidth usage.

Let me know if you have any questions!


To measure bandwidth, cPanel & WHM combines the amount of bytes of an incoming data request with the outgoing transferred data (the response to that request). cPanel & WHM obtains this data from the Apache logs.

These logs include the following amounts of bandwidth:

The total bandwidth that the incoming request that solicited the content used.
The total bandwidth that the complete response used (the sum of the size of the content plus the header).
----
https://documentation.cpanel.net/display/68Docs/Apparent+Discrepancies+in+Bandwidth+Usage+Statistics#ApparentDiscrepanciesinBandwidthUsageStatistics-Overalldifferencesinmeasuringbandwidth

Meaning, we look at the data in the "/usr/local/apache/domlogs/DOMAIN" to calculate bandwidth for http and https based on what Apache is reporting.

We then store this information in the /usr/local/apache/domlogs/DOMAIN-bytes_log 

Commentaires

Posts les plus consultés de ce blog

cPanel DDOS attack - Mitigate Slowloris Attacks - mod_qos

Apache mod_evasive Mod_evasive is a module available for the Apache HTTP server that can automatically block attacks by rate-limiting any IP that sends too many requests in a short time. Start by installing the module from WHM’s  EasyApache 4  interface. Select the  Currently Installed Packages  profile, search for  mod_evasive  in the  Apache Modules  section, and then install it. The default settings are good for most servers, but you can tweak them further by editing the configuration file  /etc/apache2/conf.d/300-mod_evasive.conf . You can also whitelist specific IP addresses or classes, so legitimate requests are not blocked. Configure CSF to block attacks While  mod_evasive  works very well, it only protects the Apache webserver. In order to harden other services as well, you can install the free  ConfigServer Security & Firewall  (CSF), which also includes a WHM plugin. As the  root  user, install CSF with these terminal commands: cd /usr/src rm -fv csf.tgz wget https://down

Spool file is locked (another process is handling this message)

LOG: MAIN cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -v -Mrm 1dUoey-0006YJ-3A Message 1dUoey-0006YJ-3A is locked LOG: skip_delivery MAIN Spool file is locked (another process is handling this message) To do this you can run the following commands. |exim -Mt 1dUoey-0006YJ-3A |exim -Mrm 1dUoey-0006YJ-3A I am also providing the following page in case you want more information regarding the exim command options. http://www.exim.org/exim-html-current/doc/html/spec_html/ch-the_exim_command_line.html

Open Media Vault NAS change password

Known Root Password Login to the OMV using the root user and the current password via SSH or Console enter the following command passwd root The new password is now active. Unknown Root Password, but Admin Access to OMV GUI is Available In this scenario we still can help ourselves with the GUI. The method we use is, that we create a cron job for the root user which then resets the password. Navigate to System -> Cron Jobs Press the +Add button UN-tick the enabled box, so that the cronjob does not run automatically. put into the command field the following line, replace newpasswd with your password: echo "root:newpasswd" | chpasswd press okay select the newly created cron job Click the run button. in the opening window click the start button. It will shortly deactivate and activate again. open ssh or console and login as root with your new password. Root and Admin Password Unknown If you do not know the root password, you need to boot with a Li