Skip to content

Mindbaz/zonemta-auth-keycloak

Repository files navigation

zonemta-auth-keycloak

Authentication with Keycloak for ZoneMTA. Install this to performs SMTP authentication with Keycloak

Setup

Add this as a dependency for your ZoneMTA app

npm install @mindbaz/zonemta-auth-keycloak --save

Configure

The module uses wild-config, so there are two toml configuration files to manage

Plugin conf

Add a configuration entry in the "plugins" section of your ZoneMTA app

Example here.

First enable plugin :

# auth-keycloak.toml
["modules/@mindbaz/zonemta-auth-keycloak"]
enabled="receiver"
interfaces=["feeder"]

Then set keycloak configuration for this plugin :

keycloak_url="http://example.org:8080"
auth_force_realm = false
auth_force_realms = true # Optional : to force a realm on current zmta instance

Wild-config

ZoneMTA uses the following file for wild-config : /path/to/zone-mta/config/zonemta.toml

[auth_keycloak]
realms = [ 'random-realm', 'another-realm' ]

License

The GNU General Public License 3 (details)

Support version

Keycloak : >=20

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published