Recovery mail not send, but test mail is. Settings in admin panel are correct

Hello,

I have an issue with passbolt installed from source. It runs for about 5 years now without any issues. But all of a sudden, the mail stopped working.
Nobody receives a recovery mail anymore.
I found a topic here from a year ago, dit all the steps described there. But still got the same issue.
The health check is fine, and the settings of the admin, i attached as a screenshot also.
The cron doesn’t seem to have any issues, and when i run bin/cron it doesn’t give any issues either.

screenshot admin

Link to the existing post with steps in the comments: Passbolt self hosted does not send password recovery email only from administrator - #17 by garrett

Hey, welcome to the forum!

If this was working for 5 years and just recently stopped the first question would be did you update either your passbolt server or your mail server?

Additionally could you run the following query to see if there are any errors listed?
select email, subject, error, created, sent from email_queue;

Feel free to censor out any sensitive information there but it will be important to see any recent errors

Thank you for your fast reply
4488 rows in set last error occurred at 2023-04-17

Do you have some recent entries in there with errors or are they all showing as sent with no error in the database?

MariaDB [passbolt]> select email, subject, error, created, sent from email_queue order by created desc limit 10;
±-----------------------------------±--------------------------------±------±--------------------±-----+
| email | subject | error | created | sent |
±-----------------------------------±--------------------------------±------±--------------------±-----+
| jel******@c******.nl | Your account recovery, jel******! | NULL | 2023-08-11 10:02:55 | 1 |
| jel******@c******.nl | Your account recovery, jel******! | NULL | 2023-08-11 09:54:32 | 1 |
| jel******@c******.nl | Your account recovery, jel******! | NULL | 2023-08-11 08:58:45 | 1 |
| f******@c******.nl | Herstel van je account, f******! | NULL | 2023-08-11 06:02:14 | 1 |
| f******@c******.nl | Herstel van je account, f******! | NULL | 2023-08-11 05:56:00 | 1 |
| jef*********@c******.nl | Your account recovery, jef*****! | NULL | 2023-08-10 08:22:10 | 1 |
| jef*********@c******.nl | Your account recovery, jef*****! | NULL | 2023-08-10 08:19:34 | 1 |
| jef*********@c******.nl | Your account recovery, jef*****! | NULL | 2023-08-10 08:15:10 | 1 |
| jef*********@c******.nl | Your account recovery, jef*****! | NULL | 2023-08-10 08:01:24 | 1 |
| jef*********@c******.nl | Your account recovery, jef*****! | NULL | 2023-08-10 07:49:15 | 1 |

edited with nices view

Since those are showing successfully sent the issue is likely going to be on the mail server side. Do you run your own mail server or is this through a hosted one? If you run your own you’ll want to take a look to see if you can find anything there.

Otherwise checking your spam/junk folder could be an option if you haven’t already

I also thought so, but the test mail is delivered successfully. But I will look onto the email server log.
Also Gitlab is using the same mail server and these emails are sent correctly.

If the test email is going through but just the account recovery ones aren’t you might want to see if it is getting blocked somewhere due to an overly ambitious filter flagging it based on the mention of “account recovery” or “account”

1 Like

Ah I found something. Not sure if this is still passbolt related then:

Messages missing a valid messageId header are not 550 5.7.1 accepted

To add, I’m experiencing the same issue & can also confirm that passbolt is sending emails with message-id header unset. The message-id header is the responsibility of the client sending the email, not the MTA, so this is most certainly a Passbolt bug.

I’ve just started using Passbolt, so can’t comment on whether it was a recent change. But, the version i’ve set up is docker.io/passbolt/passbolt:4.1.2-1-ce-non-root

We are tracking this internally under the ticket PB-25863