mirror of
https://github.com/wiggin77/mailrelay.git
synced 2025-08-10 23:53:56 +02:00
Make smtp_hello in config understood
This commit is contained in:
@ -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": ["*"],
|
||||
|
1
main.go
1
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"`
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user