<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支持,確認已安裝openssl,如果不是安裝在默認目錄,再加上--with-openssl-root參數指定openssl所安裝的目錄)
    make
    make install

    這時會出現:
    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驗證的tpop3d,
    修改/usr/local/etc/tpop3d.conf文件(如果沒有,執行: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中的數據庫schema,則要將auth-mysql-pass-query配置參數修改成符合你本地數據庫schema的查詢條件。詳細情況參見:
    http://www.ex-parrot.com/~chris/tpop3d/tpop3d.conf.5.html?的A note on MySQLauthentication部分

    posted on 2006-12-07 11:30 想飛的魚 閱讀(717) 評論(0)  編輯  收藏 所屬分類: linux
    主站蜘蛛池模板: 日本xxwwxxww在线视频免费| 亚洲免费日韩无码系列 | 亚洲一区二区三区免费观看 | 亚洲国产日韩在线成人蜜芽 | 99ee6热久久免费精品6| 亚洲成AV人片在WWW| 亚洲人成免费电影| 亚洲日本一区二区| 亚洲Av无码国产情品久久| 黄页免费的网站勿入免费直接进入| 1区1区3区4区产品亚洲| 亚洲一区二区三区在线播放 | 国产免费av片在线无码免费看| 最新亚洲人成无码网站| 激情亚洲一区国产精品| 久久久久亚洲AV片无码| 亚洲小说区图片区另类春色| 免费人妻无码不卡中文字幕18禁| 成人午夜免费视频| 国产精品高清视亚洲精品| 亚洲精品视频在线观看免费| 亚洲日本va在线视频观看| 久久精品国产亚洲5555| 亚洲免费在线观看| 又色又污又黄无遮挡的免费视 | 免费看的黄色大片| 麻豆一区二区免费播放网站| 222www免费视频| 97在线视频免费播放| 国产精品免费久久久久影院| 成a人片亚洲日本久久| 亚洲精品无码国产片| 久久精品国产亚洲αv忘忧草| 国产男女猛烈无遮挡免费视频网站 | 久久精品国产亚洲av成人| 亚洲熟妇无码八AV在线播放| 国产精品亚洲产品一区二区三区| 成人在线免费看片| 国色精品卡一卡2卡3卡4卡免费| 一级人做人爰a全过程免费视频 | 香蕉免费一区二区三区|