diff --git a/services/auth/source/ldap/source_authenticate.go b/services/auth/source/ldap/source_authenticate.go
index 89e99b5e6..3f3219adb 100644
--- a/services/auth/source/ldap/source_authenticate.go
+++ b/services/auth/source/ldap/source_authenticate.go
@@ -76,7 +76,7 @@ func (source *Source) Authenticate(user *user_model.User, userName, password str
 		}
 
 		if len(sr.Mail) == 0 {
-			sr.Mail = fmt.Sprintf("%s@localhost", sr.Username)
+			sr.Mail = fmt.Sprintf("%s@localhost.local", sr.Username)
 		}
 
 		user = &user_model.User{
diff --git a/services/auth/source/ldap/source_sync.go b/services/auth/source/ldap/source_sync.go
index 3e0f47a37..43ee32c84 100644
--- a/services/auth/source/ldap/source_sync.go
+++ b/services/auth/source/ldap/source_sync.go
@@ -104,7 +104,7 @@ func (source *Source) Sync(ctx context.Context, updateExisting bool) error {
 		}
 
 		if len(su.Mail) == 0 {
-			su.Mail = fmt.Sprintf("%s@localhost", su.Username)
+			su.Mail = fmt.Sprintf("%s@localhost.local", su.Username)
 		}
 
 		fullName := composeFullName(su.Name, su.Surname, su.Username)