[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] virtusertable corupted!



You probably have a Raq 2 since this should not occur on the Raq3. The problem is that two people are updating the virtusertable at the same time. At least that is what technical support told me.

Their solution was to go through every site and uncheck accept email for domain, save changes, check email for domain and save changes again.

They also told me that this was a bug they where aware of and was working on a solution.

Since my company had about170 or so sites on our Raq2 I didnt whant to go through each and every site with the UI. Instead I made a script that made a paste-in file.

It's like this.

#!/usr/bin/perl
# Author:   Per-Olof Pettersson
# Copyright:  egenWEB AB 2000
# Creates strings for insertion in: /etc/virtusertable
#
use strict;
my @a = <STDIN>;
my $line;
my $newline;
my $domain1;
my $domain2;
foreach $line (@a){
 chop($domain1 = $line);
 $domain2 = substr($domain1, rindex($domain1,'.',rindex($domain1,'.')-1)+1);
 $newline = "\@$domain2\t%1\@$domain1\n";
 print STDOUT $newline;
}

Then you could use (assuming the script was named fix.pl):
ls /home/sites | grep "." | fix.pl >  pastefile.txt

This will input all directories with a dot into the script and output the result for paste in the file pastefile.txt.

Hope this will be of some help.

Sincerely
Per-Olof Pettersson
egenWEB AB
peo@xxxxxxxxxxx

----- Original Message ----- 
From: "Jens W. Skov" <jens@xxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Monday, June 26, 2000 12:49 AM
Subject: Re: [cobalt-users] virtusertable corupted!


> I have the same error here!
> Any solutions?
> 
> Horvath wrote:
> 
> > Hello.
> >
> > I have a mail problem which i just cant figure out -about 2 times a week all
> > entries in virtusertable that are in the
> > " accept-email-at-domain routes" section dissapeat and ofcours no one can
> > send mal to anyone no more.
> >
> > Any Ideas?
> >
> > Thanks for any help.
> >
> > Greetings
> > Swen
> >
> > _______________________________________________
> > cobalt-users mailing list
> > cobalt-users@xxxxxxxxxxxxxxx
> > To Subscribe or Unsubscribe, please go to:
> > http://list.cobalt.com/mailman/listinfo/cobalt-users
> 
> --
> Jens W. Skov, JS Consult.
> For high quality web and mail hosting at fair prices visit
> http://www.jnet.dk or contact webmaster@xxxxxxx
> For hard- & software visit http://www.jsconsult.dk
> 
> 
> 
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>