Qmail does not recieve mails, mchk utility fails on "mailsrv_conf_init" step.

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:00:38 UTC

Modified:

2016-12-21 19:45:02 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Qmail does not recieve mails, mchk utility fails on "mailsrv_conf_init" step.

Symptoms

  • 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

Cause

Incorrect /etc/hosts file.

Resolution

  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                                                                     
    127.0.0.1 localhost localhost.localdomain
    192.168.0.23 example.tld example

    Where 192.168.0.23 is server IP address.

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