Mail is refused with “User unknown in virtual mailbox table”
Mail to an email address at a domain on this server is refused with User unknown in virtual mailbox table. Postfix has no mail account, forwarder or list for that email address, so add one or set a default email address for the domain.
Symptoms
Senders get this bounce.
550 5.1.1 <nobody@example.com>: Recipient address rejected: User unknown in virtual mailbox tableCause
This server handles the domain's mail. Postfix accepts mail for the email addresses of its mail accounts, forwarders and lists.
For any other email address at the domain, Postfix refuses the message while the sender is still connected, unless the domain has a default email address.
Resolution
List the domain's mail accounts and forwarders.
urbestack-mail-account-list --name example.com urbestack-mail-forwarder-list --name example.comAdd a mail account for the missing email address or forward it to an existing mail account.
urbestack-mail-forwarder-add --address nobody@example.com --to user@example.comTo deliver all mail sent to unknown email addresses at the domain to one mail account, set that account's email address as the domain's default.
urbestack-mail-domain-set --name example.com --default-address user@example.comThe default email address also receives spam sent to made-up email addresses at the domain. To refuse mail to unknown email addresses again, set the default to
reject.urbestack-mail-domain-set --name example.com --default-address reject