8000 Mail settings can't be provided via environment variables · Issue #38351 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Mail settings can't be provided via environment variables #38351
Closed
@ahus1

Description

@ahus1

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

testsuite

Describe the bug

I can't use the Java system properties as described in the tests.md to configure the email server in Keycloak

Version

main

Regression

  • The issue is a regression

Expected behavior

The information in tests.md is correct.

Actual behavior

The system properties are not used. Keycloak complains that no sender address is configured.

Failed to send verification email: org.keycloak.email.EmailException: No sender address configured in the realm settings for emails

How to Reproduce?

From tests.md:

To configure Keycloak to use the above server add the following system properties:

keycloak.mail.smtp.from=auto@keycloak.org
keycloak.mail.smtp.host=localhost
keycloak.mail.smtp.port=3025
For example if using the test utils Keycloak server start it with:

mvn exec:java -Pkeycloak-server -Dkeycloak.mail.smtp.from=auto@keycloak.org -Dkeycloak.mail.smtp.host=localhost -Dkeycloak.mail.smtp.port=3025

Anything else?

I'll create a PR to describe how to manually configure it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0