# Amazon SNS Subscription Confirmation Throws error in Mautic : Requested a non-existent service

**URL:** <https://forum.mautic.org/t/amazon-sns-subscription-confirmation-throws-error-in-mautic-requested-a-non-existent-service/6942>\
**Category:** Product Support\
**Created:** [December 22, 2016, 10:52am UTC](https://forum.mautic.org/t/amazon-sns-subscription-confirmation-throws-error-in-mautic-requested-a-non-existent-service/6942 "2016-12-22T10:52:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![OA\_Andrew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/oa_andrew/32/497_2.png) [@OA\_Andrew](https://forum.mautic.org/u/OA_Andrew)\
**Post date:** [December 22, 2016, 10:52am UTC](https://forum.mautic.org/t/amazon-sns-subscription-confirmation-throws-error-in-mautic-requested-a-non-existent-service/6942/1 "2016-12-22T10:52:35Z")

</div>

Hi Guys  
  
  
  
I’ve been trying to configure my email bounces with Amazon, following the Amazon WebHook instructions [here](https://mautic.org/docs/en/emails/bounce_management.html)  
  
  
  
My problem is that I am unable to confirm the subscription. The status stays on PendingConfirmation  
  
 ![amazon_webhook_6.png](https://mautic.org/docs/en/emails/media/amazon_webhook_6.png)  
  
  
  
The error log in Mautic shows the following:

Quote:

mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /mautic\_site/public\_html/vendor/symfony/dependency-injection/Container.php line 305 {"exception":"[object] (Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException(code: 0): You have requested a non-existent service "swiftmailer.mailer.transport.smtp". at /home/websites/content/mautic\_site/public\_html/vendor/symfony/dependency-injection/Container.php:305)"} []

  
Any help would be much appreciated.  
  
regards,  
Andrew  
  
Mautic version 2.4.0  
(we've had this error for the last 3 versions)

---

<div class="post-metadata">

**Author:** ![OA\_Andrew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/oa_andrew/32/497_2.png) [@OA\_Andrew](https://forum.mautic.org/u/OA_Andrew)\
**Post date:** [December 22, 2016, 10:52am UTC](https://forum.mautic.org/t/amazon-sns-subscription-confirmation-throws-error-in-mautic-requested-a-non-existent-service/6942/2 "2016-12-22T10:52:35Z")

</div>

Hi Guys

I’ve been trying to configure my email bounces with Amazon, following the Amazon WebHook instructions [here](https://mautic.org/docs/en/emails/bounce_management.html)

My problem is that I am unable to confirm the subscription. The status stays on PendingConfirmation

The error log in Mautic shows the following:

> [@](#):
>
> mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: “You have requested a non-existent service “swiftmailer.mailer.transport.smtp”.” at /mautic\_site/public\_html/vendor/symfony/dependency-injection/Container.php line 305 {“exception”:“[object] (Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException(code: 0): You have requested a non-existent service “swiftmailer.mailer.transport.smtp”. at /home/websites/content/mautic\_site/public\_html/vendor/symfony/dependency-injection/Container.php:305)”}

Any help would be much appreciated.

regards,  
Andrew

Mautic version 2.4.0  
(we’ve had this error for the last 3 versions)

---

<div class="post-metadata">

**Author:** ![ahfauth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ahfauth/32/133_2.png) [@ahfauth](https://forum.mautic.org/u/ahfauth)\
**Post date:** [January 2, 2017, 4:35pm UTC](https://forum.mautic.org/t/amazon-sns-subscription-confirmation-throws-error-in-mautic-requested-a-non-existent-service/6942/3 "2017-01-02T16:35:58Z")

</div>

It doesnt work for me either. I am getting the same error after configuring SNS topic. 😕

[mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: “You have requested a non-existent service “swiftmailer.mailer.transport.smtp”.”

It would be awesome if Mautic could work exactly like [Sendy.co](http://Sendy.co) using Amazon SES API instead of SMTP.

Any way to fix this?

---

<div class="post-metadata">

**Author:** ![snowball](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@snowball](https://forum.mautic.org/u/snowball)\
**Post date:** [January 6, 2017, 1:06am UTC](https://forum.mautic.org/t/amazon-sns-subscription-confirmation-throws-error-in-mautic-requested-a-non-existent-service/6942/4 "2017-01-06T01:06:56Z")

</div>

I encountered the exact same problem. I followed the steps explained within the [Documentation](https://www.mautic.org/docs/en/emails/bounce_management.html) but get a ton of these errors:

[2017-01-06 00:59:56] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: “You have requested a non-existent service “swiftmailer.mailer.transport.smtp”.” at /var/www/html/vendor/symfony/dependency-injection/Container.php line 305 {“exception”:"[object] (Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException(code: 0): You have requested a non-existent service “swiftmailer.mailer.transport.smtp”. at /var/www/html/vendor/symfony/dependency-injection/Container.php:305)"} []

And the subscription status within Amazon SNS stays on “pending”

---

<div class="post-metadata">

**Author:** ![Gabriel\_Pardini](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Gabriel\_Pardini](https://forum.mautic.org/u/Gabriel_Pardini)\
**Post date:** [March 2, 2017, 5:36pm UTC](https://forum.mautic.org/t/amazon-sns-subscription-confirmation-throws-error-in-mautic-requested-a-non-existent-service/6942/5 "2017-03-02T17:36:37Z")

</div>

Same issue here. Anyone has a fix for this?

---

<div class="post-metadata">

**Author:** ![OA\_Andrew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/oa_andrew/32/497_2.png) [@OA\_Andrew](https://forum.mautic.org/u/OA_Andrew)\
**Post date:** [March 15, 2017, 9:05am UTC](https://forum.mautic.org/t/amazon-sns-subscription-confirmation-throws-error-in-mautic-requested-a-non-existent-service/6942/6 "2017-03-15T09:05:44Z")

</div>

not on my side. I still have this issue

---

<div class="post-metadata">

**Author:** ![martinstrom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/martinstrom/32/433_2.png) [@martinstrom](https://forum.mautic.org/u/martinstrom)\
**Post date:** [April 6, 2017, 5:41pm UTC](https://forum.mautic.org/t/amazon-sns-subscription-confirmation-throws-error-in-mautic-requested-a-non-existent-service/6942/7 "2017-04-06T17:41:57Z")

</div>

Same Issue here updated my from an old version and have three other Mautic installations 2.7.1 that has the exact same error.

---

<div class="post-metadata">

**Author:** ![martinstrom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/martinstrom/32/433_2.png) [@martinstrom](https://forum.mautic.org/u/martinstrom)\
**Post date:** [April 6, 2017, 6:12pm UTC](https://forum.mautic.org/t/amazon-sns-subscription-confirmation-throws-error-in-mautic-requested-a-non-existent-service/6942/8 "2017-04-06T18:12:57Z")

</div>

Ok I got the same problem since I switched to send with postfix instead of sending directly from Mautic to Amazon SES, You can use the old way if you use postfix to send your emails thru to Amazon. Just setup an email-box called [bounce@yourdomain.com](mailto:bounce@yourdomain.com) and let Amazon SNS send all the bounced emails to that one.

Follow this article  
[https://medium.com/@AndreiVoica/how-to-integrate-mautic-with-amazon-ses-7fe066e9131c](https://medium.com/@AndreiVoica/how-to-integrate-mautic-with-amazon-ses-7fe066e9131c)

---

<div class="post-metadata">

**Author:** ![jensolsson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jensolsson/32/2136_2.png) [@jensolsson](https://forum.mautic.org/u/jensolsson)\
**Post date:** [May 21, 2020, 11:54am UTC](https://forum.mautic.org/t/amazon-sns-subscription-confirmation-throws-error-in-mautic-requested-a-non-existent-service/6942/9 "2020-05-21T11:54:48Z")

</div>

I also have this problem, anyone found the solution?

---

<div class="post-metadata">

**Author:** ![arls](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/arls/32/2802_2.png) [@arls](https://forum.mautic.org/u/arls)\
**Post date:** [June 29, 2020, 6:22pm UTC](https://forum.mautic.org/t/amazon-sns-subscription-confirmation-throws-error-in-mautic-requested-a-non-existent-service/6942/10 "2020-06-29T18:22:44Z")

</div>

Same problem here when sending via Amazon SES.
