From LedHed's Wiki
Contents
Downloading
http://downloads.sourceforge.net/postfixadmin/postfixadmin-2.1.0.tgz
Extract the Source
tar -xvzf postfixadmin-2.1.0.tgz -C /tmp
Read the Documentation
PostfixAdmin can be a bit tricky to install. Read the INSTALL.TXT, it can answer many of your questions
Begin Installation
Start by moving the postfixadmin to its prefered destination.
mv /tmp/postfixadmin-2.1.0/ /var/www/postfixadmin
Changing Permissions
To make postfixadmin more secure we need to change the permissions.
This will create an empty file
touch /tmp/chmod-postfixadmin.sh
Now edit the new file with your favorite editor and paste the following lines into it.
#!/bin/bash cd /var/www/postfixadmin chmod 640 *.php *.css cd /var/www/postfixadmin/admin/ chmod 640 *.php .ht* cd /var/www/postfixadmin/images/ chmod 640 *.gif *.png cd /var/www/postfixadmin/languages/ chmod 640 *.lang cd /var/www/postfixadmin/templates/ chmod 640 *.tpl cd /var/www/postfixadmin/users/ chmod 640 *.php
Now run the script
/tmp/chmod-postfixadmin.sh
NOTE: You can do this by hand if you also.
Edit the Config Files
cp config.inc.php.sample config.inc.php
Now edit config.inc.php to your liking. Make sure to change these lines as a minimum.
$CONF['database_type'] = 'mysql'; $CONF['database_host'] = 'localhost'; $CONF['database_user'] = 'postfixadmin'; $CONF['database_password'] = 'postfixadmin'; $CONF['database_name'] = 'postfix'; $CONF['database_prefix'] = ;
Apache Setup
More to come.