Hi there,
I have a problem creating a new mail account:
Error: mailmng-outgoing failed: ERROR:__main__:mails.domain_id may not be NULL
Already checked some KB articles like
OR
Those do not help and "plesk repair db" has nothing to fix.
But I am experiencing the error as well when trying "plesk repair mail <domainname>"
Any additional idea how to fix this?
I have a problem creating a new mail account:
Error: mailmng-outgoing failed: ERROR:__main__:mails.domain_id may not be NULL
Already checked some KB articles like
Domain or mail account creation error: mailmng-outgoing failed, domain_id may not be NULL
Applicable to: Plesk for Linux Symptoms One of the following symptoms may apply: Unable to create a domain or a mail account under a subscription: PLESK_ERROR: Error: mailmng-outgoing failed: ...
support.plesk.com
Unable to send email or create mailbox: Error: mailmng-outgoing failed: ERROR:outgoing:mails.domain_id may not be NULL
Symptoms Unable to create a mail account for example.com in Plesk. The following error is shown: PLESK_ERROR: Error: mailmng-outgoing failed: ERROR:outgoing:mails.domain_id may not be NULL Unab...
support.plesk.com
Those do not help and "plesk repair db" has nothing to fix.
But I am experiencing the error as well when trying "plesk repair mail <domainname>"
Code:
plesk repair mail mail@<domainname>
Repairing the mail server configuration
Reconfiguring the mailboxes ..................................... [2020-11-16 19:04:53.427] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/mailname_repair'] with exit code [1]
[FAILED]
- mailname_repair failed: Restoring mailbox settings for
test@<domainname>
DEBUG setMailboxQuota(..., 85899345920)
Clean virtual aliasing settings for test@<domainname>
Restoring auth settings for test@<domainname>
Restoring antivirus settings for test@<domainname>
Restoring antispam handlers for test@<domainname>
Restoring autoresponder handler for test@<domainname>
Restoring autoresponder database settings for test@<domainname>
Restoring greylist settings for test@<domainname>
Restoring virtual aliasing for test@<domainname>
Restoring responder attachments info for test@<domainname>
Restoring antispam settings for test@<domainname>
Restoring spamassassin .qmail options
Restoring outgoing limits for test@<domainname>
mails.domain_id may not be NULL
ERROR:__main__:This exception happened at:
Traceback (most recent call last):
File
"/usr/local/psa/admin/sbin/mailname_repair/mailname_repair.py",
line 152, in main
File
"/usr/local/psa/admin/sbin/mailname_repair/mailname_repair.py",
line 68, in restore_outgoing_limits
File
"/usr/local/psa/admin/sbin/mailname_repair/plesk_outgoing_mail_db.py",
line 320, in create_mailname
mail_name, domain_name).rowcount
File
"/usr/local/psa/admin/sbin/mailname_repair/plesk_sqlite3_db.py",
line 139, in run
return conn.execute(query, params)
IntegrityError: mails.domain_id may not be NULL
Error messages: 0; Warnings: 0; Errors resolved: 0
exit status 1
Any additional idea how to fix this?
Last edited: