000003d - file in der folder /var/opt/scalix/USER

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

eproducts
Posts: 44
Joined: Tue Nov 28, 2006 2:16 pm

000003d - file in der folder /var/opt/scalix/USER

Postby eproducts » Thu Jan 25, 2007 6:48 am

Is it possible to create the file 000003d (Rules) without using the command "sxaa"?

The sxaa command need a long time if there are more than 3 USER-accounts on the server. (depends on the number of rules, i know) ;-)

I am looking for a script which create the 000003d-file in order to copy the 000003d-file in every USER folder.

Any idea?


Thanks
Thorsten

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

Postby ScalixSupport » Thu Jan 25, 2007 8:09 am

Hi Thorsten,

To know a user's folder try the command "omshowu -n <username>/<mailnode> -f". The
option -f tells you the users folder. Now, copy the file ~/user/g0000nn/000003d (user for
whom you have created the rules) to ~/user/g0000mn/000003d (user for whom you want
the same rules to be applicable).

I tried the same, and you have made me know something new. :lol:

Thanks,
Subir

eproducts
Posts: 44
Joined: Tue Nov 28, 2006 2:16 pm

Postby eproducts » Thu Jan 25, 2007 8:42 am

Hi Subdir,

that isn't the problem. I know the folders of each user.

I want to generate the 000003d file without using "sxaa".

"sxaa" takes a long time for example 50 rules. So i am looking for the algorithm to generate the 000003d without sxaa. Like generating with perl, php or something else, but not python ;-)

Do you understand what i mean?


Cheers
Thorsten

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

Postby ScalixSupport » Thu Jan 25, 2007 9:01 am

Hi Thorsten!

Oh! I thought you have already created rules for one user and need to implement the same
for the others. So if this had been the question I answered you.

To generate the file from scratch without using sxaa for each user? :( I would suggest to
go ahead and have a look at the working of sxaa form its code itself. Or else generate the
rules for atleast one user and copy the same for all other users.

BTW I am not subdir :lol:

Thanks,
Subir

ls-al
Scalix Star
Scalix Star
Posts: 510
Joined: Tue Jun 29, 2004 8:28 am
Location: Leipzig, Germany
Contact:

Postby ls-al » Thu Jan 25, 2007 11:12 am

Some additional hints.
Basically, sxaa is nothing else than a wrapper for the "cmd" you will find in the code. But surely a very intelligent one.
If you search for this diagnostic tool in the forum and on the net you will find some interesting resources about this problem.
I adapted a perl-script to modfiy 3d-files some years ago, initially for Openmail. It is still doing its job on Scalix with just a few modifications.
If you are able to find a description for the 3d-files you should be aware that there are some enhancements and changed behaviours in Scalix.
You should also notice, that - as long there is no official documentation from Scalix - things may change without notice and are possibly not officially supported.

If you just copy the 3d-files between the g-directories take care of the ownership.

Hope this helps,
Dirk


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 13 guests