useDefaultCredentials=false and smtp__username mutually exclusive?


#1

Hello, with the late June update to Bitwarden self hosted, our users began seeing errors about smtp auth failure when attempting to retrieve password hints. Our bwdata/env/global.override.env had the two default values:

globalSettings__mail__smtp__username=REPLACE
globalSettings__mail__smtp__password=REPLACE

but also:

globalSettings__mail__smtp__useDefaultCredentials=false

It had been working fine like that as I assume globalSettings__mail__smtp__useDefaultCredentials set to false meant having invalid smtp user/pass values didn’t matter given it wasn’t set to use the credentials to begin with. After that update, it seems to attempt the credentials regardless of globalSettings__mail__smtp__useDefaultCredentials’s value.

Just wanted to mention it in case this is a bug and others had the same setup, as your users may be seeing errors but failing to inform anyone.