Email not working even if test pass

Checklist
[x] I have read intro post: About the Installation Issues category
[x] I have read the tutorials, help and searched for similar issues
[x] I provide relevant information about my server (component names and versions, etc.)
[x] I provide a copy of my logs and healthcheck
[x] I describe the steps I have taken to trouble shoot the problem
[x] I describe the steps on how to reproduce the issue

sudo su -s /bin/bash -c “./bin/cake passbolt healthcheck” www-data

Healthcheck shell
Environment

[PASS] PHP version 7.4.3.

[PASS] No error found. Nice one sparky!

$ ./bin/cake passbolt send_test_email --recipient=youremail@domain.com

The message has been successfully sent!
And I have received this test email.

Then I try to use another account to login, and the website says it is sending an email to me. But I never received it (I have checked the spam).

sudo crontab -e

          • sudo /var/www/passbolt/bin/cake EmailQueue.sender >> /var/log/passbolt-email.log

this fixes it.