Current time: 07-02-2024, 02:21 PM Hello There, Guest! (LoginRegister)


Post Reply 
Problem with /etc/postfix/ispcp/mailboxes almost empty
Author Message
waweiwi Offline
Newbie
*

Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #1
Problem with /etc/postfix/ispcp/mailboxes almost empty
Hi All,

I have ispCP system running for a year but before 2 days, there is a strange case where after any email addition or deletion the /etc/postfix/ispcp/mailboxes deleted all emails and just putted a few lines not more.

Is this related to strange records in the databse ispcp specially in the field mail_users or related to anything else?

How to debug it?

Please advise

BR
01-25-2011 12:12 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Problem with /etc/postfix/ispcp/mailboxes almost empty
I don't know why this happesn.

But just be sure to have a copy of the original file:

make a copy of the latest backup file which contains a full
/etc/ispcp/postfix/working/mailboxes

The backups are in /var/www/ispcp/backups/config-backup....

You may copy the backup to /etc/ispcp/postfix/working/ and with the next change of mail accounts the file should be base for modifications...

/J
01-25-2011 12:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
waweiwi Offline
Newbie
*

Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #3
RE: Problem with /etc/postfix/ispcp/mailboxes almost empty
Hi,

but after any modification to any existing domain the file return to an empty file but with a few email account that read partially from db.

BR
01-25-2011 12:36 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Problem with /etc/postfix/ispcp/mailboxes almost empty
hm - then there is something broken.
Maybe in the database.

/J
01-25-2011 01:09 AM
Visit this user's website Find all posts by this user Quote this message in a reply
waweiwi Offline
Newbie
*

Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #5
RE: Problem with /etc/postfix/ispcp/mailboxes almost empty
yes, I agree with you....

But how to know where is it exactly?

or

What is the steps that the engine follow when adding or deleting emails? is it just read mail_users field from the db and drop it in the file?

I start thinking to delete raw by raw in the mail_users field and watch if this will change the case!!!

BR
01-25-2011 01:24 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Problem with /etc/postfix/ispcp/mailboxes almost empty
Normally it happens this way:

the working copy is taken (/etc/ispcp/postfix/working/mailboxes)
depending on command:
mail add: a new line is added
mail change: the line is searched and deleted and then the new line added
mail delete: the line is searched and deleted
the new file is written to the working copy (see above) and the system (etc/postfix/ispcp/mailboxes) and postmap is run....

So, the mail_users table must be really ugly...
check all the rows where status is not "ok".

/J
01-25-2011 01:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
waweiwi Offline
Newbie
*

Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #7
RE: Problem with /etc/postfix/ispcp/mailboxes almost empty
all the stats there are ok!!!!!!!
01-25-2011 02:28 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: Problem with /etc/postfix/ispcp/mailboxes almost empty
So, I'd enable debugging and have a look at the ispcp logfiles...

/J
01-25-2011 03:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)