ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.138.174.122 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/tier1adv/bin/ |
Upload File : |
#!/bin/bash # sets maxemails for a user # updated by vanessa v. 5/23/12 CPVER=$(cat /usr/local/cpanel/version | cut -d. -f2) function rebuild(){ sudo /scripts/build_maxemails_config if [ "$CPVER" -lt 32 ];then sudo /scripts/update_email_limits else sudo /scripts/updateuserdomains fi } # checks for input if [ "$1" == "" ]; then echo "" echo "Missing user name..." exit 1 echo "" elif ! /bin/ls -A /var/cpanel/users/$1 > /dev/null; then echo "" echo "User does not exist" exit 1 echo "" elif [ "$2" == "" ]; then echo "" echo "You need to specify an hourly limit" exit 1 echo "" elif [ "$2" -gt "750" ]; then echo "" echo "You are not allowed to set maxemails higher than 750 - please ask a system admin" exit 1 echo "" elif grep MAX_EMAIL_PER_HOUR /var/cpanel/users/$1 >/dev/null then echo "" sed -e '/MAX_EMAIL_PER_HOUR/d' -i /var/cpanel/users/$1 >/dev/null echo "MAX_EMAIL_PER_HOUR=$2" >> /var/cpanel/users/$1 rebuild echo "$1 enabled to send up to $2 emails per hour" echo "" else echo "" echo "MAX_EMAIL_PER_HOUR=$2" >> /var/cpanel/users/$1 rebuild echo "$1 added to sent up to $2 emails per hour" fi