diff --git a/internal/auth/dovecot_sasl/dovecot_sasl.go b/internal/auth/dovecot_sasl/dovecot_sasl.go index d095bada..8dbf17d4 100644 --- a/internal/auth/dovecot_sasl/dovecot_sasl.go +++ b/internal/auth/dovecot_sasl/dovecot_sasl.go @@ -101,7 +101,7 @@ func (a *Auth) Init(cfg *config.Map) error { if err != nil { return fmt.Errorf("%s: invalid server endpoint: %v", modName, err) } - if endp.Path == "" { + if endp.Path != "" { return fmt.Errorf("%s: unexpected path in endpoint ", modName) }