Domain directory deleted

2001-04-22 Thread Guillaume Monfort

Hello there

I don't know how, but one of my user has
deleted his whole domain directory. I only
know that this has been done with qmailadmin.

the facts are :

- i don't have anymore the /home/vpopmail/domains/clientdom.com
- i still have the whole mysql database entries
- the qmail conf  also remains untouched

so now i wish to know if there is on way to rebuild the
clientdom.com directory from the database.

i don't want to readd manually each users !
tought, i don't have the plaintext passwords ..

thanks for your help




Re: Domain directory deleted

2001-04-22 Thread Kris von Mach

At 11:03 PM 4/21/2001 -0300, you wrote:
  Hello there
 
  I don't know how, but one of my user has
  deleted his whole domain directory. I only
  know that this has been done with qmailadmin.

It's a lie. qmailadmin doesn't do that, or ever are allowed for this.
Next time try to explain better your mistake.

Actually, this happened to me as well.

I was running qmailadmin 0.42... I have lots of domains on my server... and 
about a week ago, I added some domain, I even created a custom 
.qmailadmin-limits file, so I know the directory was in fact there, and I 
did login as postmaster@domain, and tried qmailadmin to make sure it was 
all good... Over the night, the customer was playing with his new domain, 
setting up users and what else not, and welp in the morning the whole 
directory was deleted.

I don't know what happened, this was the only time it has ever happened to 
me and it hasn't happened since.

The only program that I can think of that would be able to delete the 
directories would be qmailadmin.

And certainly I didn't delete it.

I am still trying to find out what happened as I have no idea what did 
occur. And knowing this happened to someone else, at least lets me know 
that I am not going crazy.

__
Kris.




Re: Domain directory deleted

2001-04-22 Thread Eduardo Augusto Alvarenga

 Hello there
 
 I don't know how, but one of my user has
 deleted his whole domain directory. I only
 know that this has been done with qmailadmin.

It's a lie. qmailadmin doesn't do that, or ever are allowed for this.
Next time try to explain better your mistake.

 
 the facts are :
 
 - i don't have anymore the /home/vpopmail/domains/clientdom.com
 - i still have the whole mysql database entries
 - the qmail conf  also remains untouched
 
 so now i wish to know if there is on way to rebuild the
 clientdom.com directory from the database.

Build a simple ready-to-use perl script to get the usernames from your
SQL table, and exec the vadduser command using each pw_name line.
Or even get only the pw_name field names, copy it to an text file and
put a "vadduser" after every user manually.
The passwords are stored only in your SQL table, no worry for plain text
pass.

 
 i don't want to readd manually each users !
 tought, i don't have the plaintext passwords ..
 
 thanks for your help


Best Regards,

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Eduardo Augusto Alvarenga - Analista de Suporte - #179653
Blumenau - Santa Catarina. Tel. (47) 9102-3303
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

 /"\
 \ /  Campanha da Fita ASCII - Contra Mail HTML
  X   ASCII Ribbon Campaign - Against HTML Mail
 / \



Re: Domain directory deleted

2001-04-22 Thread Guillaume Monfort


It's a lie. qmailadmin doesn't do that, or ever are allowed for this.
Next time try to explain better your mistake.

No, it's not.
the user has created a pop account with a filled gecos but an
empty pop username. and yes, qmailadmin (0.39) allows that !

i'v tried to readd the domain and got an error because the postmaster
already exists in the database. after that, i saw strange things.
if i post to anyone user of this domain, the userdir seems to be
automagically regenerated by vpopmail with the database infos.

now i have to upgrade to qmailadmin 0.42.




Re: Domain directory deleted

2001-04-22 Thread Kris von Mach

Actually, I was running 0.42 when this happened to me. So as per Javier's 
F. suggestion, upgrade to 0.43

I have already upgraded, but didn't have time to test it yet to see if it 
still happens.

__
Kris.

At 05:48 PM 4/22/2001 +0200, you wrote:

