# Emails are being stuck in mautic spool folder

**URL:** <https://forum.mautic.org/t/emails-are-being-stuck-in-mautic-spool-folder/15329>\
**Category:** Product Support\
**Created:** [July 22, 2020, 4:19pm UTC](https://forum.mautic.org/t/emails-are-being-stuck-in-mautic-spool-folder/15329 "2020-07-22T16:19:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![owen.liew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/owen.liew/32/1123_2.png) [@owen.liew](https://forum.mautic.org/u/owen.liew)\
**Post date:** [July 22, 2020, 4:19pm UTC](https://forum.mautic.org/t/emails-are-being-stuck-in-mautic-spool-folder/15329/1 "2020-07-22T16:19:22Z")

</div>

**Your software**  
My PHP version is: 7.0.33

**Your problem**  
My problem is: I have an issue with Mautic regarding server issue whereby my emails get sent to the spool folder and get stucked there. I used to be able to send out the emails normally but just recently it doesnt work anymore. I did not make any changes from the setting from when it was working.  
I have tried deleting the .message file and re-sending and it will get stuck in the spool folder again. I have notice a weird increase in size from file 1 to as it continue building the other (same email). Anyone face any similar issues? or might know a fix to it?

Feel free to ask for additional information if needed.

---

<div class="post-metadata">

**Author:** ![luiz\_rocha](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/luiz_rocha/32/1477_2.png) [@luiz\_rocha](https://forum.mautic.org/u/luiz_rocha)\
**Post date:** [July 22, 2020, 4:25pm UTC](https://forum.mautic.org/t/emails-are-being-stuck-in-mautic-spool-folder/15329/2 "2020-07-22T16:25:38Z")

</div>

Hello people! I am having a problem with sending emails. When I activate the queue it stops sending emails. how can i solve this?

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [August 28, 2020, 12:21pm UTC](https://forum.mautic.org/t/emails-are-being-stuck-in-mautic-spool-folder/15329/3 "2020-08-28T12:21:17Z")

</div>

Hey @owen.liew,

Have you found a solution for this problem? I am facing the same problem with my emails.

---

<div class="post-metadata">

**Author:** ![maumatic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/maumatic/32/3284_2.png) [@maumatic](https://forum.mautic.org/u/maumatic)\
**Post date:** [August 29, 2020, 10:41am UTC](https://forum.mautic.org/t/emails-are-being-stuck-in-mautic-spool-folder/15329/4 "2020-08-29T10:41:06Z")

</div>

Hi,

Did it stopped working after you upgraded to version 3 ?  
If yes then you should check your cron jobs: the `console` is now in the `bin` directory, not `app` anymore.

Here’s my cron jobs:

```
*/5 * * * * /bin/php /var/www/mmm.mysite.com/bin/console mautic:segments:update > /dev/null 2>&1
1,6,11,16,21,26,31,36,41,46,51,56 * * * * /bin/php /var/www/mmm.mysite.com/bin/console mautic:campaigns:rebuild > /dev/null
2,7,12,17,22,27,32,37,42,47,52,57 * * * * /bin/php /var/www/mmm.mysite.com/bin/console mautic:campaigns:trigger > /dev/null
13,28,43,58 * * * * /bin/php /var/www/mmm.mysite.com/bin/console mautic:import
* * * * * /bin/php /var/www/mmm.mysite.com/bin/console mautic:emails:send > /dev/null 2>&1

```

The emails are sent every minute like that.

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [November 15, 2020, 4:46am UTC](https://forum.mautic.org/t/emails-are-being-stuck-in-mautic-spool-folder/15329/5 "2020-11-15T04:46:21Z")

</div>

> [@maumatic](#):
>
> `/bin/php /var/www/mmm.mysite.com/bin/console mautic:segments:update > /dev/null 2>&1`

Thanks @maumatic let me try this and get back.  
Sorry for replying so late, I was in the process of shifting servers.

---

<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:** [November 16, 2020, 5:44pm UTC](https://forum.mautic.org/t/emails-are-being-stuck-in-mautic-spool-folder/15329/6 "2020-11-16T17:44:21Z")

</div>

> [@maumatic](#):
>
> `/bin/console mautic:emails:send`

You have to add this cron or try **/bin/console swiftmailer:spool:send**

---

<div class="post-metadata">

**Author:** ![condoexchange](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/condoexchange/32/682_2.png) [@condoexchange](https://forum.mautic.org/u/condoexchange)\
**Post date:** [October 30, 2021, 3:45pm UTC](https://forum.mautic.org/t/emails-are-being-stuck-in-mautic-spool-folder/15329/7 "2021-10-30T15:45:07Z")

</div>

I have a database of around 600k and using SES to send via smtp. All cron jobs are set as required and the system shows all emails have been sent and no errors shown on the frontend. But when I check SES dashboard, I see only 50% of the emails have been sent and the number is stuck there from the last 1 day. (I have great email limit with SES and are not capped yet)

When I check files on Mautic backend via FTP, following are the observations:

1. Spool folder is empty but yet the size is 16mb
2. Checked these 2 log files - hope Mautic can check and let me know what’s going wrong.

File: mautic\_prod-2021-10-30.php

[2021-10-30 00:00:16] mautic.ERROR: Invalid clickthrough value: Yjo4OntmOjk6ImZiaGVkZiI7Yjo1Ont2OjM7Zjo4OiJmemJ2eSI7djo0O3Y6NTt9Zjo4OiJmemJ2eSI7djo1O2Y6NzoiZmdiZyI7Zjo1NToiOTQwYmE1ZjMzZmUyZTk2Njg1NzY1NyI7Zjo3OiJ5ZmJlIjtmOjk6IjU2MTg0MSI7ZjowOiJkdWJhYWZ5IjtiOjQ6e2Y6ODoiZnpidnkiO3Y6NTt9fQ== {“exception”:"[object] (Mautic\CoreBundle\Exception\InvalidDecodedStringException(code: 0): The string b:8:{f:9:“fbhedf”;b:5:{v:3;f:8:“fzbvy”;v:4;v:5;}f:8:“fzbvy”;v:5;f:7:“fgbg”;f:55:“940ba5f33fe2e966857657”;f:7:“yfbe”;f:9:“561841”;f:0:“dubaafy”;b:4:{f:8:“fzbvy”;v:5;}} is not a serialized array at /home/private/public\_html/privatedomain.org/mautic/app/bundles/CoreBundle/Helper/ClickthroughHelper.php:46)"}

File: prod-2021-10-30.php

[2021-10-30 01:31:22] console.CRITICAL: Error thrown while running command “mautic:emails:send”. Message: “Expected response code 250 but got code “554”, with message “554 Transaction failed: Address length is more than 320 bytes long: ‘=?utf-8?Q?Genevi=C3=83=C6=92=C3=86=E2=80=99=C3=83=E2=80=A0?= =?utf-8?Q?=C3=A2=E2=82=AC=E2=84=A2=C3=83=C6=92=C3=A2=E2=82=AC=C2=A0?= =?utf-8?Q?=C3=83=C2=A2=C3=A2=E2=80=9A=C2=AC=C3=A2=E2=80=9E=C2=A2?= =?utf-8?Q?=C3=83=C6=92=C3=86=E2=80=99=C3=83=C2=A2=C3=A2=E2=80=9A?= =?utf-8?Q?=C2=AC=C3=85=C2=A1=C3=83=C6=92=C3=A2=E2=82=AC=C5=A1?= =?utf-8?Q?=C3=83=E2=80=9A=C3=82=C2=A8ve?= Noiseux [privateemail@hotmail.com](mailto:privateemail@hotmail.com)’. “” {“exception”:”[object] (Swift\_TransportException(code: 554): Expected response code 250 but got code “554”, with message “554 Transaction failed: Address length is more than 320 bytes long: ‘=?utf-8?Q?Genevi=C3=83=C6=92=C3=86=E2=80=99=C3=83=E2=80=A0?= =?utf-8?Q?=C3=A2=E2=82=AC=E2=84=A2=C3=83=C6=92=C3=A2=E2=82=AC=C2=A0?= =?utf-8?Q?=C3=83=C2=A2=C3=A2=E2=80=9A=C2=AC=C3=A2=E2=80=9E=C2=A2?= =?utf-8?Q?=C3=83=C6=92=C3=86=E2=80=99=C3=83=C2=A2=C3=A2=E2=80=9A?= =?utf-8?Q?=C2=AC=C3=85=C2=A1=C3=83=C6=92=C3=A2=E2=82=AC=C5=A1?= =?utf-8?Q?=C3=83=E2=80=9A=C3=82=C2=A8ve?= Noiseux [privateemail@hotmail.com](mailto:privateemail@hotmail.com)’.\r\n” at /home/privatet/public\_html/privatedomain.org/mautic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:459)”,“command”:“mautic:emails:send”,“message”:“Expected response code 250 but got code “554”, with message “554 Transaction failed: Address length is more than 320 bytes long: ‘=?utf-8?Q?Genevi=C3=83=C6=92=C3=86=E2=80=99=C3=83=E2=80=A0?= =?utf-8?Q?=C3=A2=E2=82=AC=E2=84=A2=C3=83=C6=92=C3=A2=E2=82=AC=C2=A0?= =?utf-8?Q?=C3=83=C2=A2=C3=A2=E2=80=9A=C2=AC=C3=A2=E2=80=9E=C2=A2?= =?utf-8?Q?=C3=83=C6=92=C3=86=E2=80=99=C3=83=C2=A2=C3=A2=E2=80=9A?= =?utf-8?Q?=C2=AC=C3=85=C2=A1=C3=83=C6=92=C3=A2=E2=82=AC=C5=A1?= =?utf-8?Q?=C3=83=E2=80=9A=C3=82=C2=A8ve?= Noiseux [privateemail@hotmail.com](mailto:privateemail@hotmail.com)’.\r\n””}

---

<div class="post-metadata">

**Author:** ![ahmadmushtaq](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ahmadmushtaq/32/6397_2.png) [@ahmadmushtaq](https://forum.mautic.org/u/ahmadmushtaq)\
**Post date:** [December 4, 2021, 11:15pm UTC](https://forum.mautic.org/t/emails-are-being-stuck-in-mautic-spool-folder/15329/8 "2021-12-04T23:15:24Z")

</div>

is this applicable only if the local server is used for sending emails or even in case of external SMTP?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 5, 2021, 7:38am UTC](https://forum.mautic.org/t/emails-are-being-stuck-in-mautic-spool-folder/15329/9 "2021-12-05T07:38:27Z")

</div>

What do you mean by local server? Like on your virtual mashiene in your dev environment?

---

<div class="post-metadata">

**Author:** ![ahmadmushtaq](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ahmadmushtaq/32/6397_2.png) [@ahmadmushtaq](https://forum.mautic.org/u/ahmadmushtaq)\
**Post date:** [December 22, 2021, 10:58pm UTC](https://forum.mautic.org/t/emails-are-being-stuck-in-mautic-spool-folder/15329/10 "2021-12-22T22:58:46Z")

</div>

hello. i meant virtual machine or dedicated.
