Page 1 of 1

Editing rules with sxaa

Posted: Wed Sep 05, 2007 1:12 pm
by madaleno
Hi,

I have som eusers using the same rule #508.

sxaa, gives this result:
    sxaa --user my_user
    OOF FLT OLK AANO ACTION TITLE STATE
    --- --- --- ---- ---------- ------------------------------ --------
    Y 501 REPLY Scalix OOF auto-reply disabled
    508 FORWARD admin enabled

How can I add another user to the same rule?
How can I edit/see this rule?

Thanks.

Posted: Wed Sep 05, 2007 4:55 pm
by btisdall
AFAIK there's no programatic way to apply one user's rule to another (if I understand your question correclty).

Code: Select all

sxaa --user <user> --info <reference>


Gives you detail on the rule, where reference is the AutoAction number, eg 508.

Of course you can script sxaa, eg to set a rule for all users you could do something like:

Code: Select all

omshowu -m all | awk -F' /' '{print $1}' | while read user; do sxaa [params...]; done