Emails are being stuck in mautic spool folder

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.

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

Hey @owen.liew,

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

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.

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

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

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’. “” {“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’.\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’.\r\n””}

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

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

hello. i meant virtual machine or dedicated.