# No emails beeing sent

**URL:** <https://community.passbolt.com/t/no-emails-beeing-sent/1250>\
**Category:** Installation Issues\
**Created:** [November 23, 2018, 2:21pm UTC](https://community.passbolt.com/t/no-emails-beeing-sent/1250 "2018-11-23T14:21:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjt](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/cjt/32/355_2.png) [@cjt](https://community.passbolt.com/u/cjt)\
**Post date:** [November 23, 2018, 2:21pm UTC](https://community.passbolt.com/t/no-emails-beeing-sent/1250/1 "2018-11-23T14:21:02Z")

</div>

Hi all.  
First of all, I need to let you know, that my knowledge of \*nix is very small. I’ve touched \*nix a few times in my IT carreer but instructions from you needs to be typed very clearly 🙂

I’ve made a VM in my vSphere 5.5 setup.  
It’s running Debian 9.6.0  
I’ve installed Passbolt, using the guide here: [Debian 9 guide](https://help.passbolt.com/hosting/install/ce/debian-9-stretch.html)

**FIRST ISSUE**  
I was told during the configuration of Passbolt in the web-interface, during the SMTP server setup, that I should create a CRON job.  
I have no clue what the CRON job should do (what command to run) ???

The system sends a test email with no issue:

> root@passbolt:/var/www/passbolt/bin# .cake passbolt send\_test\_email --recipient=emailaddress  
> …  
> …  
> …  
> The message been successfully sent!

And I receive the mail in my mailbox

But if I create a new user in the web-interface, the new user receives no e-mail?

By checking the database, I can see that there’s an email waiting to be sent:

> MariaDB[PassBoldDB] \> **SELECT id, subject, sent, send\_tries FROM email\_queue**  
> id\_\_\_subject\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_sent\_\_\_\_\_send\_tries  
> 1\_\_\_Welcome to Passbolt, Lars!\_\_\_0\_\_\_\_\_\_\_0

_Attempt to type the output of the select command_

I’ve seen posts telling a user to run the command

> ./cake passbolt emailqueue.sender

For me that results in an Exception:

 ![Exception](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/1X/77f528ebf1739f31c5a3c4ed1288b689a0cce946.png)

To fix that issue, I’ve found this post: [https://community.passbolt.com/t/unknown-column-emailqueue-to-in-field-list/577/6](https://community.passbolt.com/t/unknown-column-emailqueue-to-in-field-list/577/6) (see last comment from **REMY**

- clear your composer cache
- clear cakephp cache
- delete the content of /vendor
- run composer install again

**SECOND ISSUE**  
I’m not sure how to run those commands???

Thanks in advance!

Carsten

---

<div class="post-metadata">

**Author:** ![diego](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/diego/32/16_2.png) [@diego](https://community.passbolt.com/u/diego)\
**Post date:** [November 23, 2018, 5:13pm UTC](https://community.passbolt.com/t/no-emails-beeing-sent/1250/2 "2018-11-23T17:13:46Z")

</div>

Hi!

Here there is a list of the commands you are looking for: [No sending mail (send\_tries = 0)](https://community.passbolt.com/t/no-sending-mail-send-tries-0/1134/)

---

<div class="post-metadata">

**Author:** ![cjt](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/cjt/32/355_2.png) [@cjt](https://community.passbolt.com/u/cjt)\
**Post date:** [November 23, 2018, 10:43pm UTC](https://community.passbolt.com/t/no-emails-beeing-sent/1250/3 "2018-11-23T22:43:36Z")

</div>

Thanks for you reply.

From where do i run the “composer” commands?

By searching, i see a lot of “composer.json” and “composer.lock” files.

I have no success running the composer clear-cache command. Everywhere I’ve tried, I get the reply **composer: command not found**

The **cake cache clear\_all** command executes perfectly.  
I havent done the **delete /vendor folder** yet… I think I should have some success with the \*_composer_’ commands first…

Should I follow this guide and install composer: [How-to Install Composer on Debian 9](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-debian-9) ?

---

<div class="post-metadata">

**Author:** ![cjt](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/cjt/32/355_2.png) [@cjt](https://community.passbolt.com/u/cjt)\
**Post date:** [November 26, 2018, 8:50am UTC](https://community.passbolt.com/t/no-emails-beeing-sent/1250/4 "2018-11-26T08:50:32Z")

</div>

I went through the guide mentioned above (how to install composer on debian 9).  
I guess my Debian 9 install was a bit to slim.

After composer was installed, I renamed the /vendor folder, instead of deleting it. That turned out to be a good choice, as it turned out, I needed a lot of files from that folder to run the command **./bin/cake EmailQueue.sender** successfully.

Now I’m able to run that command without it giving me error messages. But it looks like the command doesnt do anything ??

A check in the database shows, that nothing has changed from the last time i ran the select command:

> MariaDB[PassBoldDB] \> **SELECT id, subject, sent, send\_tries FROM email\_queue**  
> id\_\_\_subject\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_sent\_\_\_\_\_send\_tries  
> 1\_\_\_Welcome to Passbolt, Lars!\_\_\_0\_\_\_\_\_\_\_0

Any suggestions?

---

<div class="post-metadata">

**Author:** ![remy](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/remy/32/17_2.png) [@remy](https://community.passbolt.com/u/remy)\
**Post date:** [November 26, 2018, 5:08pm UTC](https://community.passbolt.com/t/no-emails-beeing-sent/1250/5 "2018-11-26T17:08:04Z")

</div>

> [@cjt](#):
>
> I was told during the configuration of Passbolt in the web-interface, during the SMTP server setup, that I should create a CRON job.  
> I have no clue what the CRON job should do (what command to run) ???

If you have use the installation script the cron job will be created for you automatically. Otherwise you have to set it up manually.

> [@cjt](#):
>
> Now I’m able to run that command without it giving me error messages. But it looks like the command doesnt do anything ??

This is strange, maybe your installation is using another database than the one you are looking at using SQL? That’s the only explanation I can think of if both the test\_email and the EmailQueue.sender tasks work.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/b/bee7d3f9329f668000d46e9fcb2e5db1e9d31348.svg) [@system](https://community.passbolt.com/u/system)\
**Post date:** [December 1, 2018, 5:15pm UTC](https://community.passbolt.com/t/no-emails-beeing-sent/1250/6 "2018-12-01T17:15:16Z")

</div>

Closed on December 1, 2018, 5:15pm UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
