Plesk

Outgoing mail control does not work in Plesk: Unable to execute mailmng-outgoing: no such table

Symptoms

Cause

The outgoing mail database is corrupted.

Resolution

For Linux

  1. Connect to the server via SSH;

  2. Rename the database:

    # mv /var/lib/plesk/mail/outgoing/data.db{,.bak}

  3. Rebuild it:

    • For RHEL/CentOS/CloudLinux:

      # /usr/lib64/plesk-9.0/remote_mail_restore/mail_outgoing_restore

    • For Debian/Ubuntu:

      # /usr/lib/plesk-9.0/remote_mail_restore/mail_outgoing_restore

  4. If the domain was created in Plesk in the initial attempt, delete it at Domains > select the domain example.com > Remove

  5. Add the domain again

For Windows:

  1. Connect to the server via RDP

  2. Delete or rename the file %plesk_dir%admindbOutgoingMessages.db

  3. Run the command to rebuild it:

    "%plesk_dir%adminbinmailmng.exe" --init-outgoing-messages-storage