Skip to content

Latest commit

 

History

History
executable file
·
32 lines (20 loc) · 1.13 KB

README.md

File metadata and controls

executable file
·
32 lines (20 loc) · 1.13 KB

About

Postfixadmin User Registration is a simple php script that allows users to create their own email accounts in postfixadmin.

Configuration and Installation

Configuration is done in three simple steps:

  1. 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";

  2. Place register.php in /usr/share/postfixadmin/public/users/. Make sure it is owned by root.

  3. Add a register link to the login page by placing this code in /usr/share/postfixadmin/templates/login.tpl:

<tr>
	<td class="label">&nbsp;</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.

Contact

Feel free to email me with any questions or comments!