Wildcard-processor adds wildcard support for recipient hosts validation for go-guerilla package
This package is a Processor for the Go-Guerrilla SMTP server. By default it is possible to match hosts using exact names or "." character. Wildcard-processor adds another configuration option, where it is possible to define recipient hosts using wildcard, e.g. "*.com", so it offers much greater flexibility.
Set wildcard
as validate_process in your backend config file and define hosts with
wildcards under wildcard_hosts configuration field. Use commas for multiple values.
"backend_config":
{
"validate_process": "wildcard",
"wildcard_hosts": "*.com,*.org",
"log_received_mails": false,
},
Then import github.com/DevelHell/wildcard-processor
and add wildcard as a processor
app.AddProcessor("wildcard", wildcard_processor.WildcardProcessor)
And you're ready to go. For more information see go-guerilla documentation