aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config/Keys.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-03-16 09:55:19 -0700
committerAnton Tananaev <anton@traccar.org>2023-03-16 09:55:19 -0700
commitd4816aae87600334fe798e8b50b9f11df6f0b293 (patch)
tree1882a5335a653a63136b795df6661d988d33d3e7 /src/main/java/org/traccar/config/Keys.java
parent5c0962c257d51bef081d25405c972dd54035a0b2 (diff)
downloadtrackermap-server-d4816aae87600334fe798e8b50b9f11df6f0b293.tar.gz
trackermap-server-d4816aae87600334fe798e8b50b9f11df6f0b293.tar.bz2
trackermap-server-d4816aae87600334fe798e8b50b9f11df6f0b293.zip
Option for system only emails
Diffstat (limited to 'src/main/java/org/traccar/config/Keys.java')
-rw-r--r--src/main/java/org/traccar/config/Keys.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 491c724aa..cb1ee63e1 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -836,6 +836,13 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
+ * Restrict global SMTP configuration to system messages only (e.g. password reset).
+ */
+ public static final ConfigKey<Boolean> MAIL_SMTP_SYSTEM_ONLY = new BooleanConfigKey(
+ "mail.smtp.systemOnly",
+ List.of(KeyType.CONFIG));
+
+ /**
* Force SMTP settings from the config file and ignore user attributes.
*/
public static final ConfigKey<Boolean> MAIL_SMTP_IGNORE_USER_CONFIG = new BooleanConfigKey(