Results 1 to 8 of 8

Thread: Deleting Accounts using Command Line Batch File

  1. #1
    Join Date
    Mar 2006
    Location
    Winnipeg
    Posts
    13
    Rep Power
    9

    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

  2. #2
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    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
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    Join Date
    Mar 2006
    Location
    Winnipeg
    Posts
    13
    Rep Power
    9

    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?

  4. #4
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    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.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  5. #5
    Join Date
    Feb 2006
    Location
    France (Haute-Savoie)
    Posts
    123
    Rep Power
    9

    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 !

  6. #6
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    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.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  7. #7
    Join Date
    Mar 2006
    Location
    Winnipeg
    Posts
    13
    Rep Power
    9

    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?

  8. #8
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Yes both MySQL, LDAP and the message files on disk.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

Similar Threads

  1. centos 5 zimbra 4.5.6 no statistics
    By rutman286 in forum Installation
    Replies: 9
    Last Post: 08-14-2007, 10:30 AM
  2. BUILD FAILED error is killing me
    By hanysys in forum Developers
    Replies: 11
    Last Post: 05-11-2007, 07:09 AM
  3. Opensource backup Question.
    By nfear24 in forum Administrators
    Replies: 3
    Last Post: 04-01-2007, 12:47 AM
  4. Traslation SVN tree status
    By meikka in forum I18N/L10N - Translations
    Replies: 7
    Last Post: 02-13-2007, 11:13 AM
  5. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 01:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •