Mail account Provision

Account provisioning

You can configure a template for account settings, from which all users will get an account provisioned from. This setting only makes most sense if you use the same user back-end for your organization’s Nextcloud and mail server.
Hi, I’m new to nextcloud. I’m a bit confused about the above statement. Id like to set it up in such a way that when someone registers to my nextcloud 21 instance they are auto provisioned with an email account. I’m using Whm and Cpanel VPS with full root access.
Please Help and thanks in advance.

I’ve understood that this Mail provisioning makes sense if the backend uses the same domain.

settings > basic settings
From address: system@mynextcloud.com
IMAP: mail.mynextcloud.com

settings > groupware
IMAP: mail.mynextcloud.com

the password of the user should be equal in nextcloud ans his email imap account …