伺服器搭建手冊之FREEBSDUNIX郵件伺服器建設(八)

4、編輯/usr/local/etc/authlib/authdaemonrc
# mv /usr/local/etc/authlib/authdaemonrc /usr/local/etc/authlib/authdaemonrc_bak

# vi  /usr/local/etc/authlib/authdaemonrc

加入以下內容:

authmodulelist=”authmysql”

 

authmodulelistorig=”authmysql”

 

version=”authdaemond.mysql”

 

daemons=5

 

authdaemonvar=/var/run/authdaemond

 

subsystem=mail

 

DEBUG_LOGIN=0

 

DEFAULTOPTIONS=”wbnodsn=1″

 

保存退出vi

重啟伺服器.

三、導入Iigenus 的iGENUS.sql語句,

導入iGENUS建表語句.

A、到這裡下載iGENUS

http://www.igenus.org/webmail/download/index.php
建議下載iGENUS for Postfix 2.01

下載完用cute-ftp等ftp軟體上傳到網站伺服器,建議上傳到/usr/local/www/apache22/data/

解壓igenus for postfix

#cd /usr/local/www/apache22/data/

#tar zxvf igenus_2.0_20040703_release.tgz

# cd igenus/docs

# mysql –u root –p postfix < iGENUS.sql

 

四、手動設置第一個用戶並測試 .

本章節介紹如何開通用戶,並且如何測試系統是否正常。

1、查看postfix資料庫的表格結構。

# mysql -u root -p

Enter password:    #這裡輸入的密碼為之前建好的mysql的root密碼。

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 1799 to server version: 5.0.22

 

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

 

mysql>

mysql> use postfix;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

 

Database changed

mysql> show tables;

+——————-+

| Tables_in_postfix |

+——————-+

| address           |

| admin             |

| card              |

| domaininfo        |

| lastauth          |

| logs              |

| message           |

| personal          |

| scheduler         |

| stow              |

| userinfo          |

| vpopmail          |

+——————-+

12 rows in set (0.00 sec)

 

mysql>

以下文章點擊率最高

Loading…

     

如果這文章對你有幫助,請掃左上角微信支付-支付寶,給於打賞,以助博客運營