Re: [vchkpw] vDELdomain problem

2008-07-25 Thread Trey Nolen
I did something similar a while back. I had one main domain and another one 
that was aliased to it. I ran vdeldomain on the alias and noticed that the 
command was taking a few seconds.  I stopped the command, but it had trashed a 
bunch of accounts.   I can tell you that it definitely did NOT delete things in 
alphabetical order.  It seemed to delete them in the order they were created. 
It started with accounts in the top level directory and then proceeded into the 
folders below (0, 1, etc.).  One of the first casualties was the vpasswd file 
so noone could authenticate.  You may be using a different authentication 
method, so this may not be the case with you.   Fortunately, I had a good, 
recent backup that saved me...I hope you do too.


Trey Nolen

  - Original Message - 
  From: Root Kit 
  To: vchkpw@inter7.com 
  Sent: Friday, July 25, 2008 2:51 AM
  Subject: [vchkpw] vDELdomain problem


Hello,

I've got a big problem, please help. I've runned vdeldomain on a 
mailserver (unfortunate act), but I've canceled the command fast.

The luck is that only the first user that started with A had no 
emails.  But, in the last time period, another user claimed he has a few mails 
in minus

My question is: HOW vdeldomain acts? How it performs this mail removal? 
Is it in a alphabetical order? In a time order? Or how?

Thank you very much and please provide some help because i'm desperate.

Ronnie. 

   

!DSPAM:4889c75b32311421062762!


Re: [vchkpw] vDELdomain problem

2008-07-25 Thread Root Kit
Thank you for your reply, Trey Nolen.

I was not so lucky with the backup part :)

I confirm, the first file deleted was vpasswd, so the users cannot authenticate.

Maybe someone could provide more help about this.

Thank you.

--- On Fri, 7/25/08, Trey Nolen [EMAIL PROTECTED] wrote:
From: Trey Nolen [EMAIL PROTECTED]
Subject: Re: [vchkpw] vDELdomain problem
To: vchkpw@inter7.com
Date: Friday, July 25, 2008, 5:11 AM



 
 

I did something similar a while back. I had one main domain 
and another one that was aliased to it. I ran vdeldomain on the alias and 
noticed that the command was taking a few seconds.  I stopped the command, 
but it had trashed a bunch of accounts.   I can tell you that it 
definitely did NOT delete things in alphabetical order.  It seemed to 
delete them in the order they were created. It started with accounts in the top 
level directory and then proceeded into the folders below (0, 1, etc.).  
One of the first casualties was the vpasswd file so noone could 
authenticate.  You may be using a different authentication method, so this 
may not be the case with you.   Fortunately, I had a good, recent 
backup that saved me...I hope you do too.
 
 
Trey Nolen
 

  - Original Message - 
  From: 
  Root Kit 
  To: vchkpw@inter7.com 
  Sent: Friday, July 25, 2008 2:51 AM
  Subject: [vchkpw] vDELdomain 
problem
  

  


  Hello,

I've got a big problem, please help. I've 
runned vdeldomain on a mailserver (unfortunate act), but I've canceled 
the command fast.

The luck is that only the first user that 
started with A had no emails.  But, in the last time period, 
another user claimed he has a few mails in minus

My question is: 
HOW vdeldomain acts? How it performs this mail removal? Is it in a 
alphabetical order? In a time order? Or how?

Thank you very much 
and please provide some help because i'm 
desperate.

Ronnie.
 






  

!DSPAM:4889d0b832311012019045!


Re: [vchkpw] vDELdomain problem

2008-07-25 Thread Quey

On 25/07/08 23:10:14, Root Kit wrote:

Thank you for your reply, Trey Nolen.

I was not so lucky with the backup part :)

I confirm, the first file deleted was vpasswd, so the users cannot
authenticate.

Maybe someone could provide more help about this.



That makes sense, if yo delete a domain, you immediately want it
non-usable

how about moving to MySQL, this way you can do hourly  dumps of the  
database, and daily on maildirs - it doesnt help your curent  
situation, but there is nothing you can do now but move forward and  
take measures to prevent it from happening again.


