How do I rebuild my mail configuration files?


Browse by products and services

  • Applies to: DV
    • Difficulty: Medium
    • Time Needed: 10
    • Tools Required: SSH, root or sudo access, vi knowledge
  • Applies to: DV server 4.0
    • Difficulty: Medium
    • Time Needed: 10
    • Tools Required: SSH, root or sudo access, vi knowledge

Introduction

The service qmailpostfix is a mail transfer agent (MTA) that runs on your DV serverDV server.

This article has been mirrored from the Parallels Knowledge Base as a courtesy to our DV customers. As they are the authoritative source of the information covered in this article, we encourage you to check their original article. Keep in mind that this content is subject to change.

Requirements

Before you start, this article has the following dependencies:

READ ME FIRST

The publishing of this information does not imply support of this article. This article is provided solely as a courtesy to our customers. Please take a moment to review the Statement of Support.

Instructions

Rebuilding your mail configuration can be done with the Plesk mchk utility using the command below.

/usr/local/psa/admin/sbin/mchk

An alias also exists to run this as a single command.

mchk

Synopsis:

mchk [OPTION]
	--without-spam - restore all settings except for SpamAssassin configuration
	--with-spam - restore all settings
	--spam-only - restore only SpamAssassin settings

This utility rebuilds in line with Plesk database Qmail control files in the /var/qmail/control, /var/qmail/users directories and mail users' settings. Also, it sets proper ownership/permissions for all mailboxes (/var/qmail/mailnames/*).

Example:

# /usr/local/psa/admin/bin/mchk --with-spam 

Example output:

==> 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_spam_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 exists

==> 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: vhostidmng... ok
==> Checking for: mail_postfix_transport_restore... ok
==> Checking for: mail_spam_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 exists