Get receiving email a step closer with a modified go-smtp

This commit is contained in:
2018-03-07 21:58:50 +00:00
parent 697e90ab99
commit 26c702b11c
6 changed files with 77 additions and 26 deletions

View File

@@ -8,6 +8,10 @@ import (
type Backend interface {
// Authenticate a user.
Login(username, password string) (User, error)
// Called if the client attempts to send mail without logging in first.
// Respond with smtp.AuthRequiredErr if you don't want to support this.
AnonymousLogin() (User, error)
}
// An authenticated user.