Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-30-2006, 01:20 PM
Member
 
Posts: 13
Default Deleting Accounts using Command Line Batch File

Hello,

I am curious what happens to the emails when we delete accounts using "zmprov da user@domain.com"

Do all the emails for that account get deleted or..... does running that command only delete an identifier in the database saying this account exists thus leaving all the email hanging in limbo somewhere in some datastore unlinked to an account.

it seems when I delete accounts using zmprov it happens real fast making me think that maybe the actual emails of each account are not being deleted... hence my question.

Cheers,
Kurt
Reply With Quote
  #2 (permalink)  
Old 03-30-2006, 03:10 PM
Zimbra Employee
 
Posts: 4,792
Default

zmprov will just delete the LDAP data. If you want to have the mail removed too you need to use SOAP or the Admin UI. There is a bug filed to make zmprov use SOAP which would handle this case:

http://bugzilla.zimbra.com/show_bug.cgi?id=2430
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 03-31-2006, 07:17 AM
Member
 
Posts: 13
Default

So the mail doesn't get deleted.... doh... that means I have tons of email taking up space with no account attached to it... how can I get rid of all that email stuck in limbo?
__________________
Kurt
kurt2@k2projects.com
Reply With Quote
  #4 (permalink)  
Old 03-31-2006, 08:08 AM
Zimbra Employee
 
Posts: 4,792
Default

You'd need to write a script to find the data in MySQL and remove the DB and message files. Your best bet is to use the admin UI or SOAP interface for deletes.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #5 (permalink)  
Old 04-03-2006, 07:06 AM
Special Member
 
Posts: 123
Default

as you know, certain countries' laws force companies to backup the data for 1 or 2 years.

keep this in mind before deleting the user mailbox !
Reply With Quote
  #6 (permalink)  
Old 04-03-2006, 11:46 AM
Zimbra Employee
 
Posts: 4,792
Default

Quote:
Originally Posted by fmodola
as you know, certain countries' laws force companies to backup the data for 1 or 2 years.

keep this in mind before deleting the user mailbox !
Yes this use case is common in many organizations for compliance. In the end the admin needs to make sure they follow the policies of their org or country. Zimbra will make it easy to implement such rules and set policies with our integrated HSM, backup/recovery, etc.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #7 (permalink)  
Old 04-04-2006, 07:49 AM
Member
 
Posts: 13
Default

But when your server is FULL you gotta get rid of that junk somehow.

I live in Canada the government hasn't become so authoritarian yet that they demand people keep all their email in the name of national security... who knows how long that will last.

Anyway, what happens to the mail when you delete a users's account from the Web Interface? Does this delete the email from the SQL Database?
__________________
Kurt
kurt2@k2projects.com
Reply With Quote
  #8 (permalink)  
Old 04-04-2006, 11:54 AM
Zimbra Employee
 
Posts: 4,792
Default

Yes both MySQL, LDAP and the message files on disk.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.