Authentication with Keycloak for ZoneMTA. Install this to performs SMTP authentication with Keycloak
Add this as a dependency for your ZoneMTA app
npm install @mindbaz/zonemta-auth-keycloak --save
The module uses wild-config
, so there are two toml
configuration files to manage
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
ZoneMTA uses the following file for wild-config : /path/to/zone-mta/config/zonemta.toml
[auth_keycloak]
realms = [ 'random-realm', 'another-realm' ]
The GNU General Public License 3 (details)
Keycloak : >=20