Home Forums OS X Server and Client Discussion Mail Need to clear out old email accounts on 10.4 server

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #378736
    Demani
    Participant

    There are a bunch of old accounts still in the mail store directory, but the backups are getting a little unwieldy. I need to pull out those accounts. The accounts were all deleted from Workgroup Manager. Can I just pull out the directories manually, or do I need to use cyradm to remove those to make sure cyrus doesn’t get all screwed up?

    #379098
    donovan
    Participant

    greetings check if the user info is still in the data base, stop cyrus, remove the account, remove files, start cyrus.

    dscl /LDAPv3/127.0.0.1/ -read Users/johndoe

    serveradmin stop mail

    dscl /LDAPv3/127.0.0.1/ -delete Users/johndoe

    rm -Rf /var/spool/imap/Users/johndoe

    serveradmin start mail

    using mailbfr to repair db may be useful if the folders reappear

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed