Page 1 of 1

Is SXAA broken in version 11?

Posted: Fri Mar 23, 2007 1:03 pm
by netcomrade
We rely on sxaa to rotate our on call folks.

On old scalix server:
[root@mt-adm2 ~]# sxaa --user primary@mycompany.com --info 500
Action
------
FORWARD
TO : S=1234570682/OU1=internet/DDT1=RFC-822/DDV1=1234570682@vtext.com/CN=1234570682/INTERNET-ADDR=1234570682@vtext.com


on new server after migration (and why do all the rules start with 600 vs 500 now, btw?):

[root@mt-nfs2 bin]# sxaa --user primary@mycompany.com
OOF FLT OLK AANO ACTION TITLE STATE
--- --- --- ---- ---------- ------------------------------ --------
500 FORWARD SXAA FORWARD:500 enabled
[root@mt-nfs2 ~]# sxaa --user pridba@mycompany.com --remove 500
[root@mt-nfs2 ~]# sxaa --user pridba@mycompany.com --forward 1234563630@vtext.com
[root@mt-nfs2 ~]# sxaa --user pridba@mycompany.com --info 600

Action
------
FORWARD
TO : 0

Posted: Mon Mar 26, 2007 9:03 am
by ScalixSupport
Hi!

on new server after migration (and why do all the rules start with 600 vs 500 now

The code of sxaa makes the Auto-Action reference numbers to start from 600, the code
snippet below:

Code: Select all

#
# Find the next available AA_NO
#
def GetNextAANo(aa_file):
        max_aa_no = 600
        for line in aa_file:
                if line[0] == "AA_NO":
                        aa_no = int(line[3])
                        if aa_no >= max_aa_no:
                                max_aa_no = aa_no + 1
        return max_aa_no


What is the result for the command below:

Code: Select all

sxaa --user pridba@mycompany.com

Thanks,
Subir

Posted: Mon Mar 26, 2007 10:34 am
by netcomrade

Code: Select all

[root@mt-nfs2 ~]# sxaa --user pridba@mycompany.com
OOF FLT OLK AANO ACTION         TITLE                           STATE
--- --- --- ---- ----------     ------------------------------  --------
            600  FORWARD        SXAA FORWARD:600                enabled
[root@mt-nfs2 ~]# sxaa --user pridba@mycompany.com--info 600
Action
------
FORWARD
TO : 0


Posted: Mon Mar 26, 2007 1:06 pm
by KevinAnderson
Can you please post the output from:

head `which sxaa`

Thanks
Kev.

Posted: Mon Mar 26, 2007 1:47 pm
by netcomrade

Code: Select all

[root@mt-nfs2 oracle]# which sxaa
/usr/local/bin/sxaa
[root@mt-nfs2 oracle]# ls -ltrh /usr/local/bin/sxaa
-rwxr-xr-x  1 root root 25K Jan 17 13:13 /usr/local/bin/sxaa
[root@mt-nfs2 oracle]# more /usr/local/bin/sxaa
#!/usr/bin/python
"""
$Id: sxaa,v 1.12 2007/01/17 18:12:16 dkelly Exp $
"""

Posted: Mon Mar 26, 2007 4:53 pm
by KevinAnderson
When specifying the user, can you try it specifying their authID rather than email address? Assuming the email isn't the auth?

Thanks
Kev.

Posted: Mon Mar 26, 2007 5:21 pm
by netcomrade
KevinAnderson wrote:When specifying the user, can you try it specifying their authID rather than email address? Assuming the email isn't the auth?


If authid is what we log in as, then email is the authid. No-one really logs in as this user though, it's just for forwarding to pagers. The user is a 'standard' user..

Edit: logged into sac, this is the authid under 'advanced' tab

Posted: Tue Mar 27, 2007 7:34 am
by Richard Hall
I think this is just a listing problem, the auto-forward rule has been applied.

It seems that with Scalix 11 the data in the auto-forward distribution list can vary slightly which means that the display code for the FORWARD does not always work.

This change will fix it:

Code: Select all

--- sxaa        2007-03-25 11:53:33.000000000 +0100
+++ sxaa.new    2007-03-27 13:43:46.000000000 +0100
@@ -471,7 +471,7 @@
                                forward_dl = LoadTF(forward_file)
                                for line in forward_dl:
                                        if line[0] in ("TO", "CC", "BCC"):
-                                               if is_Equinox():
+                                               if line[1] == "(DN)":
                                                        print line[0],":",line[4][1]
                                                else:
                                                        print line[0],":",line[6][1]

replacing the if is_Equinox(): on line 474 with if line[1] == "(DN)".
Works for me now.

Cheers - Richard

Posted: Thu Mar 29, 2007 11:49 am
by netcomrade
That worked thanks.

What do you mean 'does not always work', it seems like you were able to reproduce.

Is there are another tool that can do forwarding?

Posted: Thu Mar 29, 2007 12:33 pm
by Richard Hall
There is a Scalix Rules Wizard for SWA and Outlook clients (Tools/Rules Wizard) that can be used to set up server-based auto-forward rules.

Depending exactly how the FORWARD rule was set up determined whether sxaa could display it (before the fix).

Richard