Sorry, I forgot about /var/qmail/assign.

If you had your domains and passwords in a hash, you could do
for my $domain (keys %hash) {
   my $bad = system('/home/vpopmail/bin/vadddomain', $domain, 
$hash{$domain});
   die $? if $bad;
}

Then I believe simply doing:
cp -Rp /bkup/vpopmail/domains/* /home/vpopmail/domains/

would set up all the users with their same passwords.

AAR, I think this might make a good FAQ.

Again, sorry for the bad info.

>Date: Sat, 07 Jul 2001 16:33:44 +0200
>To: [EMAIL PROTECTED]
>From: Lou Hevly <[EMAIL PROTECTED]>
>Subject: Re: hacked, need help restoring
>
>At 19:30 06/07/01, Jeff Gordon wrote:
>>Our system fell prey to a hacker and we've done a complete system
>>reinstall -- BUT only /home was backed-up and restored -- so, 
>>anything
>>vpopmail had created in /var/qmail/control is now missing-in-action;
>>and I think certain permisssions settings might be absent now too, 
>>lost
>>when we had to reconstruct /etc/passwd records to match owner-IDs on
>>the backed up files and subdirectories in /home. :(
>>
>>Is there any reasonable way to "set things right" from here?  Or is 
>>the
>>only sane option to re-create vpopmail domains, lists and users from
>>scratch?
>
>You don't say whether the ~/vpopmail was saved (some people install it
>under /var).  Assuming so, then AFAIK re-installing qmail should make
>all the permissions corect for /var/qmail/control. Then you need only
>add a line for each of your domains to rcpthosts:
>visca-server.com
>hevly.com
>parcir.com
>etc.
>
>Then a line like the following in virtualdomains:
>visca-server.com:visca-server.com
>hevly.com:hevly.com
>parcir.com:parcir.com
>etc.
>
>Do `chown -R vpopmail.vchkpw /home/vpopmail/domains`
>Restart qmail (checking to see that the UID and GID of vpopmail are 
>correct)
>and everything should be as it was.

-- 
All the best (Ad�u-siau),
Lou Hevly
[EMAIL PROTECTED]
http://www.visca.com

Reply via email to