Tragon is a minimal Go package to build fake SMTP servers that process all incoming data.
The use cases for such servers can be:
- Testing email clients.
- Analyzing email for malware.
- Analyzing email for phishing.
- Harvesting email addresses.
- Collecting email spam.
This package is not intended to be used for:
- Building fully working SMTP servers.
- Building interactive mocks of SMTP servers.
- Always replies positively.
- Customizable SMTP reply messages.
- Customizable connection handling.
- Customizable message handling.
- Customizable errror handling.
Execute:
go get github.com/gguillemas/tragon
Execute:
go doc github.com/gguillemas/tragon
Or visit godoc.org to read it online.
An example of a common use case can be found in cmd/tragon-attachments-example
.
This example shows how Tragon can be used to extract, store and analyze email attachments.