1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Mailbox deleting problem

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by ArsenyR, Mar 23, 2011.

  1. ArsenyR

    ArsenyR Guest

    0
     
    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
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,239
    Location:
    Novosibirsk, Russia
    What sort of output of following command:

    Do you have errors like

    ?
     
  3. ArsenyR

    ArsenyR Guest

    0
     
    Igor hi!,

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

    [root@plesk ~]# /usr/local/psa/bin/mail -i olga@eco-corp.ru
    Mailname: olga
    Domain: eco-corp.ru
    Mailbox: true
    Password:
    Password type:
    Unable create Mailname object:Unable create account with ID "22"
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,239
    Location:
    Novosibirsk, Russia
    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 olga@eco-corp.ru

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

    # /usr/local/psa/bin/mail -r olga@eco-corp.ru
     
  5. ArsenyR

    ArsenyR Guest

    0
     
    Igor,

    After inserting record to accounts i got this error

    [root@plesk etc]# /usr/local/psa/bin/mail -i olga@eco-corp.ru
    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
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,239
    Location:
    Novosibirsk, Russia
    Try to rebuild mailsettings with

    # /usr/local/psa/admin/sbin/mchk --with-spam
     
  7. ArsenyR

    ArsenyR Guest

    0
     
    After running msck --with-spam

    [root@plesk etc]# /usr/local/psa/bin/mail -i olga@eco-corp.ru
    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 'olga@eco-corp.ru' complete

    And if i try to delete this mailbox i got

    [root@plesk etc]# /usr/local/psa/bin/mail -r olga@eco-corp.ru
    object ID is invalid

    PHP Warning: Releasing semaphore 21 in request cleanup
     
  8. ArsenyR

    ArsenyR Guest

    0
     
    Igor,

    Shell i open ticket about my problem?

    Thank you

    Ars
     
  9. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,239
    Location:
    Novosibirsk, Russia
    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.
     
  10. ArsenyR

    ArsenyR Guest

    0
     
    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.
     
Loading...