Symptoms
When creating a new mailbox or activating the email service for a domain, the operation fails with one of the following error messages:
Error: mailmng-outgoing failed: ERROR:__main__:NOT NULL constraint failed: vhost_ids.domain_id
Error: mailmng-outgoing failed: ERROR:__main__:NOT NULL constraint failed: mails.domain_id
Cause
Unclear.
Resolution
-
Connect to the Plesk server via SSH.
-
Repair the mail configuration:
# plesk repair mail -y