I am trying to setup self-hosted and it all seems to be ok except when I try to register a new account.
It takes ages and then briefly shows an error saying “an unhandled server error has occured”
I did some research and did find a post suggesting it was my mail settings in the global.override.env file but from what I can tell these are all correct.
I’m trying to relay via Office365, I’ve created a connector, created an app password, checked the firewall port is open and i still can’t get it to work. I even wiped the installation and started again.
I’ve now tried with gmail and the same thing occurs.
Am i right in that i am editting the file called global.override.env and then restarting each time I make a change by typing command ./bitwarden.sh restart?
Also, I am not sure that Gmail SMTP uses StartTLS for authentication, so you might have to remove that line if trying with Gmail or set the value to false.
No, it should send the message directly from your server.
I am not sure what to suggest now, other than make sure you are using the rebuild parameter for the bitwarden.sh script and check the log for any clues to why it is failing.
Perhaps some others here may have encountered this problem and can suggest a solution?