phires / go-guerrilla

MIT License
112 stars 18 forks source link

add configurable smtp greeter #29

Open cgroschupp opened 1 year ago

phires commented 1 year ago

Hi, thank you for your contribution! Could you additionally provide an example for the configuration file? Just adding it like so "greeter_template": "220 {{ .Hostname }} SMTP Guerrilla({{ .Version }}) {{ .Time }}" results in an json parsing error (error="could not read config file: could not parse config file: json: cannot unmarshal array into Go struct field ServerConfig.servers.greeter_template of type template.Template")