Postfixadmin User Registration is a simple php script that allows users to create their own email accounts in postfixadmin.
Configuration is done in three simple steps:
-
Edit the top of register.php so that
$domain = "{ENTER DOMAIN HERE}";
includes your domain that you receive email at. For example:$domain = "example.com";
-
Place register.php in /usr/share/postfixadmin/public/users/. Make sure it is owned by root.
-
Add a register link to the login page by placing this code in /usr/share/postfixadmin/templates/login.tpl:
<tr>
<td class="label"> </td>
<td><a href="https://your.postfixadmin.domain.com/users/register.php">Register for an Account</a></td>
</tr>
IMPORTANT: You must use the absolute path to register.php or else the link will not work on both admin and user login pages.
A sample login.tpl file is included in this repository.
Feel free to email me with any questions or comments!