# Queue not working and emails all sending at once

**URL:** <https://forum.mautic.org/t/queue-not-working-and-emails-all-sending-at-once/28980>\
**Category:** Product Support\
**Created:** [August 17, 2023, 7:05pm UTC](https://forum.mautic.org/t/queue-not-working-and-emails-all-sending-at-once/28980 "2023-08-17T19:05:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![idkwhatswrong](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@idkwhatswrong](https://forum.mautic.org/u/idkwhatswrong)\
**Post date:** [August 17, 2023, 7:05pm UTC](https://forum.mautic.org/t/queue-not-working-and-emails-all-sending-at-once/28980/1 "2023-08-17T19:05:38Z")

</div>

**Your software**  
My Mautic version is: 4.4.8  
My PHP version is:7.4  
My Database type and version is:

**Your problem**  
My problem is:  
Emails are not sending with a delay and it looks like queue is not working at all.  
Current email cron: mautic:emails:send --message-limit=1 \> /dev/null 2\>&1  
Even with the config of 1 email per queue it doesn’t work. I’m at a complete loss here. It’s sending emails all at the same time and it’s destroying my domain reputation this way. It would be convenient to have a ‘send emails with delay’ option but that’s not available.

Anyway, I’m at a complete loss. I tried it with campaigns, even with segment emails and nothing works, it all sends in the same exact minute that I press ‘send’. Nothing queues.

Steps I have tried to fix the problem:  
Editing cronjobs, everything really - nothing works

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [August 17, 2023, 7:41pm UTC](https://forum.mautic.org/t/queue-not-working-and-emails-all-sending-at-once/28980/2 "2023-08-17T19:41:47Z")

</div>

Hi,

could you check please that you set Queue in Configuration → Email Settings ?

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a59cc5d2332e897b883a164b8ccf1bd64a971107.png)

Regards, M.

---

<div class="post-metadata">

**Author:** ![idkwhatswrong](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@idkwhatswrong](https://forum.mautic.org/u/idkwhatswrong)\
**Post date:** [August 17, 2023, 7:43pm UTC](https://forum.mautic.org/t/queue-not-working-and-emails-all-sending-at-once/28980/3 "2023-08-17T19:43:26Z")

</div>

Thank you for your reply. Yes I have it, it’s put to 1

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [August 17, 2023, 8:07pm UTC](https://forum.mautic.org/t/queue-not-working-and-emails-all-sending-at-once/28980/4 "2023-08-17T20:07:29Z")

</div>

can you disable cron temporarily and try to run the command via ssh and see what is the output. Does everything execute correctly? Is there anything of interrest in the log files under var/logs?

---

<div class="post-metadata">

**Author:** ![idkwhatswrong](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@idkwhatswrong](https://forum.mautic.org/u/idkwhatswrong)\
**Post date:** [August 17, 2023, 8:29pm UTC](https://forum.mautic.org/t/queue-not-working-and-emails-all-sending-at-once/28980/5 "2023-08-17T20:29:51Z")

</div>

I dont see anything related to the queue or delaying emails in the log…

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [August 18, 2023, 12:45pm UTC](https://forum.mautic.org/t/queue-not-working-and-emails-all-sending-at-once/28980/6 "2023-08-18T12:45:51Z")

</div>

If you have email set to queue, the send command just spools the emails in your /var/spool folder.

Use **bin/console swiftmailer:spool:send --message-limit=1** to limit sending

---

<div class="post-metadata">

**Author:** ![idkwhatswrong](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@idkwhatswrong](https://forum.mautic.org/u/idkwhatswrong)\
**Post date:** [August 18, 2023, 6:12pm UTC](https://forum.mautic.org/t/queue-not-working-and-emails-all-sending-at-once/28980/7 "2023-08-18T18:12:22Z")

</div>

Thank you but this also does not work.

Still at a complete loss and already thinking about workarounds which for such a seemingly simple option shouldn’t be necessary…

Crons I have:  
\*/15 \* \* \* \* …bin/console mautic:webhooks:process \> /dev/null 2\>&1  
\*/2 \* \* \* \* …bin/console swiftmailer:spool:send --message-limit=1  
\*/3 \* \* \* \* …bin/console mautic:campaigns:update \> /dev/null 2\>&1  
\*/5 \* \* \* \* …bin/console mautic:campaigns:trigger --batch-limit=5 \> /dev/null 2\>&1

- \*/1 \* \* \* …bin/console mautic:segments:update  
\*/4 \* \* \* \* …bin/console mautic:emails:send --message-limit=1 \> /dev/null 2\>&1  
\*/4 \* \* \* \* …bin/console mautic:broadcasts:send \>/dev/null 2\>&1

---

<div class="post-metadata">

**Author:** ![pbsd](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@pbsd](https://forum.mautic.org/u/pbsd)\
**Post date:** [June 18, 2024, 5:53pm UTC](https://forum.mautic.org/t/queue-not-working-and-emails-all-sending-at-once/28980/8 "2024-06-18T17:53:41Z")

</div>

Did you ever figure things out? I’m seeing the same issues with 4.9x (Latest). We are now spinning up a 5.1 server to see if this if fixed.
