Skip to content

Commit b4b1f6c

Browse files
committed
Use port 25 if not specified in mapping
1 parent 5349a8c commit b4b1f6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proxy.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ func (s *ProxySession) getUpstream(recipient string) (Upstream, error) {
124124
continue
125125
}
126126

127+
if !strings.Contains(server.Server, ":") {
128+
server.Server = server.Server + ":25"
129+
}
130+
127131
return server, err
128132
}
129133

0 commit comments

Comments
 (0)