Article ID: 124408, created on Feb 6, 2015, last review on Feb 6, 2015

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux


  • Unable to receive mail messages

  • Qmail server installed

  • In /var/log/maillog or in /var/log/messages you can find these errors:

    qmail-queue-handlers[551654]: Handlers Filter before-queue for qmail started ..
    qmail: 1381164808.387235 delivery 17: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
    qmail: 1381164808.387330 status: local 0/10 remote 1/20
  • Executing mchk utility fails on first step:

    # /usr/local/psa/admin/sbin/mchk --without-spam
    ==> Checking for: mailsrv_conf_init... fail
  • Running mailsrv_conf_init manually results in another error:

    # /usr/lib64/plesk-9.0/mailsrv_conf_init
    /usr/lib64/plesk-9.0/mailsrv_conf_init[555123]: Canonname is not correct fqdn
    /usr/lib64/plesk-9.0/mailsrv_conf_init[555123]: It is impossible to detect the FQDN of the host.
    Please make sure that the host name is correctly specified in /etc/hosts and goes right after the host's IP address.
    Depending on your OS, you might need to set the host name in /etc/HOSTNAME or /etc/hostname.
    /usr/lib64/plesk-9.0/mailsrv_conf_init[555123]: unable to get hostname: Success
    Unable to create files for qmail
  • passwd.db and passwd_db_key are not generated by Qmail if hostname in Plesk is set to localhost.localdomain


Incorrect /etc/hosts file.


  1. Check /etc/hosts file, it should look according to the documentation:

    IP_address canonical_hostname [aliases...]
  2. Please modify /etc/hosts if format is not correct. Correct example below:

    # cat /etc/hosts                                                                       localhost localhost.localdomain    example.tld example

    Where is server IP address.

Search Words


unable to get hostname

mailsrv_conf_init... fail

Unable to create files for qmail

delivery 17: failure

Canonname is not correct fqdn


a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7

Email subscription for changes to this article
Save as PDF