Hi,
This is a great project! It was easy to set up and does 99% of what I need it do. Thanks a lot!
I have mailcow set up with an LDAP backend. On the Mailcow user login page, there is a link labelled “> Forgot Password?” which of course does not work for LDAP users. This link is confusing (some of) my users.
Questions:
- Is the “>” symbol in the “> Forgot Password?” link on purpose or a typo?
- Is it possible to hide this link?
I already set the “SOGoPasswordRecoveryEnabled = no” in /opt/mailcow-dockerized/data/conf/sogo/sogo.conf
but this does not remove that link. Probably because the link on the user login page is not generated by the SOGo package?
- Can I redirect this link? I do have another website set up where users can change their LDAP password. If I could redirect them there, that would also work.
Only thing I can think of otherwise is to put a reverse proxy in front of mailcow and then catch and redirect the /reset-password
URL. Or is it possible to do this in the nginx reverse proxy that is already part of the stack?
Thanks for your thoughts.
Best regards,
Victor
Ah, I think I may have something.
In /opt/mailcow-dockerized/data/conf/nginx/site.reset_redirect.custom
I added this:
location = /reset-password {
return 302 https://mydomain.tld/ldap-password-reset;
}
and then ran docker compose restart nginx-mailcow
.
That seems to have worked.
Still curious for the answer to question 1 (and 2) by the way.
Ah, I think I may have something.
In /opt/mailcow-dockerized/data/conf/nginx/site.reset_redirect.custom
I added this:
location = /reset-password {
return 302 https://mydomain.tld/ldap-password-reset;
}
and then ran docker compose restart nginx-mailcow
.
That seems to have worked.
Still curious for the answer to question 1 (and 2) by the way.
Ah, I think I may have something.
In /opt/mailcow-dockerized/data/conf/nginx/site.reset_redirect.custom
I added this:
location = /reset-password {
return 302 https://mydomain.tld/ldap-password-reset;
}
and then ran docker compose restart nginx-mailcow
.
That seems to have worked.
Still curious for the answer to question 1 (and 2) by the way.
Ah, I think I may have something.
In /opt/mailcow-dockerized/data/conf/nginx/site.reset_redirect.custom
I added this:
location = /reset-password {
return 302 https://mydomain.tld/ldap-password-reset;
}
and then ran docker compose restart nginx-mailcow
.
That seems to have worked.
Ah, I think I may have something along the lines of 3). Still curious for the answer to question 1 (and 2) by the way.
In /opt/mailcow-dockerized/data/conf/nginx/site.reset_redirect.custom
I added this:
location = /reset-password {
return 302 https://mydomain.tld/ldap-password-reset;
}
and then ran docker compose restart nginx-mailcow
.
That seems to have worked.
I don’t seem to be able to post my own answer here.
Oh that was weird.