enable spamassassin on all accounts

decafranky

Verified User
Joined
Aug 22, 2004
Messages
120
Hi,

I have installed/configured the spamassassin plugin.

By default spamassassin is not enabled on all domains.

Is there anyway to enable spamassasin with defaults for all domains at once?

Franky
 
Anybody knows how to enable spamassassin on all accounts?

Would like to set "DELETE SPAM" by default on a 7.5 threshold for all accounts.

Thanks,

Greetz,

Franky
 
Hello,

To enable spamassasin for new account:
http://help.directadmin.com/item.php?id=117

If you want to enable SA for all accounts that already exist, a similar method could be used:
Code:
#!/bin/sh
for i in `ls /usr/local/directadmin/data/users`; do
{
     DIR=/home/$i/.spamassassin 
     mkdir $DIR 
     touch $DIR/user_prefs     [b]#or this is where you'd copy the default user_prefs you want them to have, instead of "touch". [/b]
     chown ${i}:mail $DIR 
     chmod 771 $DIR 
     chown $i:$i$DIR/user_prefs 
     chmod 755 $DIR/user_prefs 
     touch $DIR/spam 
     chown mail:$i$DIR/spam 
     chmod 660 $DIR/spam 
};
done;
exit 0;
John
 
Back
Top