Mail server does not work. How to repair the mail server configuration

Created:

2016-11-16 13:14:54 UTC

Modified:

2017-08-08 13:11:17 UTC

11

Was this article helpful?


Have more questions?

Submit a request

Mail server does not work. How to repair the mail server configuration

Applicable to:

  • Plesk

Question

Mail server does not work on the Plesk server:

  • Unable to send/receive messages.
  • mail_auth_view utility does not show any mail accounts.
  • SPF checking of incoming emails is not triggered.
  • etc

How to repair mail server configuration?

Answer

Connect to the server using SSH/RPD and execute the commands below.

For Plesk Onyx/12.5

CONFIG_TEXT: plesk repair mail

Note: All the accounts on Windows created not through Plesk interface will be removed. Additional information can be found below.

For Plesk 12.0 and older

Use the mchk utility in order to repair/rebuild the mail server configuration and to restore the settings for all mailboxes created in Plesk.

For Linux:

# /usr/local/psa/admin/sbin/mchk --help
Restore settings for all mailboxes.
Usage: /usr/local/psa/admin/sbin/mchk [OPTION]

OPTIONS:
--without-spam restore all settings except for SpamAssassin configuration
--with-spam restore all settings
--spam-only restore only SpamAssassin settings

Usage example:

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

For Windows:

Warning! Only the settings that were applied to mailboxes through the Plesk interface or command-line utilities will be restored by mchk. Any custom configuration options applied by other means (e.g., through your mail server's configuration console) will be lost. Since Plesk 12.5, option --not-sync-password is available. For more details, please read the What does mchk command do article.

C:\>"%plesk_bin%\\mchk" --help
usage: mchk [options] ...

--all [--fix=all|local] [--not-sync-password]
--domain --domain-name= [--fix=local] [--not-sync-password]
--domains --domain-names=<dom1[;dom2;...]>| [--via-file] [--fix=local] [--not-sync-password]
--all-domains [--fix=local] [--not-sync-password]
--mailbox --domain-name= --mail-name= [--not-sync-password] --global-settings
--normalize-disabled-domains

Usage example:

C:\>"%plesk_bin%\\mchk" --all --not-sync-password

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