[vchkpw] Help..... server crashed

2005-12-28 Thread gccrowd - crowdness
My server crashed and I had been running QMail, vpopmail, courier-imap, 
etc for a couple years now.  I was able to back up the /home/vpopmail 
directory, but didn't get to back up anything else.


I have courier-imap running and I got vpopmail installed (at least I 
think I do).  When I do a bin/vuserinfo user, I get the following:


bin/vuserinfo user
Error. Domain  was not found in the assign file
name:   user
passwd: long password string here
clear passwd: real password here
uid:1
gid:0
flags:  0
gecos: user
limits: No user limits set.
dir:   /home/vpopmail/users/user
quota: NOQUOTA
usage: NOQUOTA
last auth: Wed Feb 16 07:44:06 2005
last auth ip: 127.0.0.1

Though the /home/vpopmail/domains directory is there with the domains, 
it's not seeing the domains and is looking for the assign file.  How do 
I recreate the assigns file?  Do I do it manually?   How do I recreate 
the vpasswd file(s) properly so that I can log in and get the mail?


Do I need to go and completely reinstall qmail and all the things with 
it?  I just want to get the old mail out so I can save it.  I was using 
squirrelmail and had subfolders, etc.  I would like to be able to get 
all my mail ie. the sent ones and the ones that are in other folders.


Any thoughts, suggestions?

Thanks in advance.




Re: [vchkpw] Help..... server crashed

2005-12-28 Thread gccrowd - crowdness

Tom,

The last option, once I do the vadddomain, will I want to do the 
vaddusers or no?  The original vpasswd files are still there, so I would 
assume not?


I'll give that a go, since there are only 2 domains.

Gary

Tom Collins wrote:


On Dec 28, 2005, at 10:01 PM, gccrowd - crowdness wrote:

Though the /home/vpopmail/domains directory is there with the 
domains, it's not seeing the domains and is looking for the assign 
file.  How do I recreate the assigns file?  Do I do it manually?   
How do I recreate the vpasswd file(s) properly so that I can log in 
and get the mail?



Manually create the assigns file, entry for example.com is as follows:

+example.com-:example.com:89:89:/home/vpopmail/domains/example.com:-::

Replace 89:89 with the uid and gid of the vpopmail user.  Set the 
correct path to example.com as well.


Make sure the last line of users/assign is just a ..

Run qmail-newu.

You'll also want to make sure that the domains are in rcpthosts (or 
morercpthosts, but you'll have to run qmail-newmrh).  Also put them in 
virtualdomains (format for virtualdomains entries: 
example.com:example.com).


Restart qmail after making all of those additions, to be sure it's 
re-read the files.


Another option, if have less than 100 domains (where they're all in 
the vpopmail/domains directory, and not in vpopmail/domains/0).  
Rename vpopmail/domains to something else and create an empty domains 
directory.  Use ~vpopmail/bin/vadddomain to add all of the domains.  
Delete the newly created domains directory, and swap your backed up 
directory in its place.


Good luck.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: sniffter.com






[vchkpw] Moving old Email after Upgrading

2005-03-10 Thread gccrowd
Ok.  I posted once and haven't gotten a reply.

Does anyone know to move the old email and folders after an upgrade is
performed.

The old structure was /home/vpopmail/users/user/Maildir but with adding
domains, the structure is /home/vpopmail/domains/users/user/Maildr.

I figured tarring up the old Maildir and untarring it to the new Maildir
would do it.  It didn't, so luckily I had a backup before I tried it. 
What happened was that the only directory that showed up was the Inbox. 
It would not let me access or create a Sent or Drafts or anything, since
it thought it did exist.  It did exist, but was not accessible.  it wasn't
a permissions problem either.

So, can I get some help as some users have a large number of folders they
created with old saved mails.

Thanks.


[vchkpw] Moving old mail

2005-03-06 Thread gccrowd
I recently upgraded to the latest version of qmail, vpopmail and sqwebmail. 

Everything is working properly.  However, with the new release of vpopmail, 
it has the vdomain set up with the users inside the domains directory. 

The earlier version that I was using, didn't do it this way. 

How can I move the old emails and folders and everything to the new 
directories and have the current release read the old emails.  I tried to do 
a tar of the old directory of /home/vpopmail/users/username and restore it 
to the /home/vpopmail/domains/domainname/username and this made the Sent and 
a few other folders disappear.  And I couldn't recreate them, because it was 
saying they existed. 

I've since restore the user directories under the domain name directory to 
what they were before I started. 

Is there an FAQ or something that explains how to move the mail and 
everything? 

Thanks in advance.