HEX
Server: Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
System: Linux server.mediaphic.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: bakeerca (1316)
PHP: 7.3.33
Disabled: exec,passthru,shell_exec,system,show_source,mail,sendmail,popen,symlink,phpinfo
Upload Files
File: //bin/check_mailspam
# BSM ALLAH
#!/bin/bash


chk=`mailq | grep -c "^[A-F0-9]"`

if [ -f "/root/mailque_report" ]
then
rm -f /root/mailque_report
fi



if [ "$chk" -gt "1000" ]
then

# get mailque users list
mailq|awk '{print $7}' | egrep -i "[a-z1-9]*@[a-z]*.[a-z]*" > /root/mailque.lst

# get uniqe mailque users list
mailq|awk '{print $7}' | egrep -i "[a-z1-9]*@[a-z]*.[a-z]*" | sort|uniq >/root/mailque.usrs

for i in `cat /root/mailque.usrs`
do

un=`egrep -iw "$i" /root/mailque.lst |wc -l`

echo "$i $un" >> /root/mailque_report


done



awk '{if ( $2 > 200 ) print $1}' /root/mailque_report > /root/mailque_topusrs2


#sort -n 

ch_em_pass() {

}

em_blk() {

}

for i in `cat /root/mailque_topusrs2`
do
#echo $i
done

fi