۱۳۹۲ مرداد ۲۰, یکشنبه

Backup failed ~ could_not_zip_dir: Invalid domain name

Problem:
Your backup does not work and stops. You get the above mentioned error. The incoming emails remains as a the mail waiting to be sorted.

Solution:

Check the assign files for qmail in here:

/var/qmail/users

and compare the user accounts in this assign files and kloxo database. There may be two files, one assign and the other assign.rpmnew.

If they are incomplete, i.e. the users in that file are not the same as in the kloxo database, then it throws such an error. They are not in harmony with kloxo database.

A current set is ONE ASSIGN file together with a compiled file known as cdb.

Delete the file assign.lock, if there.

Then follow the steps as below:

1) BACKUP MAIL ACCOUNTS
Make a copy of the directory (where all the mail accounts are stored) from /home/lxadmin/mail/domains/* to somewhere else. 
This will copy all the mails resting on the server and secure it.

2) SELECT A BETTER ASSIGN FILE
Choose a set of assign file and its respective cdb, whichever has the max number of all accounts.

If the current assign file has more mail accounts then do nothing. 

If assign.rpmsave has more, you need to rename it to assign and rename cdb.rpmsave ---> cdb also. Obviously you need to rename the assign + cdb file to assign.old + cdb.old before doing that.

3) DELETE MISSING MAIL ACCOUNTS FROM KLOXO
Delete - from kloxo panel - all the missing mail accounts (from their respective clients) that are not in the chosen assign (Step 1) file.

4) CREATE MISSING MAIL ACCOUNTS IN KLOXO AGAIN
Wait for a minimum of 6 minutes until the kloxo service does certain things internally and within this time restarts again.

Only then create additional mail accounts in kloxo that are missing in assign file.

5) MAKE A FULL BACKUP
Then the usual stuff: Restart kloxo and qmail, make full backup, etc. At the end and kloxo will send you an email.

6) BRING BACK THE MAIL BACKUP
After taking the backup, your kloxo database is in harmony with the assign file.
Copy the mail domain directory from the Step 1 back to its original location.

هیچ نظری موجود نیست: