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
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