# Amazon SES configuration send email immediately

**URL:** <https://forum.mautic.org/t/amazon-ses-configuration-send-email-immediately/19857>\
**Category:** Product Support\
**Tags:** community, development\
**Created:** [June 15, 2021, 1:39pm UTC](https://forum.mautic.org/t/amazon-ses-configuration-send-email-immediately/19857 "2021-06-15T13:39:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidepell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/davidepell/32/627_2.png) [@davidepell](https://forum.mautic.org/u/davidepell)\
**Post date:** [June 15, 2021, 1:39pm UTC](https://forum.mautic.org/t/amazon-ses-configuration-send-email-immediately/19857/1 "2021-06-15T13:39:50Z")

</div>

I connected to Amazon SES - API for sending emails from Mautic. However, I noticed a lot of slowness in sending emails from both campaigns and masses. I have the ability to send 150 emails / second with Amazon SES, but I can’t fully exploit this power.

My Amazon SES is also used for sending emails with other mechanisms besides Mautic.

Seeing the settings on the forum and on the web I noticed that many put “send immediately” instead of queue as send settings even if reading from the Mautic documentation it is recommended to use the queue (which I currently do).

I’m afraid that this is what slows down the sending, can you confirm me?

I also have other questions for you:

1. Could sending immediate email from Mautic to Amazon SES cause problems sending emails from other systems? I am afraid of exceeding the limit that I have available with Amazon SES and thus ruining my reputation
2. Could sending direct emails slow down the system? Reading from the documentation on the site it seems to be recommended to use the queue, but seeing later tutorials on how to connect to Amazon SES they all use “send immediately”

---

<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:** [June 15, 2021, 3:16pm UTC](https://forum.mautic.org/t/amazon-ses-configuration-send-email-immediately/19857/2 "2021-06-15T15:16:48Z")

</div>

Hello David,

The 150/s is a limitation set by Amazon SES, but you need a pretty strong server to achieve it.

> [@davidepell](#):
>
> I’m afraid that this is what slows down the sending, can you confirm me?

Queue processing will speed up the overall sending, because queue formation happens before.  
So you will send in 2 steps (if you queue processing is set up right.)

> 1. Could sending immediate email from Mautic to Amazon SES cause problems sending emails from other systems? I am afraid of exceeding the limit that I have available with Amazon SES and thus ruining my reputation

Yes, that can happen. Don’t send too fast.

> 1. Could sending direct emails slow down the system? Reading from the documentation on the site it seems to be recommended to use the queue, but seeing later tutorials on how to connect to Amazon SES they all use “send immediately”

Don’t listen to those tutorials. Queuing is great. People Don’t understand how it works, and they are afraid to use it. This is why they recommend not to use it. This forum has multiple solutions about queue processing.

Read this conversation we had about a year ago:

> [@Matching SES send rate](https://forum.mautic.org/t/matching-ses-send-rate/6783/5):
>
> Hi @ezzat ! There are different ways how to handle SES with Mautic, I will share you my practice, which I use for all our customers at [Friendly Automate](https://friendly.is/automate) and which works like a Swiss clockwork. There are other good solutions as well, I’m sure someone will post their in this thread. (Always use the proper path, since I’m not paying attention to it in this guide) Too fast sending If you send too fast, your campaign will fall into a cliff. That means you start sending, depending on the speed firs…

---

<div class="post-metadata">

**Author:** ![davidepell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/davidepell/32/627_2.png) [@davidepell](https://forum.mautic.org/u/davidepell)\
**Post date:** [June 16, 2021, 7:18am UTC](https://forum.mautic.org/t/amazon-ses-configuration-send-email-immediately/19857/3 "2021-06-16T07:18:45Z")

</div>

Thanks for the reply. I’m sure it will be the solution to my problems. I will let you know here if the operation was successful!

---

<div class="post-metadata">

**Author:** ![ericc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ericc/32/2958_2.png) [@ericc](https://forum.mautic.org/u/ericc)\
**Post date:** [October 27, 2022, 2:58pm UTC](https://forum.mautic.org/t/amazon-ses-configuration-send-email-immediately/19857/4 "2022-10-27T14:58:03Z")

</div>

We’re in a similar situation. Server is plenty powerful enough but we can’t get past 6-8 emails/second in queue sending. We haven’t tried send immediately as of yet.

We did have this node setup as AWS SMTP initially (same rates), and just converted to the API with new keys, etc. Sends seem to be working, just not at any speed. Our AWS limit is 100 emails/sec.

Cron jobs are set to high limits to support 80+ emails/sec, just doesn’t send at that amount. Any other locations to control the per-second capability of the node other than the batch size in cron?

Anything to try here? Thanks!

---

<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:** [October 28, 2022, 12:19pm UTC](https://forum.mautic.org/t/amazon-ses-configuration-send-email-immediately/19857/5 "2022-10-28T12:19:56Z")

</div>

I wonder if your server is strong enough to send faster with Mautic. Maybe you need to do a multi-thread method. Have more threads sending. I don’t have a tutorial for it at this point to explain how we are doing it. Mautic 5 will be sending faster with different technology, I’ll be happy to make one then

---

<div class="post-metadata">

**Author:** ![ericc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ericc/32/2958_2.png) [@ericc](https://forum.mautic.org/u/ericc)\
**Post date:** [October 31, 2022, 4:40pm UTC](https://forum.mautic.org/t/amazon-ses-configuration-send-email-immediately/19857/6 "2022-10-31T16:40:22Z")

</div>

Hey @joeyk, thanks for responding.

It’s an 8 core, 32GB machine. I don’t see a lot of disk or CPU use during the send. It’s _exactly_ the same send rate as before, so I’m curious if I set this via config or something else in the past.

I was thinking about standing up a local postfix instance to see if that sped things up from an SMTP perspective instead.

Do SES API sends have to be “Send Immediate”? or the Queue method also works?

---

<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:** [November 2, 2022, 12:13pm UTC](https://forum.mautic.org/t/amazon-ses-configuration-send-email-immediately/19857/7 "2022-11-02T12:13:33Z")

</div>

Queueing helps you to pregenerate the emails, so your send command will only need to do the sending.  
Email sending will change in Mautic soon, but you should look into multi thread sending.

---

<div class="post-metadata">

**Author:** ![ericc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ericc/32/2958_2.png) [@ericc](https://forum.mautic.org/u/ericc)\
**Post date:** [November 14, 2022, 9:30pm UTC](https://forum.mautic.org/t/amazon-ses-configuration-send-email-immediately/19857/8 "2022-11-14T21:30:25Z")

</div>

Instead I just stood up a postfix SMTP server on the same machine that uses AWS SES as an upstream. Now sending at 60+/second via SMTP.

I suggest anyone to bypass mautic sending emails. Just let it build emails to queue to a real mail server.
