Postfix Admin is a web based interface which allows users to configure and manage a Postfix based email server. With Postfix Admin you can create and manage multiple virtual domains, users and aliases and many more.
I have installed CWP7.admin on CentOS 7 and It's working fine with Postfix but i want to use PostfixAdmin with CentOS WebPanel .
Login to your user panel : https://host.datahead.biz:2083/ and create a sub-domain like postfixadmin.datahead.biz . Go to Domains >> Sub Domains >> Add a New SubDomain
Now Restart Apache & DNS server from your admin panel. If you get any error or unable browse your subdomian then fix the permission (Go to User Accounts >> Fix Permission) . Install AutoSSL for that subdomain. Now Login to your server using SSH
Type in “Setup Password” and generate password hash. Copy this line back to /home/datahead/public_html/postfixadmin/config.inc.php, at line 30:
Once we create user email account, the user may login to manage their own account at https://postfixadmin.datahead.biz/users/login.php. Note the different address.
Admin Login
https://domain.tld/login.php
User Login:
https://domain.tld/users/login.php
Lost Password
https://domain.tld/setup.php?lostpw=1
Debug:
https://domain.tld/setup.php?debug=1
Create the schema for the Postfix Admin database:
https://domain.tld/upgrade.php
I have installed CWP7.admin on CentOS 7 and It's working fine with Postfix but i want to use PostfixAdmin with CentOS WebPanel .
Login to your user panel : https://host.datahead.biz:2083/ and create a sub-domain like postfixadmin.datahead.biz . Go to Domains >> Sub Domains >> Add a New SubDomain
Now Restart Apache & DNS server from your admin panel. If you get any error or unable browse your subdomian then fix the permission (Go to User Accounts >> Fix Permission) . Install AutoSSL for that subdomain. Now Login to your server using SSH
# cd /usr/local/src/
# VERSION=3.1
# wget -q https://downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-${VERSION}/postfixadmin-${VERSION}.tar.gz
# tar xzf postfixadmin-${VERSION}.tar.gz
# mv postfixadmin-${VERSION}/ /home/datahead/public_html/postfixadmin
# mkdir /home/datahead/public_html/postfixadmin/templates_c
# chown -R datahead:datahead /home/datahead/public_html/postfixadmin
Now edit the configuration file# cd /home/datahead/public_html/postfixadmin
# vi config.inc.php
$CONF['configured'] = true;
$CONF['database_type'] = 'mysqli';
$CONF['database_host'] = 'localhost';
$CONF['database_user'] = 'postfix';
$CONF['database_password'] = 'mysql-postfix-password';
$CONF['database_name'] = 'postfix';
$CONF['default_aliases'] = array (
'abuse' => 'abuse@datahead.biz',
'hostmaster' => 'hostmaster@datahead.biz',
'postmaster' => 'postmaster@datahead.biz',
'webmaster' => 'webmaster@datahead.biz'
);
How to find postfix user db-password?# cat /etc/postfix/mysql-virtual_domains_maps.cf
# cat /etc/postfix/mysql-virtual_alias_maps.cf
Postfix Admin web setup
Now go to https://postfixadmin.datahead.biz/setup.php to continue the setup in the web interface.Type in “Setup Password” and generate password hash. Copy this line back to /home/datahead/public_html/postfixadmin/config.inc.php, at line 30:
$CONF['setup_password'] = '82020bc067e2a6deaa3fba3632529114:0834f649bf09ee930910ab1b353e3f0722b77ee8';
Then create the superadmin account. Now use the superadmin account to login at https://postfixadmin.datahead.biz/login.php. This is the admin login.Once we create user email account, the user may login to manage their own account at https://postfixadmin.datahead.biz/users/login.php. Note the different address.
Admin Login
https://domain.tld/login.php
User Login:
https://domain.tld/users/login.php
Lost Password
https://domain.tld/setup.php?lostpw=1
Debug:
https://domain.tld/setup.php?debug=1
Create the schema for the Postfix Admin database:
https://domain.tld/upgrade.php
Comments
Post a Comment
You are always welcome to comment here, but your remarks should be relevant to the conversation. To keep the exchanges focused and engaging, we reserve the right to remove off-topic comments, or self-promoting URLs and vacuous messages.
We will try to reply to your queries as soon as time allows.
Regards,
Admin