flashmob / go-guerrilla

Mini SMTP server written in golang
MIT License
2.79k stars 366 forks source link

Added greeting_type configuration option (#163) #224

Open batterystaples opened 3 years ago

batterystaples commented 3 years ago

This commit adds a greeting_type configuration option, which can be set to "postfix" or "guerrilla". If the Postfix option is selected, the SMTP greeting message will identify the server as Postfix. If the Guerrilla option is selected, the SMTP greeting message will identify the server as Guerrilla.

Having the ability to change how the server identifies itself is a protection against services that check the greeting message in order to detect and block temp mail services. The "postfix" option is set as default, as this will be the most convenient option for most users.

The tests have been updated to handle this change.

This closes #163 (and, potentially, #221).