Using MySQL is trivial, more efficent, in fact very efficient if you  
have alot of users and are currently adding/deleting email accounts





Thank you.

--- On Fri, 7/25/08, Trey Nolen [EMAIL PROTECTED] wrote:
From: Trey Nolen [EMAIL PROTECTED]
Subject: Re: [vchkpw] vDELdomain problem
To: vchkpw@inter7.com
Date: Friday, July 25, 2008, 5:11 AM






I did something similar a while back. I had one main domain
and another one that was aliased to it. I ran vdeldomain on the
alias and
noticed that the command was taking a few seconds.  I stopped the
command,
but it had trashed a bunch of accounts.   I can tell you that it
definitely did NOT delete things in alphabetical order.  It seemed
to
delete them in the order they were created. It started with  
accounts

in the top
level directory and then proceeded into the folders below (0, 1,
etc.). 
One of the first casualties was the vpasswd file so noone could
authenticate.  You may be using a different authentication method,
so this
may not be the case with you.   Fortunately, I had a good, recent
backup that saved me...I hope you do too.
 
 
Trey Nolen
 

  - Original Message -
  From:
  Root Kit
  To: vchkpw@inter7.com
  Sent: Friday, July 25, 2008 2:51 AM
  Subject: [vchkpw] vDELdomain
problem





  Hello,

I've got a big problem, please help. I've
runned vdeldomain on a mailserver (unfortunate act), but
I've canceled
the command fast.

The luck is that only the first user that
started with A had no emails.  But, in the last time
period,
another user claimed he has a few mails in minus

My question is:
HOW vdeldomain acts? How it performs this mail removal? Is
it in a
alphabetical order? In a time order? Or how?

Thank you very much
and please provide some help because i'm
desperate.

Ronnie.













!DSPAM:488a4d6232311617615954!



Re: [vchkpw] vDELdomain problem

2008-07-25 Thread Quey

On 25/07/08 23:10:14, Root Kit wrote:

Thank you for your reply, Trey Nolen.

I was not so lucky with the backup part :)



This is also a high priority for you to sort out, write your backup  
scripts in perl, so they can mail you if it has problems, I do this  
with all backups, it means manually checking them once a month or so,  
rather than day or two.


I do a rolling 7 day backup of vpopmail dirs with rsync, but I do a  
168 hour rolling mysqldump backup, so I can go back to any hour  
within the past 7 days.


But your immediate next action is to learn and use onchange , this  
is perhaps the single biggest thing that could have saved you,  
because you can have it tar up and dump the database entries for that  
domain and whatever upon a domain deletion command, so in your case,  
all you need do is vadddomain again, restore the tar file, and re  
import the database dump for that that domain, again, it does not  
help you now, but it wil save your butt if it happens again.




!DSPAM:488a4fe932311570884359!



Re: [vchkpw] vdeldomain issue

2005-07-06 Thread Rainer Duffner

Pablo Medina wrote:


Hi all.
Hope someone can help me

I am running a qmail/vpopmail/maildrop installation in a mail box.
Yesterday the box stopped receiving mail. All mail was rejected with
the error:

421 unable to read controls

After a quick search in the net i solved it chmodding
/var/qmail/control/rcpthosts.

But i was yet to discover what could cause this , as this box was
running smoothly for months.

The last think i did was add and delete a domain via popmaild. So
today i tried again. Logged to the server via popmaild

add_domain sample.com
list_domains
del_domain sample.com

and bang...the server stops receiving mail.

