Article ID: 115452, created on Jan 28, 2013, last review on May 11, 2014

  • Applies to:
  • Plesk 11.x for Linux
  • Plesk 10.x for Linux

Symptoms

Our mail server is having issues with MySQL connections.
 
The following errors are being recorded in Postfix logs:
 
Unable to connect to Plesk Database: Access denied for user 'admin'@'localhost' (using password:  <Password has been wiped out for security reasons>
Fatal error: plesk::mysql::mError(connection failed)
 
We tried switching to Qmail and ran "mchk --spam-only." The errors changed, but the problem remained:
 
Jan 24 14:54:42 host /usr/lib/plesk-9.0/mail_responder_restore[6629]: Unable to connect to the mysql database
Jan 24 14:54:42 host /usr/lib/plesk-9.0/mail_grey_restore[6632]: Unable to connect to the mysql database
Jan 24 14:54:42 host /usr/lib/plesk-9.0/mail_spf_restore[6636]: Unable to connect to the mysql database
Jan 24 14:54:42 host /usr/lib/plesk-9.0/mail_spf_restore[6636]: Unable to get options for spf support restore
Jan 24 14:54:42 host /usr/lib/plesk-9.0/mail_drweb_restore[6640]: Unable to connect to the mysql database
 
After switching back to Postfix, even mchk fails to work:
 
# /usr/local/psa/admin/sbin/mchk --with-spam
==> Checking for: mailsrv_conf_init... fail
#
 
The mail log shows that messages are being aborted:
 
Jan 24 15:02:10 host postfix/smtpd[9497]: connect from unknown[1.2.3.4]
Jan 24 15:02:10 host postfix/smtpd[9497]: NOQUEUE: reject: RCPT from unknown[1.2.3.4]: 554 5.7.1 <test@domain.tld>: Relay access denied; from=<test@source.tld> to=<test@domain.tld> proto=SMTP helo=<localhost>
Jan 24 15:02:11 host postfix/smtpd[9497]: disconnect from unknown[1.2.3.4]
Jan 24 15:02:11 host /usr/lib/plesk-9.0/psa-pc-remote[8272]: Message aborted.
Jan 24 15:02:11 host /usr/lib/plesk-9.0/psa-pc-remote[8272]: Message aborted.


Cause

The issue may be caused by an exceedingly long Parallels Plesk Panel (PP) "admin" user password.
 
You can retrieve and check it with the /usr/local/psa/bin/admin --show-password command.


Resolution

Try changing the admin password for the Control Panel to a shorter one. The easiest way to do that is with the PP Web Interface.
 

dd0611b6086474193d9bf78e2b293040 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article
Save as PDF