This is an administration interface for docker-mailserver.
To use OAuth2, you need to create a new OAuth2 client in your OAuth2 provider. The redirect URI should be
https://example.com/login/check-oauth
. The client ID and client secret should be added to the .env
file.
Depending on your needs, you can configure mailserver-admin to give admin rights to a user by testing for a specific group in the groups field of the OAuth user information. Set the name of your administrator group to the OAUTH_ADMIN_GROUP variable in the .env file. If you leave OAUTH_ADMIN_GROUP empty, all authenticated users will have admin rights. You must make sure to handle the login permissions in your OAuth2 provider.