Optical will installPostfixAdminIt is not enough. To build a software, you must learn to configure it so that you can be comfortable with it!
The PostfixAdmin configuration file is:/var/www/postfixadmin-2.2.1.1/config. inc. php. However, you can place all the data to be modified in the config. local. in the php file, you do not need to modify any files during the upgrade of PostfixAdmin, but now the upgrade is smooth.
Create/var/www/postfixadmin-2.2.1.1/config. local. php and add the following values:
File:/var/www/postfixadmin-2.2.1.1/config. inc. php
Note: The above line must be added, which is the mark of the PHP script.
Change to 'true', indicating that the file has been configured. Otherwise, you cannot log on to PostfixAdmin.
$ CONF ['configured'] = true;
Default interface language
$ CONF ['default _ language'] = 'cn ';
Configure PostfixAdmin to connect to the MySQL database
Note:
Database_user must have the permission to modify the 'vmail' database.
Here, we enter 'vmailadmin' instead of 'vmail' ('vmail' users only have the query permission ).
$ CONF ['database _ type'] = 'mysql ';
$ CONF ['database _ host'] = '2017. 0.0.1 ';
$ CONF ['database _ user'] = 'vmailadmin ';
$ CONF ['database _ password'] = 'your _ password_here ';
This is the name of the database that stores virtual domains and virtual users.
$ CONF ['database _ name'] = 'vmail ';
The Administrator of the virtual domain should contact the PostfixAdmin administrator when he or she has a problem:
$ CONF ['admin _ email '] = 'postmaster @ openbsdonly.org'
Whether the domain name is included in the user's Maildir/path.
Because our virtual users are classified and stored by domain name, select 'yes' here '.
Maildir path example (the location of the user www@openbsdonly.org Maildir on the system ):
#/Home/vmail/openbsdonly.org/www/
$ CONF ['domain _ path'] = 'yes ';
Whether to use the email address as the directory name in the Maildir/path, for example:
#/Home/vmail/openbsdonly.org/www@openbsdonly.org/
The planned path is/home/vmail/openbsdonly.org/www,
Therefore, set this parameter to 'no '.
$ CONF ['domain _ in_mailbox'] = 'no ';