PostfixadminIt is a common management tool for mail sending servers. If you want to use it, you should understand how it is installed. See the following.
1.download postfixadmin.tar.gz first.
Decompress/var/www/html:
Tar-zxvf postfixadmin-2.1.0.tgz
Then change the name to postfixadmin ----------> because/var/www/html/postfixadmin will be used as a folder to store web pages, try to save as much as possible.
2. Modify the script:
Sample file of config. inc. php. sample extracted from/var/www/html/postfixadmin.
After cp config. inc. php. sample config. inc. php is used, vi config. inc. php is used to modify the file...
Change 'en' to 'zh '----> If the default value is en, you can change it.
Changed from NO to YES.
Changed from YES to NO ---> the above two must be changed ..
3. Import the MYSQL database:
/Var/www/html/postfixadmin] # mysql-u root-p <DATABASE_MYSQL.TXT --> This file exists in this directory after being decompressed.
If the prompt is: ERROR 1062 (23000) at line 28: Duplicate entry 'localhost-postfix' for key 1
It is generally because files have been imported before, and MYSQL needs to be cleared. If there is no need for data, it is better to use yum remove mysql to uninstall MYSQL and reinstall MYSQL to make it faster. if data exists, delete the POSTFIX user name in MYSQL.
4. start HTTPD: service httpd start, and enter http: // ip/postfixadmin in the address bar to access the postfix homepage.
Figure 1
Click setup in the middle to perform the test:
Warning: Magic Quotes: OFF (using internal function !)
You need to modify magic_quotes_gpc = off in the/etc/php. ini file -- change it to On ---> pay attention to that On, and the front O is capitalized !!
If:
You need to install php. We recommend that you use yum install php *.
After the installation is complete, use service httpd restart, restart MYSQL, and then the program can be used normally.
Delete setup. php.
Then go to http: // 192.168.1.125/postfixadmin/admin
After reading this article, I learned how to install postfixadmin. Continue!