Categories

Tuesday, 25 December 2012

Script to enable Spam Assasin in all the Cpanel Accounts

Hello,

 Below is the script to enable spam assassin in all the cpanel accounts in WHM.


#!/bin/bash
cd /home
for user in `ls /var/cpanel/users`
do
test ! -d $user && continue
touch  $user/.spamassassinenable $user/.spamassassinboxenable
chown $user:$user  $user/.spamassassinenable $user/.spamassassinboxenable
echo $user complete
done

Regards




No comments:

Post a Comment

Ad