2
0
forked from drew/smtprelay

feat: add alias file support

This commit is contained in:
Aivars Sterns
2025-10-29 11:50:30 +02:00
committed by Bernhard Fröhlich
parent 6e9c00e171
commit 7b6be95125
5 changed files with 88 additions and 4 deletions

View File

@@ -200,7 +200,7 @@ func (c *Client) Auth(a smtp.Auth) error {
return err
}
encoding := base64.StdEncoding
mech, resp, err := a.Start(&smtp.ServerInfo{c.serverName, c.tls, c.auth})
mech, resp, err := a.Start(&smtp.ServerInfo{Name: c.serverName, TLS: c.tls, Auth: c.auth})
if err != nil {
c.Quit()
return err