aboutsummaryrefslogtreecommitdiffstats
path: root/services/auth/source/smtp/source_authenticate.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/auth/source/smtp/source_authenticate.go')
-rw-r--r--services/auth/source/smtp/source_authenticate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/auth/source/smtp/source_authenticate.go b/services/auth/source/smtp/source_authenticate.go
index 63fd3e5511..dff24d494e 100644
--- a/services/auth/source/smtp/source_authenticate.go
+++ b/services/auth/source/smtp/source_authenticate.go
@@ -32,7 +32,7 @@ func (source *Source) Authenticate(user *user_model.User, userName, password str
var auth smtp.Auth
switch source.Auth {
case PlainAuthentication:
- auth = smtp.PlainAuth("", userName, password, source.Addr)
+ auth = smtp.PlainAuth("", userName, password, source.Host)
case LoginAuthentication:
auth = &loginAuthenticator{userName, password}
case CRAMMD5Authentication: