Mail does not work after upgrade to Plesk 12.

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 10.4 for Linux
  • Plesk Onyx for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:48:51 UTC

Modified:

2017-01-21 10:17:41 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Mail does not work after upgrade to Plesk 12.

Symptoms

Mail is not working after Plesk upgrade.' mchk ' utility hangs on ' mail_auth_dump ' stage.

Cause

Mail accounts database is empty:

# /usr/local/psa/admin/bin/mail_auth_view
Authentication database contents:
+--------------------------------------+-----+-----------------------------------+

| address |flags| password |
+--------------------------------------+-----+-----------------------------------+
+--------------------------------------+-----+-----------------------------------+

But mail accounts exist in Plesk database, some of them have empty passwords:

mysql> select concat(m.mail_name,'@',d.name) as mail, a.type as 'passwd type', a.password from domains d, mail m, accounts a where m.dom_id=d.id and m.account_id=a.id;
+-----------------------------------------+-------------+-----------------------+

| mail | passwd type | password |
+-----------------------------------------+-------------+-----------------------+

| info@domain.tld | sym | |
| kontakt@domain2.tld | sym | |
| webmaster@domain3.tld | sym | $AES******************|
| info@3.tld | sym | $AES******************|
| info@domain4.tld | sym | $AES******************|

Resolution

  1. Reset all mail accounts' passwords using a script from KB article

  2. Check that mail accounts are shown in mail database:

    # /usr/local/psa/admin/bin/mail_auth_view
    Authentication database contents:
    +--------------------------------------+-----+---------------------------------+
    | address |flags| password |
    +--------------------------------------+-----+---------------------------------+
    | tdist@domain.tld | | ******* |
    | kmckenzie@domain.tld | | ********** |
    | kmckenzie@domain2.tld | | ********** |
    | julia@domain2.tld | | *********** |
    | kmckenzie@domain.tld | | ********** |
    +--------------------------------------+-----+---------------------------------+
  3. Rebuild mail server configuration:

    # /usr/local/psa/admin/sbin/mchk --without-spam
    ==> Checking for: mailsrv_conf_init... ok
    ==> Checking for: mail_handlers_init... ok
    ==> Checking for: mailsrv_entities_dump... ok
    ==> Checking for: mail_admin_aliases... ok
    ==> Checking for: mail_auth_dump... ok
    ==> Checking for: mailman_lists_dump... ok
    ==> Checking for: mail_kav8_restore... ok
    ==> Checking for: mail_responder_restore... ok
    ==> Checking for: mail_imap_restore... ok
    ==> Checking for: mail_grey_restore... ok
    ==> Checking for: mail_mailbox_restore... ok
    ==> Checking for: mail_spf_restore... ok
    ==> Checking for: mail_dk_restore... ok
    ==> Checking for: mail_drweb_restore... not found, skipped
    ==> Checking for: mail_outgoing_restore... ok
    ==> Checking for: mail_transport_restore... ok

' mchk ' worked fine too thereby fixing the issue.

Have more questions? Submit a request
Please sign in to leave a comment.