3 questions about Scalix work

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

Russia

3 questions about Scalix work

Postby Russia » Wed Jan 23, 2008 5:12 am

Hello guys!

Write you from Russia. My english is not very good. We install Scalix server and now i have some problems. I know what is "search" and read many different topics.

1. The old problem

ClamAV and SR

If clamav doesn't start, sr doesn't start too. But my clamav start for about five minute, because he is looking his base. How can i do that sr can start good or first or without starting clamav?

2.SPAM

I have a lot of spam. I use sa-learn, but i have for about 30 spam-letters each day. Tell me please the effective decision of the spam problem. for example: use spamassassin+mailwasher+dnsbl

3.rci and backup

when i do scalix bacup? i am stooping and then strating rci/ And he doesn't start. my backup script:

#!/bin/sh
#
#
#Cleanup from last run
#
echo 'Mailbox backup and maintenance Started\t: ' `date +%H:%M` >> /Backup/Scalix/ombackup.log
echo 'dir ' `pwd` >>/Backup/Scalix/ombackup.log
echo >> /Backup/Scalix/ombackup.log
mv -f /Backup/Scalix/Week/*.dat /Backup/Scalix/tmp/
mv -f /Backup/Scalix/Week/*.gz /Backup/Scalix/tmp/
#
#
#Start of backup
#
/opt/scalix/bin/omoff -d 0 -s rci
#/opt/scalix/bin/omoff -d0 -s rci
#/opt/scalix/bin/omshowu -m all > /root/tmp.$$
/opt/scalix/bin/omshowu -m all > ./tmp.$$
go()
{
# ------------------ backupusers ------------------
while read user
do
name=$(echo $user | awk -F "/" '{print $1}')
org=$(echo $user | awk -F"/" '{print $2}')
/opt/scalix/bin/sxmboxexp -u "$name" -a "/Backup/Scalix/Week/$name$org.dat"
#/bin/gzip -9 "/Backup/Scalix/Week/$name$org.dat"
echo "Completed backup $name at `date`" >> /Backup/Scalix/ombackup.log
if [ $? -ne 0 ]
then
echo "error backing up $user" >> /Backup/Scalix/ombackup.log
exit 1;
fi
done
# -----------------------------------------------------
/opt/scalix/bin/omoff -d 0 rci
/opt/scalix/bin/omon -s rci
}
# ------------------- gzip ----------------------------
gg()
{
while read user
do
name=$(echo $user | awk -F "/" '{print $1}')
org=$(echo $user | awk -F"/" '{print $2}')
#sxmboxexp -u "$name" -a "/Backup/Scalix/Week/$name$org.dat"
/bin/gzip -9 "/Backup/Scalix/Week/$name$org.dat"
echo "Completed gzip $name at `date`" >> /Backup/Scalix/ombackup.log
if [ $? -ne 0 ]
then
echo "error backing up gzip $user" >> /Backup/Scalix/ombackup.log
exit 1;
fi
done
#omon -s rci
}
#
#
#
#Remove temp files
#
go < ./tmp.$$
gg < ./tmp.$$
rm ./tmp.$$
rm -f /Backup/Scalix/tmp/*.*
#
#
#Do Openmail maintenance
#
/opt/scalix/bin/omscan -A -a >> /Backup/Scalix/ombackup.log
#omtidyallu -d -w0 >> /Backup/Scalix/ombackup.log
#
#
#End of script
#
echo 'Mailbox backup and maintenance Finished\t: ' `date +%H:%M` >> /Backup/Scalix/ombackup.log


Thank you for you soft and help.

From Russia with love. :)

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Re: 3 questions about Scalix work

Postby Valerion » Wed Jan 23, 2008 8:11 am

Russia wrote:1. The old problem

ClamAV and SR

If clamav doesn't start, sr doesn't start too. But my clamav start for about five minute, because he is looking his base. How can i do that sr can start good or first or without starting clamav?

Clamd needs to be fully running before the service router will start, if you integrate according to the instructions in the Setup Guide. You could wait for a Scalix startup until clamd is up, or have some script that restarts the SR after a while. There is a guide to getting clamav-milter to work with Scalix on the wiki, in your case that could be a better solution.

Russia wrote:3.rci and backup

when i do scalix bacup? i am stooping and then strating rci/ And he doesn't start. my backup script:


You need to do a full omshut before and omrc after the backup, or you need to use LVM with omsuspend to ensure a reliable backup. Just shutting down RCI is not enough, as emails will still be flowing through the system.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 6 guests

cron