# Docker install. Test email is OK, notification emails are sent but never received

**URL:** <https://community.passbolt.com/t/docker-install-test-email-is-ok-notification-emails-are-sent-but-never-received/7192>\
**Category:** Installation Issues\
**Created:** [April 24, 2023, 2:18pm UTC](https://community.passbolt.com/t/docker-install-test-email-is-ok-notification-emails-are-sent-but-never-received/7192 "2023-04-24T14:18:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chachou](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@chachou](https://community.passbolt.com/u/chachou)\
**Post date:** [April 24, 2023, 2:18pm UTC](https://community.passbolt.com/t/docker-install-test-email-is-ok-notification-emails-are-sent-but-never-received/7192/1 "2023-04-24T14:18:48Z")

</div>

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

Hello,  
Try to use Docker image.

**Test email is sent and received**.

docker-compose exec passbolt su -m -c “/usr/share/php/passbolt/bin/cake passbolt send\_test\_email [--recipient=XXXX@gmail.com](mailto:--recipient=XXXX@gmail.com)” -s /bin/sh www-data  
works fine.

**But notification emails are not received.**

If i check the database with :  
docker exec -ti passbolt\_db\_1 bash -c ‘mysql -u${MYSQL\_USER} -p${MYSQL\_PASSWORD} ${MYSQL\_DATABASE}’  
select email, subject, error, created, sent from email\_queue;

I can see that notification mails are queued, and sent (“sent” field change from 0 to 1) … but never received.

Thank you for your help !  
Philippe

---

<div class="post-metadata">

**Author:** ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/garrett/32/545_2.png) [@garrett](https://community.passbolt.com/u/garrett)\
**Post date:** [April 24, 2023, 4:34pm UTC](https://community.passbolt.com/t/docker-install-test-email-is-ok-notification-emails-are-sent-but-never-received/7192/2 "2023-04-24T16:34:15Z")

</div>

@chachou Hi Philippe welcome to the forum!

To get a healthcheck see this page: [Passbolt Help | Troubleshoot Docker](https://help.passbolt.com/faq/hosting/troubleshoot-docker)

But also check the passbolt admin settings page to see if emails are enabled for the event you expect.

---

<div class="post-metadata">

**Author:** ![thecomputerguy](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/thecomputerguy/32/2217_2.png) [@thecomputerguy](https://community.passbolt.com/u/thecomputerguy)\
**Post date:** [April 24, 2023, 8:45pm UTC](https://community.passbolt.com/t/docker-install-test-email-is-ok-notification-emails-are-sent-but-never-received/7192/3 "2023-04-24T20:45:18Z")

</div>

There is a good chance the emails are being filtered as spam or something of that nature.

---

<div class="post-metadata">

**Author:** ![clayton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@clayton](https://community.passbolt.com/u/clayton)\
**Post date:** [April 25, 2023, 6:08am UTC](https://community.passbolt.com/t/docker-install-test-email-is-ok-notification-emails-are-sent-but-never-received/7192/4 "2023-04-25T06:08:05Z")

</div>

Since these are marked sent a few places to look

- as @thecomputerguy mentioned you might want to take a look in your spam/junk folder
- check the logs on the smtp server you are sending from
- check logs on the receiving server to see if there is anything there

---

<div class="post-metadata">

**Author:** ![jwaresolutions](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/jwaresolutions/32/2551_2.png) [@jwaresolutions](https://community.passbolt.com/u/jwaresolutions)\
**Post date:** [June 7, 2023, 6:16pm UTC](https://community.passbolt.com/t/docker-install-test-email-is-ok-notification-emails-are-sent-but-never-received/7192/5 "2023-06-07T18:16:40Z")

</div>

I am having this same issue. I setup the e-mail server with the provider `Google Workspace` and sent a test e-mail. that works. but when I attempt to log in as a user i get a message to “Check your mailbox!” but that message never arrives. I have also checked my spam folder, it is not there.

---

<div class="post-metadata">

**Author:** ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/garrett/32/545_2.png) [@garrett](https://community.passbolt.com/u/garrett)\
**Post date:** [June 7, 2023, 10:53pm UTC](https://community.passbolt.com/t/docker-install-test-email-is-ok-notification-emails-are-sent-but-never-received/7192/6 "2023-06-07T22:53:43Z")

</div>

@jwaresolutions I’m interested in making the email test better, as it doesn’t seem to catch various issues with settings.

Can you provide the following:

- an example of your email settings (substitute in fake info that is similar on text fields)
- describe your installation and OS
- which test are you running?

Thanks!

---

<div class="post-metadata">

**Author:** ![jwaresolutions](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/jwaresolutions/32/2551_2.png) [@jwaresolutions](https://community.passbolt.com/u/jwaresolutions)\
**Post date:** [June 8, 2023, 4:37pm UTC](https://community.passbolt.com/t/docker-install-test-email-is-ok-notification-emails-are-sent-but-never-received/7192/7 "2023-06-08T16:37:58Z")

</div>

> [@garrett](#):
>
> Can you provide the following:
> 
> - an example of your email settings (substitute in fake info that is similar on text fields)
> - describe your installation and OS
> - which test are you running?

I followed the setup used by Network Chuck in this video [https://www.youtube.com/watch?v=jAfQvMxcokI](https://www.youtube.com/watch?v=jAfQvMxcokI)  
so it is docker containers running on a linode droplet on Ubuntu 22.04 LTS  
I made some minor changes, for instance. I created an A record to point to the server and used that instead of the RDNS address in the video. that works fine.

I am using the google workspaces setup

```auto
Email provider - Google Workspaces
Authentication Method - Username Only
Username - {my workspaces username]
-- no advanced settings were changed --
sender name/sender e-mail - {my workspaces username}

```

when i sent a test e-mail from the e-mail server setup page i recieve the email in less than 5 seconds every time.

---

<div class="post-metadata">

**Author:** ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/garrett/32/545_2.png) [@garrett](https://community.passbolt.com/u/garrett)\
**Post date:** [June 8, 2023, 4:54pm UTC](https://community.passbolt.com/t/docker-install-test-email-is-ok-notification-emails-are-sent-but-never-received/7192/8 "2023-06-08T16:54:42Z")

</div>

So if it’s a username only, are you whitelisting the ip address for the passbolt server in the Google settings?

If no other email works except the test one, that would be somehow related to the CRON job which runs each minute.

The db has a record of the emails sent [Not receiving emails from app - #2 by clayton](https://community.passbolt.com/t/not-receiving-emails-from-app/7156/2)

You could try running the command in that post to get an idea of delivery results.
