So...
Please remove the domain again through the GUI.
==> ok
Then on Linux run
# /usr/local/psa/admin/sbin/mailmng-outgoing --remove-subscription --main-domain-name=example.com
(Instead of example.com use the domain name.) This will remove the domain name from the outgoing mail control table.
==> # /usr/local/psa/admin/sbin/mailmng-outgoing --remove-subscription --main-domain-name=mydomain.com
WARNING
utgoing:No backend DB entries were modified.
Then create the domain again in the panel (not renaming an existing, just creating as a new domain). The error should not occur. If it occurs, maybe this can help:
Domain or mail account creation error: mailmng-outgoing failed
==> Erreur: mailmng-outgoing failed: ERROR
utgoing:column name is not unique
I've made:
# plesk repair mail -y
Repairing the mail server configuration
Reconfiguring all domains and mailboxes .........................
Error messages: 0; Warnings: 0; Errors resolved: 0
I've made:
#plesk repair mail mydomain.com
Repairing the mail server configuration
Reconfiguring the settings of domains: mydomain.com .... [2019-03-14 08:43:06.680] ERR [panel] Call to a member function getStatus() on null:
0: /usr/local/psa/admin/plib/Repair/Mail.php:117
Repair_Mail->_reconfigureDomainsUnix(array)
1: /usr/local/psa/admin/plib/Repair/Mail.php:68
Repair_Mail->reconfigureDomains(array)
2: /usr/local/psa/admin/plib/Repair/Aspect/Mail.php:45
Repair_Aspect_Mail->{closure}()
3: /usr/local/psa/admin/plib/Repair/Aspect/Abstract.php:52
Repair_Aspect_Abstract->_checkAspect(object of type Closure)
4: /usr/local/psa/admin/plib/Repair/Aspect/Mail.php:46
Repair_Aspect_Mail->_checkAndFix()
5: /usr/local/psa/admin/plib/Repair/Aspect/Abstract.php:37
Repair_Aspect_Abstract->checkAndFix()
6: /usr/local/psa/admin/plib/api-common/cuRepair.php:182
cuRepair->execute()
7: /usr/local/psa/admin/plib/api-common/CuExecutor.php:67
CuExecutor->execUtil(string 'cuRepair', string 'execute')
8: /usr/local/psa/admin/plib/api-common/CuExecutor.php:130
CuExecutor->run()
9: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:25
CliUtilityRunner->run()
10: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:36
require_once(string '/usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php')
11: /usr/local/psa/admin/plib/api-cli/repair.php:4
ERROR: Error: Call to a member function getStatus() on null (Mail.php:117)
exit status 1