Error while trying to send mail: Recipient address rejected: User unknown in virtual alias table

Created:

2016-11-16 12:46:02 UTC

Modified:

2017-04-24 11:14:03 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Error while trying to send mail: Recipient address rejected: User unknown in virtual alias table

Applicable to:

  • Plesk Onyx for Linux

Symptoms

  • After upgrading to Plesk Onyx, there are email messages from psaadm@example.com :
    This is the mail system at host example.com.
    I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
    For further assistance, please send mail to postmaster.
    If you do so, please include this problem report. You can delete your own text from the attached returned message.
  • Upon sending an email to psaadm (system user) the following error is shown:
    mail from: root@example.com
    250 2.1.0 Ok
    rcpt to: psaadm@example.com
    550 5.1.1 <psaadm@example.com>: Recipient address rejected: User unknown in virtual alias table
  • The following error appears in /var/log/maillog :

    postfix/error[20590]: 42B11620B2C: to=<psaadm@example.com>, orig_to=<psaadm>, relay=none, delay=0.02, delays=0.01/0/0/0, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
  • User psaadm@example.com is absent in the virtual alias table:

    # postmap -s /var/spool/postfix/plesk/virtual | grep psaadm@example.com

Cause

This is an expected behavior on Plesk Onyx servers that have been upgraded from Plesk 12.5 without preliminary removing Customer Business Manager (CBM).

The issue is caused by the CBM cron task /etc/cron.d/billing-task-manager left after an upgrade.

Resolution

R emove /etc/cron.d/billing-task-manager on all Plesk Onyx servers that used to use CBM.

Have more questions? Submit a request

10 Comments

  • 0
    Avatar
    Sabrina Cadena

    Doesn't say how to resolve the issue WHATSOEVER.

  • 0
    Avatar
    Lev Iurev

    @Sabrina, did you face the same error? Could you please post it here

  • 0
    Avatar
    Sabrina Cadena

    Yes exact same error. What's the fix?
    postfix/error[2323]: 98F2524BC9: to=<psaadm@domain.com>, orig_to=<psaadm>, relay=none, delay=0.11, delays=0.05/0.01/0/0.05, dsn=5.1.1, status=bounced (User unknown in virtual alias table)

    Edited by Sabrina Cadena
  • 0
    Avatar
    Lev Iurev

    @Sabrina, does this email(like psaadm@domain.com) exist on the server? Is domain.com a hostname of your server?

  • 0
    Avatar
    Tim Bishop

    The point here is that there is no resolution, because this is the expected behaviour. Now, if you received this same error with another email that is related to a domain on your server, that would be an issue. But, the email address given in the error does NOT exist on ther server, as a result, this error occurs.

    So my question is did you get this same error with an email that DOES exist?

  • 0
    Avatar
    Johnny Utah

    I have this error in Plesk 17: 'relay=none, delay=0.47, delays=0.34/0.06/0/0.07, dsn=5.1.1, status=bounced (User unknown in virtual alias table)'

  • 0
    Avatar
    Lev Iurev

    @Johnny, this error appears for outgoing message or for inbound? Does domain or email persist on the Plesk server?

  • 0
    Avatar
    Johnny Utah

    I can send email but i do not receive them.

    I have opened a topic on the support forums about this where i can give you more details: https://talk.plesk.com/threads/emails-bounce-on-postfix-or-qmail.341315/

  • 0
    Avatar
    Markus Thiel

    I got this message every 5 minutes after upgrading from 12.5 to onyx.

    At first i tried to add an alias for psaadm. But it didn't work.

    But then I found out what was causing this...

    Under /etc/cron.d/billing-task-manager is a task that runs every 5 minutes. I guess it has something to do with the customer stuff they removed from 12.5 to onyx.

    If you disable (comment out the first line of) /etc/cron.d/billing-task-manager, the postfix error message disappears.

     

  • 0
    Avatar
    Sabrina Cadena

    While I understand that this is expected behavior, the Plesk admin email address was receiving an email every 5 minutes regarding the missing psaadm@ user. It's related to using CBM in previous Plesk versions and the issue only occurred after my customer upgraded to Onyx without removing CBM. 

    Here is the subject of the email being sent to my Plesk admin user:
    Subject: Cron <psaadm@plesk> /opt/plesk-billing/task-manager/scripts/run-all.sh --config /opt/plesk-billing/task-manager/config/config.ini

    Since the cron is being run by the user "psaadm", it sends notifications to psaadm@. This is the article I used to find out how these emails are sent to the Plesk admin email address:
    https://support.plesk.com/hc/en-us/articles/213906025-Customer-Business-Manager-no-automatic-tasks-are-being-performed

    TL;DR If you upgrade to Plesk Onyx without uninstalling CBM, you may have issues with CBM crons. 

    Edited by Sabrina Cadena
Please sign in to leave a comment.