# Change SMTP Email Configuration Mautic 3.1.1 (Error 500)

**URL:** <https://forum.mautic.org/t/change-smtp-email-configuration-mautic-3-1-1-error-500/16711>\
**Category:** Product Support\
**Created:** [October 23, 2020, 2:01pm UTC](https://forum.mautic.org/t/change-smtp-email-configuration-mautic-3-1-1-error-500/16711 "2020-10-23T14:01:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravinbhutani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ravinbhutani/32/412_2.png) [@ravinbhutani](https://forum.mautic.org/u/ravinbhutani)\
**Post date:** [October 23, 2020, 2:01pm UTC](https://forum.mautic.org/t/change-smtp-email-configuration-mautic-3-1-1-error-500/16711/1 "2020-10-23T14:01:53Z")

</div>

I am trying to change SMTP In Configuration section. After a long _ **Please wait** _, screen goes dead with 500 Error. Though it will show connection: success, but when I press save or apply, it will give error.

I am able to make other changes in configuration section. But that too takes a long time to execute.

I think, there is some setting, in server which limits time for a command. If that command is not executed with in that time, say 30 seconds. It will kill this command and this 500 error will appear. Now I think, as execution of this command is taking too much time, so it returns 500 error.

_First I can be wrong on this. Second, I am not an IT person, so do not know how to correct this thing._

**I found following error in /mautic/error\_log file** _(these error do not display in setting\>\>system info\>\>log)_

> [23-Oct-2020 02:18:28 Asia/Kolkata] PHP Warning: stream\_socket\_enable\_crypto(): Peer certificate CN=`smtp.elasticemail.com' did not match expected CN=`[smtp25.elasticemail.com](http://smtp25.elasticemail.com)’ in
> 
> /home4/joylocxl/connect.joyloan.in/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 94
> 
> [23-Oct-2020 11:07:35 Asia/Kolkata] PHP Warning: stream\_socket\_enable\_crypto(): Peer certificate CN=`*.bigrock.com' did not match expected CN=`119.18.54.125’ in /home4/joylocxl/connect.joyloan.in/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 94
> 
> [23-Oct-2020 11:22:22 Asia/Kolkata] PHP Warning: stream\_socket\_enable\_crypto(): Peer certificate CN=`*.bigrock.com' did not match expected CN=`119.18.54.125’ in /home4/joylocxl/connect.joyloan.in/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 94

I have tried other solutions that are associated with Unable to save configuration

1. Clear cache by var/cache delete
2. Disabled wordfence
3. Adding htaccess file at root folder with: SecFilterEngine Off SecFilterScanPOST Off

Please help me in this?

---

<div class="post-metadata">

**Author:** ![ravinbhutani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ravinbhutani/32/412_2.png) [@ravinbhutani](https://forum.mautic.org/u/ravinbhutani)\
**Post date:** [October 29, 2020, 2:08pm UTC](https://forum.mautic.org/t/change-smtp-email-configuration-mautic-3-1-1-error-500/16711/2 "2020-10-29T14:08:41Z")

</div>

Some one please help me.

I want to change SMTP server settings. But can’t get past this error

---

<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:** [October 29, 2020, 3:46pm UTC](https://forum.mautic.org/t/change-smtp-email-configuration-mautic-3-1-1-error-500/16711/3 "2020-10-29T15:46:42Z")

</div>

If you are using an amazon product for mail I believe you select it as the mailer in settings, not enter credentials in “other smtp”

---

<div class="post-metadata">

**Author:** ![devsrealm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/devsrealm/32/3669_2.png) [@devsrealm](https://forum.mautic.org/u/devsrealm)\
**Post date:** [October 29, 2020, 5:21pm UTC](https://forum.mautic.org/t/change-smtp-email-configuration-mautic-3-1-1-error-500/16711/4 "2020-10-29T17:21:59Z")

</div>

Have you tried what @EJL suggested. If you don’t mind, could you try recording a video sneak peek of the error you are getting
