Unable to create an additional domain: mailmng-outgoing failed

Created:

2016-11-16 13:12:32 UTC

Modified:

2017-04-24 11:01:47 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to create an additional domain: mailmng-outgoing failed

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

An attempt to create a domain or mail account under a subscription fails with the following errors:

Error: mailmng-outgoing failed: ERROR:outgoing:domains.subscription_id may not be NULL

Error: mailmng-outgoing failed: ERROR:outgoing:mails.domain_id may not be NULL

Error: mailmng-outgoing failed: ERROR:outgoing:mail_aliases.mail_id may not be NULL

The following errors can be seen in /var/log/plesk/panel.log :

PleskUtilException: mailmng-outgoing failed: ERROR:outgoing:domains.subscription_id may not be NULL
file: /usr/local/psa/admin/plib/Service/Agent.php
line: 243
code: 0

or

ERROR:outgoing:NOT NULL constraint failed: mails.domain_id

Executing mailmng-outgoing manually fails with the same error:

# /usr/local/psa/admin/bin/mailmng-outgoing --add-domain --main-domain-name=example.com --domain-name=one.example.com --out-limit=50
ERROR:outgoing:domains.subscription_id may not be NULL

Cause

The subscription table of the /var/lib/plesk/mail/outgoing/data.db database does not have a record of the corresponding main domain ( example.com ).

Resolution

Run the mchk utility to repair/rebuild the mail server configuration and restore the settings:

# /usr/local/psa/admin/sbin/mchk

Additional  information

Mchk utility fails with error at mail_outgoing_restore step

Mchk utility fails with error at mail_outgoing_restore step: Errors occured in mail restore procedure

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