No emails beeing sent

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 :slight_smile:

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

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:

To fix that issue, I’ve found this post: 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

Hi!

Here there is a list of the commands you are looking for: No sending mail (send_tries = 0)

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 ?

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?

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

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.

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