You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(mail): add startup checks for mail configuration IQSS#7424
During the deployment of Dataverse we check for conditions of the mail system that might not be done as people intend to use it.
We'll only issue warnings in the log messages, nothing critical here.
logger.warning("Could not find a system mail setting in database (key :" + Key.SystemEmail + ", deprecated) or JVM option '" + JvmSettings.SYSTEM_EMAIL.getScopedKey() + "'");
106
+
logger.warning("Mail notifications and system messages are deactivated until you provide a configuration");
107
+
}
108
+
109
+
// If there is an app server provided mail config, let's determine if the setup is matching
110
+
// TODO: when support for appserver provided mail session goes away, this code can be deleted
111
+
if (mailSessionProducer.hasSessionFromAppServer()) {
112
+
if (mailAddress.isEmpty()) {
113
+
logger.warning("Found a mail session provided by app server, but no system mail address (see logs above)");
114
+
// Check if the "from" in the session is the same as the system mail address (see issue 4210)
0 commit comments