sxaa one rule applied to all users

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

kmcelwain
Posts: 89
Joined: Wed May 10, 2006 5:42 pm
Location: Homer, GA
Contact:

sxaa one rule applied to all users

Postby kmcelwain » Sun Aug 20, 2006 5:43 pm

I'm trying to push out the SPAM rule for all users

sxaa --file "junkmail" --subject "[SPAM]" --title "Anti-Spam Rule"

So what do I do to make sure it happens to everyone....and please don't tell me one at a time.

Thanks
Karl McElwain
Banks County School System
If you look hard enough you can find it for free.

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Sun Aug 20, 2006 6:36 pm

Well, I do. One at a time - however automatic, thanks to the power of Linux shell scripting....

You'll need to write a script that does a loop... something like

Code: Select all

omshowu -m all | egrep -v 'sxadmin|sxqueryadmin' | while read username
do
    echo "Processing User $username"
    sxaa -u "$username" - ......
done

I don't have a test system on me right now, so I haven't worked this out in detail, but that should give you a pattern to start from.

Cheers,
Florian.

Florian von Kurnatowski, Die Harder!

kmcelwain
Posts: 89
Joined: Wed May 10, 2006 5:42 pm
Location: Homer, GA
Contact:

sxaa everyone

Postby kmcelwain » Sun Aug 20, 2006 7:31 pm

Alright...I'll setup a test box and give it a shot.

I do scripts all the time with databases...as I get more used to Scalix...hopefully I'll become more of a doer and less of an asker.

Thanks for the heads up
Karl McElwain

Banks County School System

If you look hard enough you can find it for free.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 2 guests

cron