Install Postfix - Admin
Install Postfix - Admin
1. Install the Postfix Admin requirements using the command below. #yum install mysql-server php-mysql php-imap
2. Download the latest stable version of Postfix Admin in .tar.gz #wget postfixadmin-2.2.1.1.tar.gz #tar -xvzf postfixadmin-2.2.1.1.tar.gz #mv postfixadmin-2.2.1.1 postfixadmin
3. Edit the file /usr/share/postfixadmin/config.inc.php and update the following lines below. #vi /usr/share/postfixadmin/config.inc.php $CONF['configured'] = true; $CONF['postfix_admin_url'] = '/postfixadmin'; $CONF['database_type'] = 'mysqli'; $CONF['database_host'] = 'localhost'; $CONF['database_user'] = 'postfix'; $CONF['database_password'] = 'your_password'; $CONF['database_name'] = 'postfix'; $CONF['domain_path'] = 'YES'; $CONF['domain_in_mailbox'] = 'NO'; $CONF['encrypt'] = 'cleartext'; $CONF['emailcheck_resolve_domain] = 'NO';
Creating the Postfix Admin Database #mysql -u root -p mysql> CREATE DATABASE postfix; mysql> CREATE USER postfix@localhost IDENTIFIED BY 'your_password'; mysql> GRANT ALL PRIVILEGES ON postfix.* TO postfix;
Configuring the Postfix Admin Web Application 1. Create the file /etc/httpd/conf.d/postfixadmin.conf containing the line below. Alias /postfixadmin /usr/share/postfixadmin 2. Start or restart the httpd service. Learn how to start and stop services here. 3. Go to the Postfix Admin setup page at http://localhost/postfixadmin/setup.php and fill in the setup password. Next, click the Generate password hash. 4. Get the generated setup password hash and put it into the file /usr/share/postfixadmin/config.inc.php. Next, fill in the Setup password, Admin and Password and Password (again). Finally, click Add Admin to create a new admin account. 5. Go to the Postfix Admin login page at http://localhost/postfixadmin/ and login using your newly created admin account.
www.arondmessaging.ro www.facebook.com/aiolinux