# bounce won't work - error 500 on callback url

**URL:** <https://forum.mautic.org/t/bounce-wont-work-error-500-on-callback-url/9654>\
**Category:** Product Support\
**Created:** [October 7, 2017, 2:46pm UTC](https://forum.mautic.org/t/bounce-wont-work-error-500-on-callback-url/9654 "2017-10-07T14:46:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fususu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fususu/32/215_2.png) [@fususu](https://forum.mautic.org/u/fususu)\
**Post date:** [October 7, 2017, 2:46pm UTC](https://forum.mautic.org/t/bounce-wont-work-error-500-on-callback-url/9654/1 "2017-10-07T14:46:08Z")

</div>

Hi, I’m trying to setup bounce management for Elasticemail followed by [the instruction here](https://mautic.org/docs/en/emails/bounce_management.html). But I got this error when submit notification url (the link like: [http://your-mautic-url.tld/mailer/elasticemail/callback](http://your-mautic-url.tld/mailer/elasticemail/callback))

Code:

HTTP Web Notifications URL couldn't be validated. The remote server returned an error: (500) Internal Server Error.

  
Here is the recent logs.

Code:

[2017-10-07 05:40:04] mautic.NOTICE: Swift\_TransportException: Connection could not be established with host smtp.elasticemail.com [Connection timed out #110] (uncaught exception) at /home/mydomain/public\_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php line 269 while running console command `mautic:emails:send` [] [] [2017-10-07 05:46:42] mautic.NOTICE: Swift\_TransportException: Connection to tcp://smtp.elasticemail.com:587 Timed Out (uncaught exception) at /home/mydomain/public\_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php line 404 while running console command `mautic:emails:send` [] [] [2017-10-07 06:44:04] mautic.NOTICE: Swift\_TransportException: Connection could not be established with host smtp.elasticemail.com [Connection timed out #110] (uncaught exception) at /home/mydomain/public\_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php line 269 while running console command `mautic:emails:send` [] [] [2017-10-07 22:21:25] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public\_html/vendor/symfony/dependency-injection/Container.php:305)"} [] [2017-10-07 15:24:41] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public\_html/vendor/symfony/dependency-injection/Container.php:305)"} [] [2017-10-07 15:26:42] mautic.NOTICE: Swift\_TransportException: Connection could not be established with host smtp.elasticemail.com [php\_network\_getaddresses: getaddrinfo failed: Name or service not known #0] (uncaught exception) at /home/mydomain/public\_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php line 269 while running console command `mautic:emails:send` [] [] [2017-10-07 15:27:44] mautic.NOTICE: Swift\_TransportException: Connection could not be established with host smtp.elasticemail.com [php\_network\_getaddresses: getaddrinfo failed: Name or service not known #0] (uncaught exception) at /home/mydomain/public\_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php line 269 while running console command `mautic:emails:send` [] [] [2017-10-07 22:27:46] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public\_html/vendor/symfony/dependency-injection/Container.php:305)"} [] [2017-10-07 22:37:56] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public\_html/vendor/symfony/dependency-injection/Container.php:305)"} [] [2017-10-07 22:39:39] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public\_html/vendor/symfony/dependency-injection/Container.php:305)"} [] [2017-10-07 22:40:02] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public\_html/vendor/symfony/dependency-injection/Container.php:305)"} [] [2017-10-07 22:40:07] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public\_html/vendor/symfony/dependency-injection/Container.php:305)"} []

---

<div class="post-metadata">

**Author:** ![fususu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fususu/32/215_2.png) [@fususu](https://forum.mautic.org/u/fususu)\
**Post date:** [October 7, 2017, 2:46pm UTC](https://forum.mautic.org/t/bounce-wont-work-error-500-on-callback-url/9654/2 "2017-10-07T14:46:08Z")

</div>

Hi, I’m trying to setup bounce management for Elasticemail followed by [the instruction here](https://mautic.org/docs/en/emails/bounce_management.html). But I got this error when submit notification url (the link like: [http://your-mautic-url.tld/mailer/elasticemail/callback](http://your-mautic-url.tld/mailer/elasticemail/callback))

```auto
HTTP Web Notifications URL couldn't be validated. The remote server returned an error: (500) Internal Server Error.
```

Here is the recent logs.

`[2017-10-07 05:40:04] mautic.NOTICE: Swift_TransportException: Connection could not be established with host smtp.elasticemail.com [Connection timed out #110] (uncaught exception) at /home/mydomain/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php line 269 while running console command `mautic:emails:send` [] []
[2017-10-07 05:46:42] mautic.NOTICE: Swift_TransportException: Connection to tcp://smtp.elasticemail.com:587 Timed Out (uncaught exception) at /home/mydomain/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php line 404 while running console command `mautic:emails:send` [] []
[2017-10-07 06:44:04] mautic.NOTICE: Swift_TransportException: Connection could not be established with host smtp.elasticemail.com [Connection timed out #110] (uncaught exception) at /home/mydomain/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php line 269 while running console command `mautic:emails:send` [] []
[2017-10-07 22:21:25] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public_html/vendor/symfony/dependency-injection/Container.php:305)"} []
[2017-10-07 15:24:41] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public_html/vendor/symfony/dependency-injection/Container.php:305)"} []
[2017-10-07 15:26:42] mautic.NOTICE: Swift_TransportException: Connection could not be established with host smtp.elasticemail.com [php_network_getaddresses: getaddrinfo failed: Name or service not known #0] (uncaught exception) at /home/mydomain/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php line 269 while running console command `mautic:emails:send` [] []
[2017-10-07 15:27:44] mautic.NOTICE: Swift_TransportException: Connection could not be established with host smtp.elasticemail.com [php_network_getaddresses: getaddrinfo failed: Name or service not known #0] (uncaught exception) at /home/mydomain/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php line 269 while running console command `mautic:emails:send` [] []
[2017-10-07 22:27:46] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public_html/vendor/symfony/dependency-injection/Container.php:305)"} []
[2017-10-07 22:37:56] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public_html/vendor/symfony/dependency-injection/Container.php:305)"} []
[2017-10-07 22:39:39] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public_html/vendor/symfony/dependency-injection/Container.php:305)"} []
[2017-10-07 22:40:02] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public_html/vendor/symfony/dependency-injection/Container.php:305)"} []
[2017-10-07 22:40:07] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: "You have requested a non-existent service "swiftmailer.mailer.transport.smtp"." at /home/mydomain/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/mydomain/public_html/vendor/symfony/dependency-injection/Container.php:305)"} []
`

---

<div class="post-metadata">

**Author:** ![fususu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fususu/32/215_2.png) [@fususu](https://forum.mautic.org/u/fususu)\
**Post date:** [October 7, 2017, 3:20pm UTC](https://forum.mautic.org/t/bounce-wont-work-error-500-on-callback-url/9654/3 "2017-10-07T15:20:38Z")

</div>

Oh I’ve figured it out.

In the email SMTP configuration I change from “Other” to “Elasticemail.”  
Then remove the slash at the end of my mautic url.
