# SMTP incorrect password SOLUTION

**URL:** <https://forum.mautic.org/t/smtp-incorrect-password-solution/34049>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [November 6, 2024, 10:38am UTC](https://forum.mautic.org/t/smtp-incorrect-password-solution/34049 "2024-11-06T10:38:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cajmorgan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cajmorgan/32/12897_2.png) [@cajmorgan](https://forum.mautic.org/u/cajmorgan)\
**Post date:** [November 6, 2024, 10:38am UTC](https://forum.mautic.org/t/smtp-incorrect-password-solution/34049/1 "2024-11-06T10:38:42Z")

</div>

So with mautic 5, we get **‘mailer\_dsn’** =\> **'smtp:** instead of the traditional settings. If you try to configure this in the UI and your password has a special character, like f.e _blankspace_, it won’t simply work as it will replace it by some incorrect character.

The solution is to edit the password manually in local.php file, located in app/config/ or /config with the correct url-encoded characters. Also you need double %% instead of single %.

Hope you save some time

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [November 6, 2024, 9:53pm UTC](https://forum.mautic.org/t/smtp-incorrect-password-solution/34049/2 "2024-11-06T21:53:23Z")

</div>

Thanks for the workaround and your report on github. I commented on it, as it seems to be a duplicate of this issue:

> <https://github.com/mautic/mautic/issues/13228>
>
> \### Mautic Version
> 
> 5.0.x series
> 
> \### PHP version
> 
> 8.1
> 
> \### What browsers are yo…u seeing the problem on?
> 
> Not relevant
> 
> \### What happened?
> 
> I believe there is a problem in setting up the queue for email using Amazon SQS. If I get a secret\_key that includes any special character i.e. / o + then at the moment the secret is retrieved a % is appended to this character (in the config/local.php), even after parsing it gets the wrong secret to the SQS and obviously it doesnt verify. 
> Workaround: try to get secret\_key without special characters. 
> 
> \### How can we reproduce this issue?
> 
> Configure sqs scheme in the queue, use any special character in the secret
> 
> Scheme: sqs
> Host: default
> Port: empty
> Path: empty
> User: empty
> Password: empty
> Options:
> access\_key: (amazon access key)
> account: (amazon account)
> auto\_setup: false
> queue\_name: (name of the queue)
> secret\_key: (amazon secret key)
> region: us-east-1
> 
> \### Relevant log output
> 
> \_No response\_
> 
> \### Code of Conduct
> 
> \- \[X\] I confirm that I have read and agree to follow this project's Code of Conduct
> 
> \<br /\>\<hr\>
> Care about this issue? Want to get it resolved sooner? If you are a \<a href='https://www.mautic.org/become-a-member-of-mautic'\>member of Mautic\</a\>, you can add some funds to the \<a href='https://opencollective.com/mautic/projects/bounties'\>Bounties Project\</a\> so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs \<a href='https://contribute.mautic.org/product-team/mautic-bounty-programme'\>here.\</a\>
