<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    wiflish
    Loving Life! Loving Coding!
    posts - 98,comments - 98,trackbacks - 0

    wget http://www.ex-parrot.com/~chris/tpop3d/tpop3d-1.5.3.tar.gz

    tar zxvf tpop3d-1.5.3.tar.gz

    cd tpop3d-1.5.3

    ./configure --enable-mbox-maildir --enable-mbox-bsd --enable-tls --disable-auth-pam \
    --enable-auth-mysql --with-mysql-include-dir=/usr/local/mysql/include \
    --with-mysql-lib-dir=/usr/local/mysql/lib
    (注:--enable-tls打開ssl支持,確認(rèn)已安裝openssl,如果不是安裝在默認(rèn)目錄,再加上--with-openssl-root參數(shù)指定openssl所安裝的目錄)
    make
    make install

    這時會出現(xiàn):
    configure: error: vmail-sql authentication enabled, but mysql_init doesn't seem to be available.
    錯誤信息。

    vi? configure,找到
    eval "ac_cv_lib_$ac_lib_var=\"mysqlclient \"" ,更改為:
    eval "ac_cv_lib_$ac_lib_var=\"mysqlclient -lz \""

    然后:
    ./configure --enable-mbox-maildir --enable-mbox-bsd --enable-tls --disable-auth-pam \
    --enable-auth-mysql --with-mysql-include-dir=/usr/local/mysql/include \
    --with-mysql-lib-dir=/usr/local/mysql/lib

    make
    make install
    這樣就安裝完成帶Mysql驗(yàn)證的tpop3d,
    修改/usr/local/etc/tpop3d.conf文件(如果沒有,執(zhí)行:cp tpop3d.conf.sample /usr/local/etc/tpop3d.conf):

    #
    # MySQL authentication options
    #
    # auth-mysql-enable: (yes | true)
    # Enable MySQL authentication.
    auth-mysql-enable: true

    # auth-mysql-mail-group: (group-name | gid)
    # The group name or gid under which access to the mailspool will take place.
    # [default: group of user associated with virtual domain]
    auth-mysql-mail-group: vmail

    # auth-mysql-hostname: hostname [[hostname] hostname] ..
    # Host on which to connect to MySQL. Tried in order until a working host is
    # found. [default: localhost]
    auth-mysql-hostname: localhost

    # auth-mysql-database: database
    # MySQL database to use for authentication.
    auth-mysql-database: yourdatabase

    # auth-mysql-username: username
    # MySQL username used to access the database.
    auth-mysql-username:? yourusername

    # auth-mysql-password: password
    # Password of MySQL user.
    auth-mysql-password: yourpassword

    # auth-mysql-pass-query: substitution string
    # Query template to use for USER/PASS authentication. Must return mailpath,
    # password, userid, mailspool type; uses substitution variables as described
    # in the man page.
    #auth-mysql-pass-query: SELECT mailpath, password, userid, spooltype FROM ...
    auth-mysql-pass-query:? SELECT CONCAT('/var/mail/', maildir), \
    ??????????????????? CONCAT('{crypt}', password),????? \
    ??????????????????? 'vmail', 'bsd'??????????????? \
    ?????????????? FROM mailbox????????????????????????? \
    ????????????? WHERE username = CONCAT('$(local_part)', '@', '$(domain)')
    由于沒有使用vmail-sql中的數(shù)據(jù)庫schema,則要將auth-mysql-pass-query配置參數(shù)修改成符合你本地?cái)?shù)據(jù)庫schema的查詢條件。詳細(xì)情況參見:
    http://www.ex-parrot.com/~chris/tpop3d/tpop3d.conf.5.html?的A note on MySQLauthentication部分

    posted on 2006-12-07 11:30 想飛的魚 閱讀(697) 評論(0)  編輯  收藏 所屬分類: linux
    主站蜘蛛池模板: 亚洲大成色www永久网站| 国产午夜成人免费看片无遮挡| 亚洲AV无码AV男人的天堂| 国产免费AV片无码永久免费| 亚洲免费在线视频播放| 两个人看的www高清免费视频 | fc2成年免费共享视频网站| 在线aⅴ亚洲中文字幕| 亚洲国产精品人久久| 亚洲中文无韩国r级电影| 免费国产综合视频在线看| 精品国产麻豆免费网站| 久草在视频免费福利| 亚洲免费观看网站| 97青青草原国产免费观看| 久久国产免费观看精品| 国产精品hd免费观看| 一级做a爰黑人又硬又粗免费看51社区国产精品视 | 国产AV无码专区亚洲AV手机麻豆| 日韩免费观看视频| 成人毛片手机版免费看| 在线视频观看免费视频18| 91在线品视觉盛宴免费| 成视频年人黄网站免费视频| 欧洲一级毛片免费| 四虎在线视频免费观看视频| 最近免费中文字幕mv电影| 亚洲国产人成中文幕一级二级| 最近更新免费中文字幕大全| 一边摸一边桶一边脱免费视频| 91在线亚洲精品专区| 亚洲丝袜美腿视频| 亚洲黄色在线网站| 91亚洲性爱在线视频| 亚洲国色天香视频| 亚洲伊人久久大香线蕉结合| 激情五月亚洲色图| 亚洲AV无码国产一区二区三区 | 永久免费AV无码网站在线观看| 大陆一级毛片免费视频观看| 日韩高清在线免费观看|