Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify Email send produces error #2647

Closed
1 task done
Tracked by #2480
ajkelsey opened this issue Jan 29, 2023 · 7 comments
Closed
1 task done
Tracked by #2480

Verify Email send produces error #2647

ajkelsey opened this issue Jan 29, 2023 · 7 comments
Labels
bug bw-unified-deploy An Issue related to Bitwarden unified deployment

Comments

@ajkelsey
Copy link

Steps To Reproduce

  1. Login to new account
  2. Click Verify Email "Send email" button.

Expected Result

Expected an email to be sent to account email address.

Actual Result

Website generated an error.

Screenshots or Videos

image

From the Developer Console

image

Additional Context

No response

Githash Version

"version":"2023.1.0","gitHash"

Environment Details

Ubuntu
Docker Compose

Database Image

mariadb:10

Issue-Link

#2480

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@ajkelsey ajkelsey added bug bw-unified-deploy An Issue related to Bitwarden unified deployment labels Jan 29, 2023
@ajkelsey
Copy link
Author

globalSettings__mail__replyToEmail=MY EMAIL ADDRESS
globalSettings__mail__smtp__host=SMTP SERVER
globalSettings__mail__smtp__port=465
globalSettings__mail__smtp__ssl=true
globalSettings__mail__smtp__username=EMAIL LOGIN
globalSettings__mail__smtp__password=EMAIL PASSWORD

@kspearrin
Copy link
Member

Can you check the error logs under /etc/bitwarden/logs/api.log?

@ajkelsey
Copy link
Author

api.log

2023-01-31 17:46:34.485 +00:00 [ERR] 535: Incorrect authentication data
MailKit.Security.AuthenticationException: 535: Incorrect authentication data
 ---> MailKit.Net.Smtp.SmtpCommandException: Incorrect authentication data
   --- End of inner exception stack trace ---
   at MailKit.Net.Smtp.SmtpClient.AuthenticateAsync(Encoding encoding, ICredentials credentials, Boolean doAsync, CancellationToken cancellationToken)
   at Bit.Core.Services.MailKitSmtpMailDeliveryService.SendEmailAsync(MailMessage message) in /source/src/Core/Services/Implementations/MailKitSmtpMailDeliveryService.cs:line 92
   at Bit.Core.Services.HandlebarsMailService.SendVerifyEmailEmailAsync(String email, Guid userId, String token) in /source/src/Core/Services/Implementations/HandlebarsMailService.cs:line 50
   at Bit.Core.Services.UserService.SendEmailVerificationAsync(User user) in /source/src/Core/Services/Implementations/UserService.cs:line 507
   at Bit.Api.Controllers.AccountsController.PostVerifyEmail() in /source/src/Api/Controllers/AccountsController.cs:line 182
   at lambda_method411(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

@kspearrin
Copy link
Member

Errors show that is cannot authenticate to your mail server for whatever reason

@kspearrin
Copy link
Member

Can you paste what the verification button link is?

@ajkelsey
Copy link
Author

I have located the configuration error and it is now working. 🤦‍♂️ I was also able to identify the problem with the verify link address. Thank you for your help and patience in getting on the right track. 👍

@robogito
Copy link

robogito commented Feb 9, 2023

Try to uncomment all this:

BW_ENABLE_ADMIN=true
BW_ENABLE_API=true
BW_ENABLE_EVENTS=false
BW_ENABLE_ICONS=true
BW_ENABLE_IDENTITY=true
BW_ENABLE_NOTIFICATIONS=true
BW_ENABLE_SCIM=false
BW_ENABLE_SSO=false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bw-unified-deploy An Issue related to Bitwarden unified deployment
Projects
None yet
Development

No branches or pull requests

3 participants