# Forgot Password does not work

**URL:** <https://forum.metasfresh.org/t/forgot-password-does-not-work/2010>\
**Category:** Errors\
**Created:** [March 24, 2021, 5:08pm UTC](https://forum.metasfresh.org/t/forgot-password-does-not-work/2010 "2021-03-24T17:08:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TKlerx](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/tklerx/32/819_2.png) [@TKlerx](https://forum.metasfresh.org/u/TKlerx)\
**Post date:** [March 24, 2021, 5:08pm UTC](https://forum.metasfresh.org/t/forgot-password-does-not-work/2010/1 "2021-03-24T17:08:41Z")

</div>

Hi there,

I tried using the “Forgot password” function, but it always throws this error:

Mail System not configured. Please define some AD\_MailConfig or set AD\_Client.SMTPHost; AD\_MailConfig search parameters: AD\_Client\_ID=ClientEMailConfig(clientId=ClientId(repoId=1000000), sendEmailsFromServer=false, smtpHost=, smtpPort=25, startTLS=false, email=null, smtpAuthorization=false, username=, passwordResetMailTemplateId=Optional[MailTemplateId(repoId=50000)]

I am on 5.162.2-267+release on docker using ubuntu 18.04.  
SMTP settings are entered for system user (via java client) and all other users via web ui (but they do not reflect these settings) and sending test mails from the web ui does work.

Can you hint me where to enter the default mailserver for the “Forgot Password” function?

Thanks,  
Timo

---

<div class="post-metadata">

**Author:** ![metasnw](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/metasnw/32/23_2.png) [@metasnw](https://forum.metasfresh.org/u/metasnw)\
**Post date:** [March 24, 2021, 6:02pm UTC](https://forum.metasfresh.org/t/forgot-password-does-not-work/2010/2 "2021-03-24T18:02:02Z")

</div>

hi timo,

the problem is a missing mail server config.

Try setting one up as described here: [How do I set up a mailbox for outbound documents?](https://docs.metasfresh.org/webui_collection/EN/Outbound_documents_setup_email_server.html)

Then create a routing as described here:  
[https://docs.metasfresh.org/webui\_collection/EN/Setup\_email\_server\_routing](https://docs.metasfresh.org/webui_collection/EN/Setup_email_server_routing)

BUT: instead of configuring the routing for a document or Process you select “Custom Type”:

 ![image](https://forum.metasfresh.org/uploads/default/original/1X/d1903be1e64f75f108ab9ed394b4064f464bda9e.png)

Might be that you need a server cache reset to make it effective.

Let me know if that worked for you!

Norbert

---

<div class="post-metadata">

**Author:** ![TKlerx](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/tklerx/32/819_2.png) [@TKlerx](https://forum.metasfresh.org/u/TKlerx)\
**Post date:** [March 24, 2021, 7:41pm UTC](https://forum.metasfresh.org/t/forgot-password-does-not-work/2010/3 "2021-03-24T19:41:45Z")

</div>

Wow, thanks for the quick reply. It worked.  
A follow up question:  
The resulting reset link comes with localhost and the wrong port, even though metasfresh runs (and should know) its public DNS entry.  
[http://localhost:3000/resetPassword?token=XY](http://localhost:3000/resetPassword?token=XY)

Do I have to tell metasfresh somewhere else on which domain/port it is running?

Thanks alot,  
Timo

---

<div class="post-metadata">

**Author:** ![metasnw](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/metasnw/32/23_2.png) [@metasnw](https://forum.metasfresh.org/u/metasnw)\
**Post date:** [April 23, 2021, 2:16pm UTC](https://forum.metasfresh.org/t/forgot-password-does-not-work/2010/4 "2021-04-23T14:16:55Z")

</div>

hi,

yes, there is a sysconfig where you can configure that DNS entry with the name webui.frontend.url.  
You can access it either using Role Systemadministrator in window System Konfig  
or via sql:

```auto
select value from ad_sysconfig where name='webui.frontend.url'

```

You would fill up value with something like [https://myserver.tld](https://myserver.tld)  
Then you do a restart or server cache reset.

Hope that helps.

---

<div class="post-metadata">

**Author:** ![LukeSkywalker](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/lukeskywalker/32/836_2.png) [@LukeSkywalker](https://forum.metasfresh.org/u/LukeSkywalker)\
**Post date:** [June 1, 2021, 1:55pm UTC](https://forum.metasfresh.org/t/forgot-password-does-not-work/2010/5 "2021-06-01T13:55:37Z")

</div>

UPDATE: Figured out I had to put ‘\*’ for organisation and not the default one being filled in by the system.  
hi Norbert (@metasnw),  
unfortunately, the described approach does not work on my setup. I am running metasfresh with docker-compose v2 behind traefik 2.4 with the latest git reapository.

I still get the same error as Timo described above.

Logging in with the metasfresh user, I see two outbound mailboxes. A standard one @localhost.org and one created by me. It seems the system sticks to using the [localhost.org](http://localhost.org) mailbox instead of the one I created. I cannot edit or delete that one though. Do you know, if there is a way to change that?

Would be grateful for any hints or help.

Cheers  
Luke

---

<div class="post-metadata">

**Author:** ![metasnw](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/metasnw/32/23_2.png) [@metasnw](https://forum.metasfresh.org/u/metasnw)\
**Post date:** [June 1, 2021, 9:06pm UTC](https://forum.metasfresh.org/t/forgot-password-does-not-work/2010/6 "2021-06-01T21:06:06Z")

</div>

Hey Luke,

have you tried this [steps](https://forum.metasfresh.org/t/forgot-password-does-not-work/2010/2) to make sure metasfresh knows you want to use the other mailbox including the server cache reset or restart?

cheers  
Norbert

---

<div class="post-metadata">

**Author:** ![LukeSkywalker](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/lukeskywalker/32/836_2.png) [@LukeSkywalker](https://forum.metasfresh.org/u/LukeSkywalker)\
**Post date:** [June 2, 2021, 10:20am UTC](https://forum.metasfresh.org/t/forgot-password-does-not-work/2010/7 "2021-06-02T10:20:23Z")

</div>

Hey Norbert,  
sry, my Update was obviously not prominent enough, my bad. I got it working with the above hints and some brain grease xD

I still wonder, why I am not able to edit or delete the default @localhost.org mailbox though. Do you have any hints on that as well?

Greetings from Berlin  
Luke
