MCPcopy Create free account
hub / github.com/foxcpp/maddy / authErrorMap

Method authErrorMap

internal/endpoint/smtp/smtp.go:334–348  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

332}
333
334func (endp *Endpoint) authErrorMap(err error) error {
335 if exterrors.IsTemporary(err) {
336 return &smtp.SMTPError{
337 Code: 454,
338 EnhancedCode: smtp.EnhancedCode{4, 7, 0},
339 Message: "Temporary authentication failure",
340 }
341 }
342
343 return &smtp.SMTPError{
344 Code: 535,
345 EnhancedCode: smtp.EnhancedCode{5, 7, 8},
346 Message: "Invalid credentials",
347 }
348}
349
350func (endp *Endpoint) setupListeners(addresses []config.Endpoint) error {
351 for _, addr := range addresses {

Callers 1

AuthPlainMethod · 0.80

Calls 1

IsTemporaryFunction · 0.92

Tested by

no test coverage detected