root@lyra:~# virtualmin modify-dns --domain domain.com --add-record “mail A 5.6.7.8”
Updating server test.tiahost.de …
… done[/code]
Replace “5.6.7.8” with the desired IP address.
Pay attention though! If you have the feature “Mail for domain” enabled (and the existence of a “mail” DNS record hints at that), the “mail A” entry MUST point to your IP address! Otherwise you will get warnings and things will not work when local processes try to deliver mail. If you want mail delivered to an outside IP address, you have to turn off the “Mail for domain” feature.
If your aim indeed is to modify the MX record for your zone, and you have “Mail for domain” already disabled, you can do so like so: