Questions about scalix

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

kanderson

Postby kanderson » Mon Jan 14, 2008 1:25 pm

Use SXAA and create a rule for each user that will move all messages with the appropriate spam header to a folder named SPAM (or whatever). This rule will need to be created for each user. You can sort the message based on finding ***Spam*** (or whatever) in the message subject, but that will also sort messages that you might NOT want sorted. (Such as if a user forwards a message to you saying "This isn't spam". Stuff like that.

Thanks
Kev.

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Mon Jan 14, 2008 2:44 pm

but how do i create a junk folder for each user?

and what about that archiving tool, where do i need to download it from?

I want to do a flash migration becuz we have less number of users, how do i do it all at once i think there is a tool called Scalix Migration Tool (SMT), can i use this tool for Flash migration? where can i download it or is it built-in 11.3? if not SMT how do i migrated the complete set of users on our server. These users use pop3 service to download mails to there local system.

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Mon Jan 14, 2008 3:11 pm

Code: Select all

#!/usr/bin/perl
#
# Creates a "spam" folder in the user's inbox and sets a
# filterset redirecting all messages marked "[SPAM]" there.
#
# make sure to copy the 'sxaa' file from the scalix
# admin_resource_kit to /usr/bin
#
# usage: create_spam_filter.pl [user_name | all]
#
use strict;
use warnings;
use Mail::IMAPClient;

my $host="hostname";
my $username="mboxadmin";
my $password="password";
my $createFolder="/Inbox/spam";

my $checkUser=$ARGV[0];
my @all_users=`/opt/scalix/bin/omshowu -m all -i`;

foreach my $punter (@all_users){   
   if ($punter eq $checkUser || $checkUser eq "all"){
       chomp $punter;
       my $user="mboxadmin:$username:$punter";
       my $imap  = new Mail::IMAPClient( 'Server' => $host , 'User' => $user , 'Password' => $password  ) or next;
       print "Found user: ".$punter."\n";
       $imap->create($createFolder) or die "Could not create spam folder\n";
       system('/usr/bin/sxaa --user '.$punter.' --file "$createFolder" --subject "[SPAM]" --title "spam filter"');
   }

}


Will this script work for creatinf spma folder and adding spam rules?

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Mon Jan 14, 2008 7:41 pm

kool_kid wrote:Yep that helped me thanks, now i want to create a "junk folder" and then automatically send all spam mails to this folder, how can i achieve this?


Spam gets tagged so you see headers like....

X-Spam-Level: *****
X-Spam-Status: yes

You need to create filter rules looking for these headers via swa or outlook.

spamass-milter can be configured to automatically drop mail scoring beyond a score set via /etc/sysconfig/spamass-milter, Check the man page.

I usually use the "****" headers for rules, looking for "***" or more to file to "Junk E-mail".
Regards,

Les Stott

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Tue Jan 15, 2008 6:25 am

I will try this out

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Fri Feb 01, 2008 4:43 pm

Whenever I'm trying to backup the scalix folder in compressed format using tar tool it throws me "ignoring socket file", is it a risk if i don't copy this files. the command I'm issuing is

tar -cjf <source> </var/opt/scalix

can someone help me with the command.

I tried rsync but it seems to copy the complete scalix folder in folder manner without compressing and it takes 100MB+ whereas when I do the compression it comes to 30MB+. I'm planning to take a daily complete backup.

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Fri Feb 01, 2008 8:47 pm

kool_kid wrote:Whenever I'm trying to backup the scalix folder in compressed format using tar tool it throws me "ignoring socket file", is it a risk if i don't copy this files. the command I'm issuing is

tar -cjf <source> </var/opt/scalix

can someone help me with the command.


first, find the socket files and build a list.....

find /var/opt/scalix -type s -depth > $EXCLUSIONLIST 2>/dev/null

then run a tar such as....

tar -cjf --exclude-from "$EXCLUSIONLIST" <source> < /var/opt/scalix
Regards,

Les Stott

mikevl
Scalix Star
Scalix Star
Posts: 596
Joined: Mon Feb 02, 2004 8:32 pm
Location: New Zealand

Postby mikevl » Sat Feb 02, 2008 3:54 am

Hi

Don't forget to preserve permissions when taring your message store

Mike

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Sat Feb 02, 2008 7:07 pm

Mike,

so the commands should be

> find /var/opt/scalix -type s -depth > $EXCLUSIONLIST 2>/dev/null

> tar -cjf --exclude-from "$EXCLUSIONLIST" --perserve-permissions <source> < /var/opt/scalix

right?

mikevl
Scalix Star
Scalix Star
Posts: 596
Joined: Mon Feb 02, 2004 8:32 pm
Location: New Zealand

Postby mikevl » Sat Feb 02, 2008 7:53 pm

Hi

-p, --preserve-permissions

Mike

mikevl
Scalix Star
Scalix Star
Posts: 596
Joined: Mon Feb 02, 2004 8:32 pm
Location: New Zealand

Postby mikevl » Sat Feb 02, 2008 8:27 pm

Hi

Sorry

Try

omshut

Wait till server is FULLY shut down

/bin/tar -czpf "$BACKUP_DEVICE$BACKUP_FILE" /var/opt/scalix

omrc

If you don't use LVM you need to shut down Scalix completly before you start you message store backup.

Mike

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Sat Feb 02, 2008 9:56 pm

Okay i will take of shutting down Scalix.

I need help with migration, my scenario is

I have 25 users on intranet using scalix community edition, I want to migrate them to new Scalix Enterperise Edition.
I have another 25 users on godaddy.com these ones are on internet. These users are IMAP disabled they only have pop enabled.

What should i do to migrate them. I thought of using OL2003 and migrate them all but its becoming a difficult process.

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Sat Feb 02, 2008 10:10 pm

mikevl wrote:/bin/tar -czpf "$BACKUP_DEVICE$BACKUP_FILE" /var/opt/scalix


What extension do i have to add at the end of the BACKUP_FILE ?

mikevl
Scalix Star
Scalix Star
Posts: 596
Joined: Mon Feb 02, 2004 8:32 pm
Location: New Zealand

Postby mikevl » Sat Feb 02, 2008 11:47 pm

Hi
Extensions. your filename will be /backuppath/scalixbackup.tgz

Mike

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Sat Feb 02, 2008 11:58 pm

mikevl wrote:Hi
Extensions. your filename will be /backuppath/scalixbackup.tgz

Mike


Thanks for the help bro.

Now waiting for someone to help me with migration thing ^^


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 1 guest

cron