bash-3.00$ telnet xxx.xxx.xxx.xxx 25
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx.
Escape character is '^]'.
421 unable to read controls (#4.3.0)

vpopmail version is : 5.5.3 (downloaded from http://www.inter7.com/vhostadmin)

 






I think you want to stay in the 5.4.x-tree, if you want to run it on a 
production-system and keep your sanity.

(And your customers)




Rainer



Re: [vchkpw] vdeldomain issue

2005-07-06 Thread Pablo Medina
Hi

yep. i agree, but that means no vpopmaild for you. I was very happy
wirting an ASP app to use it.
Beside this,  i have three versions of vpopmail:

vpopmail-latest-cvs
vpopmail-5.5.3
vpopmail-5.4.10

and the three versions seems to chmod files properly using
chmod(tmpbuf1, VPOPMAIL_QMAIL_MODE )

So i guess the problem is elsewhere. Anyway, i do not see a bug report
about this so it seems it is something related to my configuration.

TIA



2005/7/6, Rainer Duffner [EMAIL PROTECTED]:
 Pablo Medina wrote:
 
 Hi all.
 Hope someone can help me
 
 I am running a qmail/vpopmail/maildrop installation in a mail box.
 Yesterday the box stopped receiving mail. All mail was rejected with
 the error:
 
 421 unable to read controls
 
 After a quick search in the net i solved it chmodding
 /var/qmail/control/rcpthosts.
 
 But i was yet to discover what could cause this , as this box was
 running smoothly for months.
 
 The last think i did was add and delete a domain via popmaild. So
 today i tried again. Logged to the server via popmaild
 
 add_domain sample.com
 list_domains
 del_domain sample.com
 
 and bang...the server stops receiving mail.
 
 bash-3.00$ telnet xxx.xxx.xxx.xxx 25
 Trying xxx.xxx.xxx.xxx...
 Connected to xxx.xxx.xxx.xxx.
 Escape character is '^]'.
 421 unable to read controls (#4.3.0)
 
 vpopmail version is : 5.5.3 (downloaded from 
 http://www.inter7.com/vhostadmin)
 
 
 
 
 I think you want to stay in the 5.4.x-tree, if you want to run it on a
 production-system and keep your sanity.
 (And your customers)
 
 
 Rainer
 



RE: [vchkpw] Vdeldomain

2002-10-29 Thread Clayton Weise
Check your qmail configs to see if it's in there:

/var/qmail/control/virtualdomains
/var/qmail/control/rcpthosts
/var/qmail/users/assign

And after you've changed those, you'll need to run a qmail-newu to rebuild
the assign cdb file.

-Clayton

-Original Message-
From: Zeno Davatz [mailto:zdavatz;ywesee.com]
Sent: Tuesday, October 29, 2002 10:49 AM
To: [EMAIL PROTECTED]
Subject: [vchkpw] Vdeldomain


I deinstalled vpopmail and installed it again from source.

I do vdeldomain yweseelocal.com and get:
Error: Domain does not exist.

I do vadddomain yweseelocal.com and get:
Error: Domain already exists.

What can I do to remove the domain completely so that I can add it again.

Thanks for any help and hints.

Zeno







Re: [vchkpw] Vdeldomain

2002-10-29 Thread Zeno Davatz
On 29.10.2002 20:14 Uhr, Clayton Weise [EMAIL PROTECTED] wrote:

 Check your qmail configs to see if it's in there:
 
 /var/qmail/control/virtualdomains
 /var/qmail/control/rcpthosts
 /var/qmail/users/assign
 
 And after you've changed those, you'll need to run a qmail-newu to rebuild
 the assign cdb file.
Thanks Clayton, for your kind help. You saved my night.

Zeno

 -Original Message-
 From: Zeno Davatz [mailto:zdavatz;ywesee.com]
 Sent: Tuesday, October 29, 2002 10:49 AM
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] Vdeldomain
 
 
 I deinstalled vpopmail and installed it again from source.
 
 I do vdeldomain yweseelocal.com and get:
 Error: Domain does not exist.
 
 I do vadddomain yweseelocal.com and get:
 Error: Domain already exists.
 
 What can I do to remove the domain completely so that I can add it again.
 
 Thanks for any help and hints.
 
 Zeno
 
 
 
 
 

-- 
Mit freundlichen Grüssen / best regards

Zeno Davatz
Strategie  Akquisition

+41 1 350 85 86

www.ywesee.com  intellectual capital connected  www.generika.cc