[SOLVED] Automatic emails in Debin 9

Hello,

I have installed Passbolt V2 in a Debian 9. I can`t activate the cron to send the emails automatically.

If I do the email send test it tells me that it is ok and if I send it with /bin/cake EmailQueue.sender sends it well.

I tried to create the cron for apache and put this command.
* * * * * su -c "/ var / www / passbolt / bin / cake EmailQueue.sender >> /var/log/passbolt.log" -s / bin / bash www-data

What is the correct way to implement the cron?

Thanks for your work,

Xabi

Hi @xpico

Here you have an example:

$ echo "* * * * * su -c \"/var/www/passbolt/bin/cake EmailQueue.sender\" -s /bin/bash www-data >> /var/log/cron.log 2>&1" > /etc/cron.d/passbolt_email
$ crontab /etc/cron.d/passbolt_email

Hi @diego,

This worked for me perfectly

Thank you very much,

Xabi

1 Like

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