Article ID: 116565, created on Jul 26, 2013, last review on Nov 3, 2014

  • Applies to:
  • Plesk Automation 11.1


The command-line utility "mchk" has been executed on the Postfix node in the Parallels Plesk Automation (PPA) infrastructure and now mail does not work.


The "mchk" utility must not be executed on servers integrated into your Plesk infrastructure.


  1. Backup all files in the "/var/spool/postfix/plesk/" folder on the Management Node (MN).

  2. Start "/usr/lib64/plesk-9.0/mail_auth_dump" on the MN to create "/var/spool/postfix/plesk/passwd.db" and "/var/spool/postfix/plesk/passwd_db_key". Move these files to the Postfix node and put them in the "/var/spool/postfix/plesk/" directory.

  3. Start "/usr/lib64/plesk-9.0/mailsrv_entities_dump" on the MN to create "/var/spool/postfix/plesk/virtual.db" and "/var/spool/postfix/plesk/virtual_domains.db". Move these files to the Postfix node and put them in the "/var/spool/postfix/plesk/" directory.

  4. For domain aliases which have Mail service enabled, you will need to generate transport maps:

    a. Select all the domain aliases with mail service enabled:

    mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -sNe " select name from domain_aliases where mail='true';" > /tmp/domalias.txt

    b. Turn off mail service for them:

    while read i; do /usr/local/psa/bin/domalias -u $i -mail false; done < /tmp/domalias.txt

    c. Then turn it back on:

    while read i; do /usr/local/psa/bin/domalias -u $i -mail true; done < /tmp/domalias.txt
  5. Restore files from your backup to the "/var/spool/postfix/plesk/" folder on the Management Node.

Files copied to the Postfix node contain the configuration for all domains managed by Parallels Plesk Automation. If more than one mail server is managed by PPA, having all domains in the configuration file of one node may lead to the problems in mail delivery - remote domains will be treated as if they were local.

Remove non-local domains from your newly built configuration files:

for db_file in virtual virtual_domains ; do
    ls -1 --color=never /var/qmail/mailnames > /tmp/domains.txt
    hostname -f >> /tmp/domains.txt
    postmap -s /var/spool/postfix/plesk/$db_file > /tmp/${db_file}_temp
    grep -f /tmp/domains.txt /tmp/${db_file}_temp > /tmp/$db_file
    postmap /tmp/$db_file
    mv /tmp/$db_file.db /var/spool/postfix/plesk/

For Parallels Plesk Automation 11.5, the solution is different. Use this article to Repair Postfix mail configuration on PPA 11.5.

Search Words


customers email is not arriving in in-boxes

mail does not work

no mail relay

e0aff7830fa22f92062ee4db78133079 c1ecc6010feff26cb42d1d14a7881dd6 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF