Unable to create an additional domain: mailmng-outgoing failed

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk
  • Plesk 12.0 for Linux
  • MT:549913fde8fd3051ccef15b74330ab76
  • MT:03b2738751551ab8f96e7fb02ae6412f
  • MG:6bd5b953a12aca9577a27fe9757382de
  • MG:3bd26a3ea5799ee0f0a7bfb8445839af
  • MT:e0d25015a0c7843a7a2b2a1ca503847e
  • MG:62f7cf295cc0c175d34de519bed662cd

Created:

2016-11-16 13:12:32 UTC

Modified:

2017-02-13 06:36:30 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to create an additional domain: mailmng-outgoing failed

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 error 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

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

Related article:

#122104 Mchk utility fails with error at mail_outgoing_restore step

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