↑ ↓ select, Enter open, Esc close

Regenerate the mail configuration in Plesk (mchk)

Caution: This command changes the system. Understand what it does before you run it.

root@server
plesk sbin mchk --with-spam

Regenerates the mail server configuration for all domains and mailboxes from the Plesk database, including the SpamAssassin settings. Helps after migrations, manual changes, or when mailboxes reject logins although they look correct in the panel. On servers with many mailboxes this can take several minutes.

Note: Manual changes to generated configuration files are overwritten.

Also searched as

  • plesk mail stopped working
  • repair plesk mail configuration
  • mailboxes broken after migration

Related one-liners

All in Mail

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.