File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11module github.com/scheiblingco/go-smtp-relay
22
3- go 1.18
3+ go 1.25.0
44
55require (
66 github.com/emersion/go-sasl v0.0.0-20220912192320-0145f2c60ead // direct
77 github.com/emersion/go-smtp v0.16.0 // direct
88)
99
10- require golang.org/x/exp v0.0.0-20240119083558-1b970713d09a // indirect
10+ require golang.org/x/exp v0.0.0-20250819193227-8b4c13bb791b
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ github.com/emersion/go-sasl v0.0.0-20220912192320-0145f2c60ead h1:fI1Jck0vUrXT8b
33github.com/emersion/go-sasl v0.0.0-20220912192320-0145f2c60ead /go.mod h1:iL2twTeMvZnrg54ZoPDNfJaJaqy0xIQFuBdrLsmspwQ =
44github.com/emersion/go-smtp v0.16.0 h1:eB9CY9527WdEZSs5sWisTmilDX7gG+Q/2IdRcmubpa8 =
55github.com/emersion/go-smtp v0.16.0 /go.mod h1:qm27SGYgoIPRot6ubfQ/GpiPy/g3PaZAVRxiO/sDUgQ =
6- golang.org/x/exp v0.0.0-20240119083558-1b970713d09a h1:Q8/wZp0KX97QFTc2ywcOE0YRjZPVIx+MXInMzdvQqcA =
7- golang.org/x/exp v0.0.0-20240119083558-1b970713d09a /go.mod h1:idGWGoKP1toJGkd5/ig9ZLuPcZBC3ewk7SzmH0uou08 =
6+ golang.org/x/exp v0.0.0-20250819193227-8b4c13bb791b h1:DXr+pvt3nC887026GRP39Ej11UATqWDmWuS99x26cD0 =
7+ golang.org/x/exp v0.0.0-20250819193227-8b4c13bb791b /go.mod h1:4QTo5u+SEIbbKW1RacMZq1YEfOBqeXa19JeshGi+zc4 =
Original file line number Diff line number Diff line change @@ -75,8 +75,9 @@ type Remote struct {
7575var remote Remote
7676var config * Config
7777
78- func (bkd * RelayBackend ) NewSession (_ * smtp.Conn ) (smtp.Session , error ) {
78+ func (bkd * RelayBackend ) NewSession (sc * smtp.Conn ) (smtp.Session , error ) {
7979 log .Println ("Session started" )
80+ fmt .Println (sc .Hostname ())
8081 return & Session {Anonymous : true }, nil
8182}
8283
@@ -144,7 +145,7 @@ func (s *Session) AuthPlain(username, password string) error {
144145 return nil
145146 }
146147 log .Println ("User" , username , "authenticated failed" )
147- return errors .New ("invalid username or password " )
148+ return errors .New ("invalid connection parameters (UPX) " )
148149}
149150
150151func sliceContains (s []string , e string ) bool {
You can’t perform that action at this time.
0 commit comments