summaryrefslogtreecommitdiff
path: root/internal/configuration/schema/notifier.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/configuration/schema/notifier.go')
-rw-r--r--internal/configuration/schema/notifier.go14
1 files changed, 9 insertions, 5 deletions
diff --git a/internal/configuration/schema/notifier.go b/internal/configuration/schema/notifier.go
index 15aae34c3..29e62aea9 100644
--- a/internal/configuration/schema/notifier.go
+++ b/internal/configuration/schema/notifier.go
@@ -1,6 +1,9 @@
package schema
-import "time"
+import (
+ "net/mail"
+ "time"
+)
// FileSystemNotifierConfiguration represents the configuration of the notifier writing emails in a file.
type FileSystemNotifierConfiguration struct {
@@ -15,7 +18,7 @@ type SMTPNotifierConfiguration struct {
Username string `koanf:"username"`
Password string `koanf:"password"`
Identifier string `koanf:"identifier"`
- Sender string `koanf:"sender"`
+ Sender mail.Address `koanf:"sender"`
Subject string `koanf:"subject"`
StartupCheckAddress string `koanf:"startup_check_address"`
DisableRequireTLS bool `koanf:"disable_require_tls"`
@@ -32,9 +35,10 @@ type NotifierConfiguration struct {
// DefaultSMTPNotifierConfiguration represents default configuration parameters for the SMTP notifier.
var DefaultSMTPNotifierConfiguration = SMTPNotifierConfiguration{
- Timeout: time.Second * 5,
- Subject: "[Authelia] {title}",
- Identifier: "localhost",
+ Timeout: time.Second * 5,
+ Subject: "[Authelia] {title}",
+ Identifier: "localhost",
+ StartupCheckAddress: "test@authelia.com",
TLS: &TLSConfig{
MinimumVersion: "TLS1.2",
},