Skip to content

Commit 764f3b0

Browse files
committed
Updates
1 parent 04d96d2 commit 764f3b0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module github.com/scheiblingco/go-smtp-relay
22

3-
go 1.18
3+
go 1.25.0
44

55
require (
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

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ github.com/emersion/go-sasl v0.0.0-20220912192320-0145f2c60ead h1:fI1Jck0vUrXT8b
33
github.com/emersion/go-sasl v0.0.0-20220912192320-0145f2c60ead/go.mod h1:iL2twTeMvZnrg54ZoPDNfJaJaqy0xIQFuBdrLsmspwQ=
44
github.com/emersion/go-smtp v0.16.0 h1:eB9CY9527WdEZSs5sWisTmilDX7gG+Q/2IdRcmubpa8=
55
github.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=

main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ type Remote struct {
7575
var remote Remote
7676
var 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

150151
func sliceContains(s []string, e string) bool {

0 commit comments

Comments
 (0)