diff --git a/README.md b/README.md index 0408fd9..a9c03ca 100644 --- a/README.md +++ b/README.md @@ -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": ["*"], diff --git a/main.go b/main.go index d2939a6..893a93d 100644 --- a/main.go +++ b/main.go @@ -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"` diff --git a/server.go b/server.go index 96bc218..891156e 100644 --- a/server.go +++ b/server.go @@ -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