# Issues with mail provider for tracking and mail delivery

**URL:** <https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589>\
**Category:** Product Support\
**Created:** [May 25, 2021, 10:54am UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589 "2021-05-25T10:54:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![oledr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/oledr/32/1123_2.png) [@oledr](https://forum.mautic.org/u/oledr)\
**Post date:** [May 25, 2021, 10:54am UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/1 "2021-05-25T10:54:05Z")

</div>

**Your software**  
My Mautic version is: 3.3.3  
My PHP version is: 7.4.3  
My Database type and version is: MySQL 8.0.25

**Your problem**  
My problem is:  
We have been trying to use Mautic for our newsletters and such recently, but have had some issues. Most of them comes from two points: mail delivery and tracking. Basically Mautic has been unstable for us, not always working properly. Sending mail often fails and we have to retry several times. Tracking what emails is opened, links clicked etc. seems to work for some users, but we’ve gotten reports back from users that have read and clicked on the email but without anything showing up in Mautic.

What we’re asking is what we can do to ensure Mautic is working as good as possible. Right now we’re using gmail which we’ve heard has some issues. Is there another mail provider we should use instead for Mautic? Anyone that has had a good experience with another mail provider?

And to debug these issues we’ve been having, where should we look to see logs/errors and what kind of ways can we test solutions to these issues? We’re not sure where to look. We have full SSH access to the server where Mautic is running, so we can access anything on it.

These errors are showing in the log:  
Not sure what logs to show here.

Steps I have tried to fix the problem:  
We’ve tried with different mail providers like outlook but had different issues to get it configured so that is why we’re asking here

---

<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:** [May 25, 2021, 11:13am UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/2 "2021-05-25T11:13:30Z")

</div>

Hello!

> We have been trying to use Mautic for our newsletters and such recently, but have had some issues. Most of them comes from two points: mail delivery and tracking. Basically Mautic has been unstable for us, not always working properly. Tracking what emails is opened, links clicked etc. seems to work for some users, but we’ve gotten reports back from users that have read and clicked on the email but without anything showing up in Mautic.

What amounts of emails are we talking about? If you send out 100k very fast, many people open those emails, then you can see a sudden surge in traffic. If your server can’t handle it, then you will have issues with tracking.

Tracking can be problematic for outlook contacts as well. It’s not Mautic specific, it’s outlook specific. If outlook blocks the tracking images, you simply can’t track. Again, not Mautic specific.

> Sending mail often fails and we have to retry several times.

What does fail mean? Is this campaign emails or segment emails? Are you using Queue? What SMTP do you use for sending?

> What we’re asking is what we can do to ensure Mautic is working as good as possible. Right now we’re using gmail which we’ve heard has some issues. Is there another mail provider we should use instead for Mautic? Anyone that has had a good experience with another mail provider?

What do you mean? Gmail as smtp or Gmail as software? Cause the question is like: we have been using a skateboard until now, and we have problems with fighter jets.

You can start by answering the questions above.  
I’m sure we’ll figure it out.

Thanks,  
Joey

---

<div class="post-metadata">

**Author:** ![oledr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/oledr/32/1123_2.png) [@oledr](https://forum.mautic.org/u/oledr)\
**Post date:** [May 25, 2021, 1:42pm UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/3 "2021-05-25T13:42:39Z")

</div>

Hello.

We are talking about 500-1000~ emails at once, tops.

We’ve had issues with for example sending segment or campaign emails where mautic hangs for a while and just fail to send. I’ll ask my collegue if they have any details but as far as I understood there wasn’t any particular error message either. We’re a few thats been working on this.

I’m not sure about queue or where that is setup. We tried to figure out batching or queueing but we didn’t manage to do so yet so we are just sending everything at once.

Sorry, I meant we are using gmail for smtp and imap. We are using an email from gmail for everything that requires an email.

Thanks for your reply. Hopefully we can find out how to do this 🙂

---

<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:** [May 25, 2021, 1:52pm UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/4 "2021-05-25T13:52:45Z")

</div>

To setup queue go to setting, go to email, select queue and save. Add the spool send cron

To debug set Debug = True in mautic/app/config/local.php

I use tail to monitor logs on the fly

---

<div class="post-metadata">

**Author:** ![dimitri](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dimitri/32/4437_2.png) [@dimitri](https://forum.mautic.org/u/dimitri)\
**Post date:** [May 26, 2021, 5:11pm UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/5 "2021-05-26T17:11:09Z")

</div>

I would focus on enabling the queue. There are not much email providers who like to receive 1000 emails in a couple of seconds. Gmail has not only a limit of how much emails you can send each day, but also a rate limit, if you send to fast you will get problems. I heard that they can put emails in the sent folder, without really sending the emails.

> > but we’ve gotten reports back from users that have read and clicked on the email but without anything showing up in Mautic

What kind of hosting do you use? Shared hosting? A VPS?

---

<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:** [May 26, 2021, 5:16pm UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/6 "2021-05-26T17:16:53Z")

</div>

Hey,  
Gmail will limit you to daily 500, but it might be less depending on your deliverability. It is also possible, that they would apply a cap for you hourly. I would not use gmail as smtp at all.

If you are interested in how queue and email sending works check this video: [This Is How Email Sending Works In Mautic - YouTube](https://www.youtube.com/watch?v=fJcen6XDuEc) , It will explain which crons to use and how everything works.

Joey

---

<div class="post-metadata">

**Author:** ![oledr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/oledr/32/1123_2.png) [@oledr](https://forum.mautic.org/u/oledr)\
**Post date:** [May 27, 2021, 6:25am UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/7 "2021-05-27T06:25:52Z")

</div>

Hello.

@EJL Thanks. We’ve enabled debug mode and we’re going to test email queue.

@dimitri Alright. We’re going to try to enable the queue and do some test sendings of larger volumes to see if they seem to send out properly and get tracked properly. Perhaps thats the entire issue.

Our server for Mautic is hosted at Digital Ocean.

@joeyk Thanks for the tips. We’re looking into seeing if there are better alternatives for smtp servers. Is there any type of smtp servers / mail providers that you’ve had good experience with for Mautic?

Thank you all for the assistance. Very appreciated.

---

<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:** [May 27, 2021, 6:47am UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/8 "2021-05-27T06:47:18Z")

</div>

Try Amazon SES, Sendgrid, Pepipost - very good integrations.

---

<div class="post-metadata">

**Author:** ![dimitri](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dimitri/32/4437_2.png) [@dimitri](https://forum.mautic.org/u/dimitri)\
**Post date:** [May 27, 2021, 7:13am UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/9 "2021-05-27T07:13:07Z")

</div>

Here is an article about gmail limits. [Usage limits &nbsp;|&nbsp; Gmail API &nbsp;|&nbsp; Google Developers](https://developers.google.com/gmail/api/reference/quota)

They have a 250 actions per second limit, for all actions, and a 100 actions a second for sending. The queue method for sending in Mautic allows you to send slower.

---

<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:** [May 27, 2021, 9:51am UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/10 "2021-05-27T09:51:38Z")

</div>

I was talking about the daily messages limits:

**Messages per day**  
Daily sending limit\* 2,000 (500 for trial accounts)

[https://support.google.com/a/answer/166852?hl=en](https://support.google.com/a/answer/166852?hl=en)

---

<div class="post-metadata">

**Author:** ![dimitri](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dimitri/32/4437_2.png) [@dimitri](https://forum.mautic.org/u/dimitri)\
**Post date:** [May 27, 2021, 10:22am UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/11 "2021-05-27T10:22:30Z")

</div>

Gmail has daily limits, which are different for the free [gmail.com](http://gmail.com) addresses and for gsuite. And they have limits per second, which are almost not talked about, but which are there.

Just like with Amazon, a daily limit of often 50k, but also a limit of a maximum of 14 messages per second.

---

<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:** [May 27, 2021, 4:01pm UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/12 "2021-05-27T16:01:38Z")

</div>

Hi,  
I couldn’t find any information about ‘unlimited’ sending, not 50k limits.

[https://support.google.com/a/answer/175121?hl=en](https://support.google.com/a/answer/175121?hl=en)

Max is 2500 what I can see. And as far as I know Gmail hammers it down if your deliverability is not superb. Can you please link your resource here, I’m really curious.

Thx,  
Joey

---

<div class="post-metadata">

**Author:** ![dimitri](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dimitri/32/4437_2.png) [@dimitri](https://forum.mautic.org/u/dimitri)\
**Post date:** [May 27, 2021, 4:35pm UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/13 "2021-05-27T16:35:57Z")

</div>

The 50k was about Amazon 😉 It is the most common limit, what people usually get when they apply for the permission to send emails.

---

<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:** [May 27, 2021, 7:40pm UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/14 "2021-05-27T19:40:12Z")

</div>

Yeah sure sorry. Can’t read english 🙂

---

<div class="post-metadata">

**Author:** ![oledr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/oledr/32/1123_2.png) [@oledr](https://forum.mautic.org/u/oledr)\
**Post date:** [May 28, 2021, 11:43am UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/15 "2021-05-28T11:43:54Z")

</div>

I’ve some issues setting up email queuing. The moment I enable mails are no longer being sent. I can see that they added to the “var/spool” directory, but whenver I run the command for sending messages it doesn’t work, it just says 0 messages have been processed.

E.g I click “send test email” and is told its succesful.  
I run command “php bin/console mautic:messages:send” from mautic root.  
It tells me 0 messages has been processed.  
No email seems to have been sent.

Same with campaign-sent mail. Email sending works when queue is disabled. Am I missing something?

This is the config, it should be standard values I think.

 ![queue1](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/79946a4f14f4c61fe023b1c37a6ff6c84157071e.png)

---

<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:** [May 28, 2021, 3:01pm UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/16 "2021-05-28T15:01:23Z")

</div>

Run the bin/console swiftmailer:spool:send command

---

<div class="post-metadata">

**Author:** ![oledr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/oledr/32/1123_2.png) [@oledr](https://forum.mautic.org/u/oledr)\
**Post date:** [May 31, 2021, 6:27am UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/17 "2021-05-31T06:27:47Z")

</div>

> [@EJL](#):
>
> bin/console swiftmailer:spool:send

Great. That seems to work. Thank you very much! 🙂  
Do you know why this command has to be used? The documentation I was reading doesn’t mention this at all (e.g [Cron jobs — Mautic Documentation 0.1 documentation](https://docs.mautic.org/en/setup/cron-jobs)). Is there another documentation page with details regarding this?

---

<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:** [May 31, 2021, 10:46am UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/18 "2021-05-31T10:46:58Z")

</div>

Is this different then mautic:messages:send ?

---

<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:** [June 1, 2021, 6:43pm UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/19 "2021-06-01T18:43:14Z")

</div>

**swiftmailer:spool:send** Sends emails from the spool

Here is the output for the help command for this function

Description:  
Sends emails from the spool

Usage:  
swiftmailer:spool:send [options]

Options:  
–message-limit=MESSAGE-LIMIT The maximum number of messages to send.  
–time-limit=TIME-LIMIT The time limit for sending messages (in seconds).  
–recover-timeout=RECOVER-TIMEOUT The timeout for recovering messages that have taken too long to send (in seconds).  
–mailer=MAILER The mailer name.  
–transport=TRANSPORT The service of the transport to use to send the messages.  
-h, --help Display this help message  
-q, --quiet Do not output any message  
-V, --version Display this application version  
–ansi Force ANSI output  
–no-ansi Disable ANSI output  
-n, --no-interaction Do not ask any interactive question  
-e, --env=ENV The Environment name. [default: “prod”]  
–no-debug Switches off debug mode.  
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:  
The swiftmailer:spool:send command sends all emails from the spool.

---

<div class="post-metadata">

**Author:** ![millernewbie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/millernewbie/32/5632_2.png) [@millernewbie](https://forum.mautic.org/u/millernewbie)\
**Post date:** [August 31, 2021, 8:07am UTC](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589/20 "2021-08-31T08:07:30Z")

</div>

Hi, I would like to know if swiftmailer:spool:send is different than mautic:messages:send. Thank you

[Next page](https://forum.mautic.org/t/issues-with-mail-provider-for-tracking-and-mail-delivery/19589.md?page=2)
