• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

New Mailbox ERROR

kram@

Regular Pleskian
Hello,

Since upgrading to 12.0.18 Update #5 i have picked up a strange problem when creating a new email account.

When I try setup and new email account on any domain, I get teh following error message.

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

If i click OK, I get the following error message

The specified email address is already in use.

I have to click cancel to return to the email address list, which shows the new email address with NO mailbox.
I then have to open the email address and check the Mailbox option to activate it.
Now the email account is configured correctly.

Any suggestions will be appreciated.
 
try to reconfigure domains:
Code:
# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
 
Hello,

i have the same problem.

# /usr/local/psa/admin/bin/httpdmng --reconfigure-all hasn't resolved my issue

in Maillog i found following row:

postfix/error[10917]: 70388122608FB: to=<EMAILADRESS>, relay=none, delay=4620, delays=4620/0.01/0/0.1, dsn=4.3.0, status=deferred (mail transport unavailable)

Also i check this:
/usr/local/psa/admin/sbin/mchk --with-spam
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_handlers_init... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_admin_aliases... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_kav8_restore... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_imap_restore... ok
==> Checking for: mail_spam_restore... not found, skipped
==> Checking for: mail_grey_restore... ok
==> Checking for: mail_mailbox_restore... ok
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_drweb_restore... not found, skipped
==> Checking for: mail_outgoing_restore... ok
==> Checking for: mail_transport_restore... ok


Can you help me please?

PS: I solved the issue.
 
Last edited:
I've also upgraded from 11.5 to 12.0.18 and switched from Courier to Dovecot to give my users the option to use server side mail filtering with sieve.

Now got the same error while creating a new email address. I also tried

Code:
/usr/local/psa/admin/bin/httpdmng --reconfigure-all

with no success. In addition sending mail via php's built in mail-function failed, in /var/log/apache2/error.log I found the entry

Code:
sh: /var/qmail/bin/qmail-inject: Permission denied

So first I tried to switch from qmail to postfix, with a non functional dovecot as a result. So I switched back to qmail again. I could fix the non-working mail function by correcting the permission of qmail-inject via

Code:
chmod o+x /var/qmail/bin/qmail-inject

But now there are no functional mail-accounts in the dovecot authorization database, /var/log/maillog is filling with entries like:
Code:
Sep 11 18:12:34 mail dovecot_authdb_plesk[9292]: No such user '[[email protected]]' in mail authorization database

Running /usr/local/psa/admin/sbin/mail_auth_view shows me an empty database and executing

Code:
/usr/local/psa/admin/sbin/mchk --with-spam

(according to http://kb.odin.com/en/122104) did not solve the problem. So I restored the files

Code:
/var/lib/plesk/mail/auth/passwd.db
/var/lib/plesk/mail/auth/passwd_db_key

from a backup, which temporarily solved the problem. Viewing the file /var/lib/plesk/mail/outgoing/data.db with an sqlite-browser shows, that there is only one entry for the master-domain entered in plesk, all other domains are missing. In older backups (before upgrading to plesk 12) the directory /var/lib/plesk/mail/outgoing doesn't exist.

And when I execute mchk again, the database is empty again and I have to restore the files, to provide the ability to log in to their imap accounts to my users.

Has anybody an idea how to fix this issues?

Kind regards
Stephan
 
I had this same error, and managed to resolve it using:
https://kb.plesk.com/en/121095

In my specific case I had 1 hit on the check "Check that every mail account in the mail table has corresponding entry in the accounts table:". Removed that account and it solved the error/isse.
 
Back
Top