Articles in this section

Unable to create a new mailbox or activate the email service for a domain in Plesk: mailmng-outgoing failed: ERROR:__main__:NOT NULL constraint failed

kb: technical

Symptoms

When creating a new mailbox or activating the email service for a domain, the operation fails with one of the following error messages:

PLESK_ERROR: Error: mailmng-outgoing failed: ERROR:__main__:NOT NULL constraint failed: vhost_ids.domain_id


PLESK_ERROR: Error: mailmng-outgoing failed: ERROR:__main__:NOT NULL constraint failed: mails.domain_id

Cause

Unclear.

Resolution

  1. Connect to the Plesk server via SSH.

  2. Repair the mail configuration:

    # plesk repair mail -y

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.