From 1689c8bae86c8f6d347794d9ae0554cfe456f7d7 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Fri, 14 May 2021 00:16:01 +0200 Subject: accept all emails with any auth credentials --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index ef7440a..bbf2211 100644 --- a/main.go +++ b/main.go @@ -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() } -- cgit v1.2.1