centos postfix 郵箱安裝記錄

來源:互聯網
上載者:User

標籤:

---恢複內容開始---

#wget http://nchc.dl.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-2.92/postfixadmin-2.92.tar.gz//下載postfixadmin管理程式,放到web目錄下
 1 [[email protected] html]# cd postfixadmin/  2 #修改前先備份一下設定檔  3 [[email protected] postfixadmin]# cp config.inc.php config.inc.php.bak  4 [[email protected] postfixadmin]# cp setup.php setup.php.bak  5 [[email protected] postfixadmin]# vim config.inc.php  6 #找到下面幾行並修改  7 $CONF[‘configured‘] = true;  8 $CONF[‘database_type‘] = ‘mysql‘;  9 $CONF[‘database_host‘] = ‘localhost‘; 10 $CONF[‘database_user‘] = ‘postfix‘; 11 $CONF[‘database_password‘] = ‘postfix‘; 12 $CONF[‘database_name‘] = ‘postfix‘; 13 $CONF[‘admin_email‘] = ‘[email protected]‘; 14 $CONF[‘encrypt‘] = ‘dovecot:CRAM-MD5‘; 15 $CONF[‘dovecotpw‘] = "/usr/bin/doveadm pw";   //先尋找dovecot是否安裝 ,再到相應目錄查看檔案是否存在16 $CONF[‘domain_path‘] = ‘YES‘; 17 $CONF[‘domain_in_mailbox‘] = ‘NO‘; 18 $CONF[‘aliases‘] = ‘1000‘; 19 $CONF[‘mailboxes‘] = ‘1000‘; 20 $CONF[‘maxquota‘] = ‘1000‘; 21 $CONF[‘fetchmail‘] = ‘NO‘; 22 $CONF[‘quota‘] = ‘YES‘; 23 $CONF[‘used_quotas‘] = ‘YES‘; 24 $CONF[‘new_quota_table‘] = ‘YES‘;

 

為postfixadmin建立Mysql資料庫與許可權

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

測試一下能不能登入,

 1 [[email protected] html]# mysql -upostfix -ppostfix  2 Welcome to the MySQL monitor.  Commands end with ; or \g.  3 Your MySQL connection id is 3  4 Server version: 5.1.69 Source distribution  5 Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.  6 Oracle is a registered trademark of Oracle Corporation and/or its  7 affiliates. Other names may be trademarks of their respective  8 owners.  9 Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement. 10 mysql> show databases; 11 +--------------------+ 12 | Database           | 13 +--------------------+ 14 | information_schema | 15 | postfix            | 16 | test               | 17 +--------------------+ 18 3 rows in set (0.00 sec) 19 mysql> 20 測試成功可能登入!

 

修改所有者與所有組(如果沒有vmail帳號,先建立)

1 [[email protected] html]# chown -R vmail.vmail postfixadmin/ 2 [[email protected] html]# ll 3 總用量 8 4 -rw-r--r--  1 root  root    18 7月  10 22:18 index.php 5 drwxrwxr-x 14 vmail vmail 4096 7月  10 22:57 postfixadmin 6 [[email protected] html]#

 

具體配置過程如

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

 

保證postfixadmin/templates_c 為可寫 ,

安裝php5-imap

在原始安裝檔案下編譯imap.so

1 #cd /etc/imap2 #phpize3 #./configure --with-php-config=/server/php/bin/php-config --with-kerberos --with-imap-ssl4 #make && make install5 #vi /server/php/etc/php.ini6 //插入 7 #extension=imap.so

 

 

 

 

 

---恢複內容結束---

centos postfix 郵箱安裝記錄

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.