Your software
My Mautic version is: 5.0.4
My PHP version is: 8.1.28
My Database type and version is: MySQL 8.2.0
Your problem
I have a campaign that leads are entering when they enter the segment and receive the first email. Then there is an action that should be carried out within 2 days, which sends a follow-up email. This email is never sent and I don’t understand why.
Taking a contact as an example, I can see that he receives the welcome email on April 30th and today, May 7th, he does not receive the follow-up email 1.
Probably not all but very likely most of your headaches come from that
(and best advice you’ll ever find on each and every PHP based web app forum, including this one):
Don’t use root
Steps to resolve:
Remove all your Mautic cronjobs from your root crontab
Wipe clean your cache folder using the rm -Rf cmd while root
log out from the root account (you won’t ever need it anymore to manage your web app)
log in as your web user (if a shell is available, otherwise sudo yourself and assign the cronjobs to that user crontab using the crontab “-u” argument)
Found the problem: it’s related with my RabbitMQ queue settings:
When the action is executed , throws an error vhost mautic/messages not found when trying to send any e-mail using queue:
Looks like this PR is settings a /messages at the end of of MAUTIC_MESSENGER_DSN_EMAIL and MAUTIC_MESSENGER_DSN_HIT variables, that causes the problem.