diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -150,6 +150,11 @@ func main() { Addr: *flagListen, Hostname: *flagHostname, Handler: logWrapper(makeHandleEmail(mapping)), + AuthMechs: map[string]bool{"LOGIN": true, "PLAIN": true}, + AuthHandler: func(remoteAddr net.Addr, mechanism string, username []byte, password []byte, shared []byte) (bool, error) { + log.Printf("accept auth %v %v", string(username), string(password)) + return true, nil + }, } _ = server.ListenAndServe() } |