Hi,
I cannot seem to make my o365 exchange work with bitwarden. what am i getting wrong?
[email protected]
globalSettings__mail__smtp__host=smtp.office365.com
globalSettings__mail__smtp__port=587
globalSettings__mail__smtp__ssl=false
globalSettings__mail__smtp__startTls=true
globalSettings__mail__smtp__username=*****
globalSettings__mail__smtp__password=*****
globalSettings__mail__smtp__trustServer=true
globalSettings__disableUserRegistration=false
dh024
(David H )
July 28, 2022, 5:32pm
2
Hello @Leon_Lamothe - welcome to the Bitwarden community!
Do you use MFA on your Microsoft account? If so, did you generate an app password to use for your SMTP settings? That is a common problem.
Did you remember to restart the Bitwarden server with sudo ./bitwarden.sh restart
on the host machine?
If those are all ok, have you checked the logs to see why the service is not sending emails?
1 Like
dh024
(David H )
July 28, 2022, 5:44pm
3
You might also want to check out this discussion:
opened 01:31PM - 16 Apr 19 UTC
closed 10:34AM - 23 Aug 21 UTC
I am hosting an on-prem instance of BitWarden. I was able to setup and configure… docker and install and configure BitWarden. However I am running into an error when attempting to send the verification email, the error is as follows:
`An error has occurred. An unhandled server error has occurred.`
Here is what my current configuration looks like:
`globalSettings__mail__replyToEmail=no-reply@dns_etnry.company_name.org`
`globalSettings__mail__smtp__host=smtp.company_name.org`
`globalSettings__mail__smtp__port=25`
`globalSettings__mail__smtp__ssl=false`
`globalSettings__mail__smtp__username=`
`globalSettings__mail__smtp__password=`
`globalSettings__disableUserRegistration=false`
`adminSettings__admins=`
I would be happy to include my logs, but I am not sure what logs are relevant.
The Docker host is an Ubuntu Server 18.04 LTS. This is also my first time really using Docker, so I am by no means an expert and there could be something else going wrong under the hood.
Any idea what could be causing the error?
there is no mfa enabled on my test account. and i did restart bitwarden.
i’ll try to get some logs
dh024
(David H )
July 28, 2022, 6:16pm
5
Sounds good. You can also try enabling SSL, even though SMTP Auth will be by STARTTLS. And then rebuild, of course.
cant seem to fit the bitwarden email logs, where are they located?
dh024
(David H )
July 28, 2022, 7:12pm
7
The default location is inside your bitwarden folder (e.g., /opt/bitwarden) under ./bwdata/logs. IIRC it is the Api folder that stores the SMTP logs, but I am not 100% sure of that.