Golang SMTP daemon library (smtpd)
gosmtpd receives email and send the messages to a channel.
import "github.com/slyngshede/gosmtpd"
import "net/mail"
func main(){
c := make(chan *mail.Message, 100)
config := smtpd.Config{Bind: ":2525",
Host: "smtp.localhost.localdomain",
Maxsize: 131072}
go smtpd.Serve(config, c)
}