CentOS postfix Mailbox Installation record

Source: Internet
Author: User
Tags imap dovecot vmail

---restore content starts---

#wget http://nchc.dl.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-2.92/ postfixadmin-2.92.tar.gz// download Postfixadmin Manager and put it in the Web directory
1[Email protected] html]# CD postfixadmin/2 #修改前先备份一下配置文件3[Email protected] postfixadmin]#CPconfig.inc.php Config.inc.php.bak4[Email protected] postfixadmin]#CPsetup.php Setup.php.bak5 [email protected] postfixadmin]# vim config.inc.php6 #找到下面几行并修改7$CONF ['configured'] =true; 8$CONF ['Database_type'] ='MySQL'; 9$CONF ['Database_host'] ='localhost'; Ten$CONF ['Database_user'] ='postfix';  One$CONF ['Database_password'] ='postfix';  A$CONF ['database_name'] ='postfix';  -$CONF ['Admin_email'] ='[email protected]';  -$CONF ['Encrypt'] ='DOVECOT:CRAM-MD5';  the$CONF ['DOVECOTPW'] ="/usr/bin/doveadm PW"; Find out if Dovecot is installed, and see if the file exists in the appropriate directory -$CONF ['Domain_path'] ='YES';  -$CONF ['Domain_in_mailbox'] ='NO';  -$CONF ['aliases'] =' +';  +$CONF ['Mailboxes'] =' +';  -$CONF ['Maxquota'] =' +';  +$CONF ['Fetchmail'] ='NO';  A$CONF ['Quota'] ='YES';  at$CONF ['Used_quotas'] ='YES';  -$CONF ['new_quota_table'] ='YES';

Create MySQL database and permissions for Postfixadmin

1 [[email protected] ~]# mysql-u root-p2 mysql>3 mysql> grant all on postfix.* to [email protected]'localhost'postfix'   4 mysql> flush privileges;

Test if you can log in,

1[Email protected] html]# Mysql-upostfix-Ppostfix2 Welcome to the MySQL Monitor. Commands End With; or \g.3Your MySQL ConnectionIDIs3 4Server version:5.1. theSource Distribution5Copyright (c) -, -, Oracle and/or its affiliates. All rights reserved. 6Oracle is a registered trademark of Oracle Corporation and/or its7 affiliates. Other names trademarks of their respective8 owners.9Type'Help ;'Or'\h'  forHelp. Type'\c'ToClearThe current input statement.TenMysql>show databases; One+--------------------+ A| Database | -+--------------------+ -| Information_schema | the| Postfix | -| Test | -+--------------------+ - 3RowsinchSet (0.00sec) +Mysql> -Test success may be logged in!

Modify owner and all groups (if not Vmail account, create first)

1[Email protected] html]#Chown-R Vmail.vmail postfixadmin/2 [email protected] html]# ll3Total dosage8 4-rw-r--r--1Root root -JulyTen  A: -index.php5Drwxrwxr-x -Vmail Vmail4096JulyTen  A: $Postfixadmin6[Email protected] html]#

The specific configuration process such as

(1). http://192.168.18.187/postfixadmin/setup.php

Guaranteed Postfixadmin/templates_c to be writable,

Installing Php5-imap

Compiling imap.so under the original installation file

1 #cd/etc/IMAP2#phpize3 #./configure--with-php-config=/server/php/ Bin/php-config--with-kerberos--with-imap-SSL4 #make doinstall 5 #VI /server/php/etc/php.ini6 //7 #extension = Imap.so

---restore content ends---

CentOS postfix mailbox Installation record

Related Article

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.