Make smtp_hello in config understood

This commit is contained in:
Nicolai Langfeldt
2025-04-25 12:32:13 +02:00
parent 7279a4ff71
commit 5d8c9cef9a
3 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,7 @@ On local PC (192.168.1.54) create file `/etc/mailrelay.json` with contents:
"smtp_password": "secretAppPassword",
"smtp_max_email_size": 10485760,
"smtp_login_auth_type": false,
"smtp_helo": "smtp.example.com",
"local_listen_ip": "0.0.0.0",
"local_listen_port": 2525,
"allowed_hosts": ["*"],

View File

@ -30,6 +30,7 @@ type mailRelayConfig struct {
SMTPLoginAuthType bool `json:"smtp_login_auth_type"`
SMTPUsername string `json:"smtp_username"`
SMTPPassword string `json:"smtp_password"`
SMTPHelo string `json:"smtp_helo"`
SkipCertVerify bool `json:"smtp_skip_cert_verify"`
MaxEmailSize int64 `json:"smtp_max_email_size"`
LocalListenIP string `json:"local_listen_ip"`

View File

@ -47,6 +47,7 @@ func Start(appConfig *mailRelayConfig, verbose bool) (err error) {
"smtp_starttls": appConfig.SMTPStartTLS,
"smtp_login_auth_type": appConfig.SMTPLoginAuthType,
"smtp_skip_cert_verify": appConfig.SkipCertVerify,
"smtp_helo": appConfig.SMTPHelo,
}
cfg.BackendConfig = bcfg