Redirect - Change Email Password

DRKT

Verified User
Joined
Oct 8, 2003
Messages
198
Hi!

i want redirect the Web page :2222/CMD_CHANGE_EMAIL_PASSWORD after change password for /webmail.

But this redirects to :2222/webmail. How can I change that?

i change redirect: "/" for "/webmail"

thanks!
 
Last edited:
You probably can't, since DA is a statically compiled C++ program.

Talk to the folk at DA Support; they may be able to help you.

Jeff
 
Hello,

Actually, you can get it to work:

edit /usr/local/directadmin/data/templates/email_pass_change/index.html.

Find this bit:
Code:
<input type=hidden name=redirect value="/">
and change it to read:
Code:
<input type=hidden name=redirect value="http://www.domain.com/webmail/">
Remember to change domain.com to one of your actual domains. Then test it out. Note that a DA update will write over the index.html, so make a copy to index2.html.

John
 
Hi!

if I want each user redirected towards their domain.com, with /webmail it is is not possible? Php or...

Thanks!
 
I think you can use the tokens for that.

Something like this might work, and there's no harm in trying.

Code:
<input type=hidden name=redirect value="|DOMAIN|/webmail/">
 
Good idea, but it's not tokenized. It just a flat out file send.

If you want to start getting fancy, then you can just create your own password change form in your own webpages.. or even built right into webmail, then in your form you can specify whatever you want dynamically for the "redirect" value. Just post it to the same place as is in the current form (:2222/CMD_CHANGE_EMAIL_PASSWORD)
http://www.directadmin.com/features.php?id=229

John
 
Sorry my last reply wasn't well investigated.

If you redirect to your machine name any webmail user on the server will be able to use the resulting login.

In fact we set up a secure cert for our system names, and then our welcome email tells our clients to log in to (for example):

https://da1.example.com/webmail/

so they'll get a secure login for their password.

Jeff
 
Back
Top