postfixadmin is a web-based management tool for postfix mail sending servers, which can directly manage postfix virtual domain names and mail users, provided that these data are stored in mysql or PostgreSQL databases.
The management of postfix mail users and virtual domain names is carried out through postfixadmin. has been created earlier. wmail
1. Postfixadmin installation;
wget http://nchc.dl.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-2.93/postfixadmin-2.93.tar.gz Unzip to httpd configuration directory tar -xf postfixadmin- 2.93 .tar.gz -C / var / www / html / mv postfixadmin - 2.93 postfixadmin chown -R apache:apache /var/www/html/postfixadmin chmod -R 755 / var / www / html / postfixadmin
2. Modify the config.inc.php file;
# vi postfixadmin/config.inc.php $CONF['configured'] = true; $CONF['default_language'] = 'cn'; $CONF['database_type'] = 'mysql'; $CONF['database_host'] = 'localhost'; $CONF['database_user'] = 'postfix'; $CONF['database_password'] = 'postfix'; $CONF['database_name'] = 'postfix'; $CONF['encrypt'] = 'dovecot:CRAM-MD5'; $CONF['dovecotpw'] = "/usr/bin/doveadm pw"; $CONF['domain_path'] = 'YES'; $CONF['domain_in_mailbox'] = 'NO'; $CONF['aliases'] = '1000'; $CONF['mailboxes'] = '1000'; $CONF[ ' maxquota ' ] = ' 1000 ' ; $CONF['fetchmail'] = 'NO'; $CONF['quota'] = 'YES'; $CONF['used_quotas'] = 'YES'; $CONF['new_quota_table'] = 'YES';
3. Start the test
Postfixadmin relies on lamp environment to
start apache for UI interface installation
# service httpd start
UI interface access http://ip:port/postfixadmin/setup.php
Changing the password requires a certain password strength to take effect;
after installation, delete or prohibit access to the setup file.