Added support for sending with relay hosts

This commit is contained in:
Niels Bouma
2023-05-10 19:33:05 +00:00
committed by Aine
parent 84102d5b5b
commit ee8d8680ac
7 changed files with 153 additions and 36 deletions

View File

@@ -143,6 +143,12 @@ func initSMTP(cfg *config.Config) {
MaxSize: cfg.MaxSize,
Bot: mxb,
Callers: []smtp.Caller{mxb, q},
Relay: smtp.RelayConfig{
Host: cfg.Relay.Host,
Port: cfg.Relay.Port,
Usename: cfg.Relay.Username,
Password: cfg.Relay.Password,
},
})
}