PostfixAdmin configuration process (1)

Source: Internet
Author: User
Tags vmail

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 ';


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.