In my self-hosted instance, I click on the Send Email to verify my email address, but I just get this error message:
I’ve configured postfix to use my mail provider. Sendmail is able to send the email, but when I click the button in the bitwarden gui, it still fails with the same error message. No messages in mail.err or mail.log.
If you are using a local mail server with postfix you may wish to look at some resources here from other users doing the same.
I’m using self-hosted Bitwarden with self-hosted Postfix mail server. I’m trying to verify my account with email, but getting this:
At the same time, test of sending message via “mail” command of mailutils package is successful
echo "This is the body of the email" | mail -s "This is the subject line" your_email_address
Can you help me figure it out? Thank you in advance.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_dest…
You may need to make sure you are pointing outside of the Bitwarden container to the host system where postfix is set-up, or make sure any docker networking is configured if in another container.
Inside Bitwarden’s Docker containers, localhost and 127.0.0.1 do not refer to your host system where the mail server is listening.
Depending on your OS, there are several ways to access the host:
I am using postfix client on fedora28 test machine. And I am able to send out test email using sendmail command line.
I made the change like following in bwdata/env/global.override.env and docker-compose restart the bw server.
[email protected] env]# rcsdiff ./global.override.env
RCS file: ./RCS/global.override.env,v
retrieving revision 1.1
diff -r1.1 ./global.override.env
If at all possible I highly recommend trying to use an SMTP relay rather than hosting your own mail server, but hopefully these links help.