PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` #!/bin/bash if [ "$1" != "" ] then #######List all IMAP processes of the User and log####### dai -p $1 | grep imap date >> /var/log/tmdabuse.log && echo "#################$1 IMAP##############" >> /var/log/tmdabuse.log dai -p $1 | grep imap >> /var/log/tmdabuse.log #######Kill all IMAP processes of the User####### for imapid in `dai -p $1 | grep imap | gawk -F " " {'print $2'}`; do kill -9 $imapid; done ##########replace all mail users with tmdabuse:user and apply +i flag on the shadow files########## for shadow in `find /home/$1/etc/ -name shadow`; do cat $shadow | gawk -F ":" {'print $1'} > /tmp/suspendmail; for user in `cat /tmp/suspendmail`; do replace "$user:" "tmdabuse:$user:" -- $shadow; done; chattr +i $shadow; done ##########Remove temporary file########## rm -rf /tmp/suspendmail ##########Log Action and Reports########## echo "User $1 mail accounts suspended!!!" >> /var/log/tmdabuse.log && echo "############################################" >> /var/log/tmdabuse.log echo "User $1 mail accounts suspended!!! Copy the IMAP processes and open an Abuse Case please." else echo "Usage suspendmail " fi