Email accounts from virtual server bounce incoming mail

OS type and version Rocky 9.1
Virtualmin version 7.5

first virtual server added: (user added:
second virtual server added: (user added: and as alias)

Email sent from other server to arrive ok
Email sent from other server to bounce:

The mail system (expanded from
unknown user: “”

Email sent to alias also bounce.

The server hostname is correctly set, in hosts file and in postfix mydestination. In /etc/postfix/virtual I noticed the email address is mapped to and I changed that line to but mail is still bouncing.

I reinstalled from scratch, the same problem. Also with Ubuntu (20.04 and 22.04), same problem. I reinstalled on a hetzner vps, same problem.

What am I doing wrong?

Weird, I’ve never had a issue with new installs, you should not have to touch the webmin side of things.
You have enable mail for that domain.

Mail is enabled. I know is weird, I set up virtualmin on a server a while ago, maybe 1 or 2 years ago and I had no problem with it. I don’t understand what I am doing wrong now. I just set up another VPS to try again from scratch.

Not sure what default, but in the template for mail I have this format.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.