Beast
I'm a bit confused about what you are trying to do, but I'm taking a guess.
> ....It uses random user names in front of the domain.
With the dungog-mailblocking contrib installed, and assuming these names are not accounts on your server, then all messages to those addresses will be rejected. That's what you want isn't it ?
> The user that have the domain and a single user
> account do not like me to disable the domain
Guessing what you mean here, perhaps you have not set up email aliases for other domains hosted on your server, see
http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/virtual%20domain%20email%20aliases%20HOWTO%20for%20sme%20server.htmYou can also use the mailblocking contrib to enable or disable addresses for certain domains, see the bottom half of the page in server manager and select which addresses are allowed for which domains.
> Is there a way to disable all invalid usernames for this domain only?
The dungog-mailblocking contrib rejects messages to all invalid accounts by default, if a user account does not exist at all, then any email to that address is rejected for all domains.
To allow an address for one domain but not for others use the steps mentioned above, called Allowed Domains for Mail: in the server manager panel.
In this case though, you must create a valid user account first (which will apply to all domains unless otherwise controlled using the aliases custom template outlined above) and then enable/disable for the required domains using the server manager contrib panel.
Generally to totally manage email aliases for multiple domains you need to use email aliases custom template AND the features in mailblocking contrib.