User Tools

Site Tools


How to Enable Password Reset Emails With DirectAdmin

The Lost Password Email

DirectAdmin contains a feature to let users reset their passwords, but this feature is disabled by default.


When enabled, a user can click the "Lost Password?" link on the login page and DirectAdmin will mail them a link to click with a confirmation code, which is sent back to DA when the link is clicked. Then, DirectAdmin sends them a new random password to the same email address. Note that the code link expires automatically after two hours if not clicked.

KnownHost recommends changing this password immediately upon regaining access as it is sent via email and this should be considered insecure. This password should be treated only as a temporary means of access.

With this feature, one can report to the admin when they did not initiate the request via the "report" link, which upon clicking, all admins will be notified of the IP address from which the false attempt originated.

How To Enable via DirectAdmin

Log in as the 'admin' user. Navigate to "Administrator Settings" and click the "Security Settings" tab. Then, click the option "Enable Automatic Lost Password Recovery".

How To Enable via CLI

Log into SSH as the root user and run the following command:

  /usr/local/directadmin/directadmin set lost_password 1 restart

That's all that must be done to enable password resets via CLI! :)

control-panels/directadmin/how-to-enable-password-reset-emails.txt · Last modified: 2020/06/01 14:36 by Karson N.