Automatically undo "Primary email address enabled" (for domain owner account by default)

This is extremely minor but when a new domain is created its “owner” account has email enabled by default. There is a checkbox to disable it (Virtualmin → a domain → Edit Users → the owner account). Is there a setting to have it not be enabled in the first place or a way to check the “No” box via the command line after creation?

Ron

SYSTEM INFORMATION
OS type and version Ubuntu 24.04.2
Virtualmin version 2.402

is this not under System Settings -> Edit Server Templates -> Mail for domain ?

Does that not turn off all mail for the domain rather than just the domain owner?

IDK, i was thinking more of a change to Destination address :man_shrugging:

I was able to get this done by adding:

[ "$VIRTUALSERVER_ACTION" = "CREATE_DOMAIN" ] && virtualmin modify-user --domain "$VIRTUALSERVER_DOM" --user "$VIRTUALSERVER_USER" --disable-email

to my:

System Settings → Virtualmin Configuration → Actions upon server and user creation → Command to run after making changes to a server

In case anyone (or I) need this sometime.

Maybe that could be a option here.

One reason for email for that account are reported issues for that domain and the system uses that email address. So you will need to point to a legit account.

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