Is SXAA broken in version 11?

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

netcomrade
Posts: 70
Joined: Mon Aug 21, 2006 2:32 pm

Is SXAA broken in version 11?

Postby netcomrade » Fri Mar 23, 2007 1:03 pm

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Mar 26, 2007 9:03 am

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

netcomrade
Posts: 70
Joined: Mon Aug 21, 2006 2:32 pm

Postby netcomrade » Mon Mar 26, 2007 10:34 am

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


KevinAnderson

Postby KevinAnderson » Mon Mar 26, 2007 1:06 pm

Can you please post the output from:

head `which sxaa`

Thanks
Kev.

netcomrade
Posts: 70
Joined: Mon Aug 21, 2006 2:32 pm

Postby netcomrade » Mon Mar 26, 2007 1:47 pm

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

KevinAnderson

Postby KevinAnderson » Mon Mar 26, 2007 4:53 pm

When specifying the user, can you try it specifying their authID rather than email address? Assuming the email isn't the auth?

Thanks
Kev.

netcomrade
Posts: 70
Joined: Mon Aug 21, 2006 2:32 pm

Postby netcomrade » Mon Mar 26, 2007 5:21 pm

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

Richard Hall
Scalix
Scalix
Posts: 147
Joined: Fri May 20, 2005 5:37 am

Postby Richard Hall » Tue Mar 27, 2007 7:34 am

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

netcomrade
Posts: 70
Joined: Mon Aug 21, 2006 2:32 pm

Postby netcomrade » Thu Mar 29, 2007 11:49 am

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?

Richard Hall
Scalix
Scalix
Posts: 147
Joined: Fri May 20, 2005 5:37 am

Postby Richard Hall » Thu Mar 29, 2007 12:33 pm

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


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 1 guest

cron