Dedicated Mail Server/NameServer

Linux 6.1.0-27-cloud-amd64 on x86_64
Debian Linux 12
7.20.2 Pro
Webmin version 2.202
Kernel and CPU Linux 6.1.0-27-cloud-amd64 on x86_64

I’ve got the email working although the mail address is userName@mail.URL and I would like to remove the mail from the address. I’ve searched for help but can not find any answers that fit my setup.
I have 3 server a name server/web server the slave name server/mail server and a trinity name server/database replication load balancing
The web server is Plesk and NS2 and NS3 are VirtualMin

what I’m trying to do is change the user mail address from userName@mail.URL to userName@url

any ideas on how to fix this? or where to look for an answer

If it is just a few users you can alias them. I’m not clear on how this server fits into your overall scheme. Are you hosting multiple domains for mail?

Did you create a virtual server named mail.domain.tld and create your users there? Why? Why wouldn’t you create the domain name you want things to operate as?

Note that a domain automatically gets a mail.domain.tld alias when you create it, if mail features are enabled for the domain. So, you were already going to get a mail.domain.tld that could be used for the MX record and optionally other stuff), but your usernames would be the form you expect them to be.