Lost all accounts and emails in one virtual email domain

Discussion in 'Installation/Configuration' started by sxlderek, Jul 2, 2012.

  1. sxlderek

    sxlderek New Member

    Hi All,

    I have ISPC 3.0.4.1 running in 2 Ubuntu 10.04 OpenVz contrainers.
    1st server for DNS, Web, MySQL, etc.
    2nd server for DNS, Postfix, Dovecot, Webmail, etc.
    These servers has been running fine for almost a year.

    But today, in one of the virtual domain, all emails and account settings lost. The domain folder does not even existing in /var/vmail/(domain).

    Now I want know

    1. how to restore everything related to this particular domain from backup. The backup is a simple "tar" of everything in the server (created by vzdump command)

    2. what can cause this? is the customer delete his own domain from the control panel?

    Please help, this is quite urgely.
    Thank you in advance.

    --
    Derek Chan
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Restore the folder /var/vmail/domain.tld of the deleted domain from your backup. To get the domain back in the controlpanel, either restore a database backup of the ispconfig database which was created before the domain got deleted or recreate the domain and mailboxes in ispconfig before you copy back the emails from the file backup.

    Thast the most likely reason.
     
  3. sxlderek

    sxlderek New Member

    Thank you so much for your quick reply Till,

    I created a mail domain (with the same name) via ISPconfig web interface.

    Then I restored only the records of this particular domain to the mail_user table

    And then, I restored the /var/vmail/(domain) directory.

    Now, everything "looks" right in the ispconfig web, but users cannot login to their mail account.

    Code:
    Jul  2 19:18:51 h12 dovecot: imap-login: Aborted login (auth failed, 1 attempts): user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    
    If I create a new email account in this domain, it works fine.

    What I am missed?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Did you check if these records have unique IDs?
     
  5. sxlderek

    sxlderek New Member

    I didn't check. I end up reset everybody's password form the control panel and it works.

    Thank you again for your help :)
     

Share This Page