|
Server IP : 162.241.5.139 / Your IP : 216.73.217.5 Web Server : Apache System : Linux server.vda.uxz.mybluehostin.me 5.14.0-687.59.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 21 06:02:14 EDT 2026 x86_64 User : dataincite ( 1006) PHP Version : 8.2.35 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0755) : /../scripts/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
#!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - scripts/build_maxemails_config Copyright 2022 cPanel, L.L.C.
# All rights reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
package scripts::buildMaxEmailsConfig;
use strict;
use warnings;
use Cpanel::EmailTracker ();
use File::Basename ();
use Getopt::Long ();
main() if not caller();
sub main {
my %opts;
Getopt::Long::GetOptions( \%opts, qw(help) ) or die usage();
if ( $opts{'help'} ) {
usage();
return 0;
}
Cpanel::EmailTracker::build_maxemails_config();
return;
}
sub usage {
my $b = File::Basename::basename($0);
print <<"END";
Usage: `$b [options]`
This script is used to set the max hourly rate limits on
emails per domain to the value `maxemailsperhour` set in
/var/cpanel/cpanel.config. `$b` is automatically called as part of upcp
maintenance.
Options:
--help Print this help information to standard output
END
return 0;
}
1;