• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Mailbox deleting problem

A

ArsenyR

Guest
Hi,

Product info
-----------------------------------------------------
Plesk 10.1.1 inside VZ. OS: Centos 5 x86_64.


Problem
-----------------------------------------------------
When i try to remove a mailbox i get an error

Internal error: Unable to list files: mailmng failed: mailmng: Unable to open dir /var/qmail/mailnames/eco-corp.ru/olga/@attachments: No such file or directory System error 2: No such file or directory Some errors occured. See log for details
Message Unable to list files: mailmng failed: mailmng: Unable to open dir /var/qmail/mailnames/eco-corp.ru/olga/@attachments: No such file or directory System error 2: No such file or directory Some errors occured. See log for details
File class.MailNameFilesList.php
Line 66
Type PleskFatalException

This mailbox does not have an owner. I check for directory mentioned in error log - it exists. This error occurs also when i try to open mailbox for configuration.

Can you help me?

Ars
 
Igor hi!,

Thanks for your reply. Yeas you're right. Exactly this error.

[root@plesk ~]# /usr/local/psa/bin/mail -i [email protected]
Mailname: olga
Domain: eco-corp.ru
Mailbox: true
Password:
Password type:
Unable create Mailname object:Unable create account with ID "22"
 
Well. This was because there was missing entry in the account table for this mail account.
Try to insert data using the following query:

mysql> insert into accounts values (22,'plain','test123');

And check

# /usr/local/psa/bin/mail -i [email protected]

again. If it is ok - try to remove it with

# /usr/local/psa/bin/mail -r [email protected]
 
Igor,

After inserting record to accounts i got this error

[root@plesk etc]# /usr/local/psa/bin/mail -i [email protected]
Mailname: olga
Domain: eco-corp.ru
Mailbox: true
Password: test123
Password type: plain
Mbox quota: Unlimited
Mailgroup: false
mailmng: Unable to open dir /var/qmail/mailnames/eco-corp.ru/olga/@attachments: No such file or directory

System error 2: No such file or directory
Unable to list files: mailmng failed: mailmng: Unable to open dir /var/qmail/mailnames/eco-corp.ru/olga/@attachments: No such file or directory

System error 2: No such file or directory
Some errors occured. See log for details

And indeed directory olga does not exist in /var/qmail/mailnames/eco-corp.ru
 
Try to rebuild mailsettings with

# /usr/local/psa/admin/sbin/mchk --with-spam
 
After running msck --with-spam

[root@plesk etc]# /usr/local/psa/bin/mail -i [email protected]
Mailname: olga
Domain: eco-corp.ru
Mailbox: true
Password: test123
Password type: plain
Mbox quota: Unlimited
Mailgroup: false
Attachment files:
Autoresponders: Disabled
Antivirus mail checking: Can not determine

SUCCESS: Gathering information for '[email protected]' complete

And if i try to delete this mailbox i got

[root@plesk etc]# /usr/local/psa/bin/mail -r [email protected]
object ID is invalid

PHP Warning: Releasing semaphore 21 in request cleanup
 
You can find new account_id in 'mail' table for mail_name olga and corresponding dom_id and update 'accounts' table with it. Contact support team if you can't fix it by yourself.
 
Excuse me ... what exactly do i have to update?

Here is record from table 'mail' for olga

| id | mail_name | perm_id | postbox | account_id | redirect | redir_addr | mail_group | autoresponder | spamfilter | virusfilter | mbox_quota | dom_id | userId |
| 7 | olga | 23 | true | 22 | false | | false | false | false | none | -1 | 9 | 23 |

Here is record from table 'accounts'

| id | type | password |
| 22 | plain | test123 |

looks like both tables has correct account id.
 
Back
Top