add ssl/tls option for email encryption (#13)

This commit is contained in:
Christoph Haas
2021-04-22 14:11:54 +02:00
parent 7042523c54
commit 926733dea4
3 changed files with 30 additions and 9 deletions

View File

@@ -112,6 +112,7 @@ func NewConfig() *Config {
cfg.WG.ManageIPAddresses = true
cfg.Email.Host = "127.0.0.1"
cfg.Email.Port = 25
cfg.Email.Encryption = common.MailEncryptionNone
// Load config from file and environment
cfgFile, ok := os.LookupEnv("CONFIG_FILE")