Howto sync a change password to postfix/dovecot

Hi There,

I’m renting a vps at Contabo where I installed postfix/dovecot, a wordpress site and Nextcloud instance.

I’m using:
OS = Ubuntu 22.04
MariaDB-1:11.2.2
Apache 2.4.58
PHP 8.2
Nextcloud version 27.1.5
Wordpress 6.4.2

I’m doing this for a small group just under 50 persons and to stear away from Google Cloud.
What I was wondering about is that when a person changes his/her password in Nextcloud, what is a good way to also change that password in postfix/dovecot and Wordpress.

Are people using Authentik/Keycloak LDAp or other means.

Thanks for reading
Guy Forssman