Install Postfix Admin
What is Postfix Admin?
Postfix Admin is a web based interface used to manage mailboxes, virtual domains and aliases. It also features support for vacation/out-of-the-office messages.
Install Postfixadmin
$cd /usr/ports/mail/postfixadmin
$make config
Note:
Please make sure you ticked a MYSQL before you make install
$make install clean
It will automatically install any dependency such as MYSQL etc.. please leave it untouched until finished.
Edit postfix admin config file
$cp -R /usr/local/www/postfixadmin /var/www/html/postfixadmin
$cd /var/www/html/postfixadmin
Find file config.inc.php.dist or config.inc.php-dist rename it to config.inc.php
$mv config.inc.php.dist config.inc.php
$pico config.inc.php
## edit few lines below to :
$CONF['configured'] = true;
$CONF['postfix_admin_url'] = 'http://10.10.10.10/postfixadmin'; ## change it to your ip address/website
$CONF['database_type'] = 'mysql';
$CONF['database_host'] = 'localhost';
$CONF['database_user'] = 'postfix';
$CONF['database_password'] = 'yourpostfixpassword';
$CONF['database_name'] = 'postfix';
$CONF['database_prefix'] = '';[/code]
You can access postfixadmin from browser.
Example : http://10.10.10.10/postfixadmin/setup.php
After you have access the url above. you will generate a admin password for postfix.
Example your admin password is : testing123
you will receive a line like below, this is a HASH password for testing123:
$CONF['setup_password'] = 'e457ce0976f66096b69267f5103b62e0:712a40a9bd487e5fde6e1c6014f25'
Next, you need to edit config.inc.php again
$pico config.inc.php
### fine $CONF['setup_password'] ###
Change it like below :
$CONF['setup_password'] = 'e457ce0976f66096b69267f5103b62e0:712a40a9bd487e5fde6e1c6014f25'
### save this file ###