It's a lie. qmailadmin doesn't do that, or ever are allowed for this.
Next time try to explain better your mistake.

No, it's not.
the user has created a pop account with a filled gecos but an
empty pop username. and yes, qmailadmin (0.39) allows that !

i'v tried to readd the domain and got an error because the postmaster
already exists in the database. after that, i saw strange things.
if i post to anyone user of this domain, the userdir seems to be
automagically regenerated by vpopmail with the database infos.

now i have to upgrade to qmailadmin 0.42.





Re: Domain directory deleted

2001-04-22 Thread Guillaume Monfort

At 18:16 22/04/2001, you wrote:
Actually, I was running 0.42 when this happened to me. So as per Javier's 
F. suggestion, upgrade to 0.43

I have already upgraded, but didn't have time to test it yet to see if it 
still happens.

__
Kris.

At 05:48 PM 4/22/2001 +0200, you wrote:

It's a lie. qmailadmin doesn't do that, or ever are allowed for this.
Next time try to explain better your mistake.

No, it's not.
the user has created a pop account with a filled gecos but an
empty pop username. and yes, qmailadmin (0.39) allows that !

i'v tried to readd the domain and got an error because the postmaster
already exists in the database. after that, i saw strange things.
if i post to anyone user of this domain, the userdir seems to be
automagically regenerated by vpopmail with the database infos.

now i have to upgrade to qmailadmin 0.42.


sorry but i forgot one important step that the user has done.
after creating this silly pop account with an empty name,
he deleted it and from this the domain.com directory has
disapear.


i'll try to reproduce this and after that i'll upgrade to .43 (beta)
and try again. i'll let you know what happend then.




Re: Domain directory deleted

2001-04-22 Thread Javier Frias

yeah, it was a bug in the autoresponder code if I remember correctly.

It allowed to create an autoresponder without a name, which
had an adverse effect. when you tried to delete it, it would do a
call do delete the autoresponder directory, which if your autoresponder
name was empty.. well, the dir would be your domain dir. :( 

( an autoresponder without a name is for having all mail to the
domain reply with anautoresponder, which is kinda useless anywayz ) 

as far as i knew, this was fixed by me on .35 

0.35
Aug 8  - fix autorespond problem. If you added an autoresponder with out
filling in the name. Then deleted the autoresponder, it would
delete the entire domain. 


it might have been introduced again in a dev version
(althoug am not sure), but it seems fixed on .43 


the lingering problem is that, although the newer versions don't allow
empty autoresponder names.. they will still delete one. 


so if you had empty autoresponders, and upgraded to a newer version, you
are still at risk. 

i would suggest seraching you domains for .qmail-default files with
the autoresponderprogram in them, and fixing accordingly. 


well, hope this helps 


 -Jav
[EMAIL PROTECTED] 


Kris von Mach writes: 

 At 11:03 PM 4/21/2001 -0300, you wrote:
  Hello there
 
  I don't know how, but one of my user has
  deleted his whole domain directory. I only
  know that this has been done with qmailadmin. 
 
 It's a lie. qmailadmin doesn't do that, or ever are allowed for this.
 Next time try to explain better your mistake.
 
 Actually, this happened to me as well. 
 
 I was running qmailadmin 0.42... I have lots of domains on my server... 
 and about a week ago, I added some domain, I even created a custom 
 .qmailadmin-limits file, so I know the directory was in fact there, and I 
 did login as postmaster@domain, and tried qmailadmin to make sure it was 
 all good... Over the night, the customer was playing with his new domain, 
 setting up users and what else not, and welp in the morning the whole 
 directory was deleted. 
 
 I don't know what happened, this was the only time it has ever happened to 
 me and it hasn't happened since. 
 
 The only program that I can think of that would be able to delete the 
 directories would be qmailadmin. 
 
 And certainly I didn't delete it. 
 
 I am still trying to find out what happened as I have no idea what did 
 occur. And knowing this happened to someone else, at least lets me know 
 that I am not going crazy. 
 
 __
 Kris.