How to get all lost mail from all emails and subdomains

Hello, I can’t solve the question.
The task is to collect all lost emails to one mailbox.
For example, there is a domain ( domain.com ) I need that physically on the server not to create subdomains, but that at the same time, if a letter comes to the address [email protected] that it was redirected to the desired e-mail address.

English is not my native language, please write in literary language so that I can understand you correctly, thank you.

Please use example.com when you do not wish to share your real domain. The one you used is real and not yours.

If d84.example.com does not exist in the public DNS, you cannot receive email addressed to it.

Are you asking about creating a wildcard subdomain MX record and a catch-all address?

e.g. *.example.com IN MX mail.example.com in combination with a mailbox that will accept all mail addressed to *@*.example.com

I don’t know if you can easily do that in HestiaCP. This search may help you learn how to configure exim to handle such mail.

A catch-all address for one domain attracts an unpleasant amount of spam. I cannot imagine that opening it to work with any possible subdomain would have positive benefits, but if that is what you want, the search link above should help you.

I do not know if the required exim configuration is compatible with HestiaCP. You will need to perform your own testing. Remember that HestiaCP updates may overwrite your own configuration.