<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

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

    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
    主站蜘蛛池模板: 成年女人免费碰碰视频| 亚洲一区二区三区偷拍女厕| 免费乱码中文字幕网站| 亚洲成人午夜电影| 黄床大片30分钟免费看| 国产无遮挡吃胸膜奶免费看| 亚洲第一成年免费网站| 国产91久久久久久久免费| 激情婷婷成人亚洲综合| 9420免费高清在线视频| 亚洲国产专区一区| 亚洲日本VA午夜在线电影| 99久久久国产精品免费牛牛 | 亚洲av无码专区在线播放| 亚洲精品无码中文久久字幕| 好爽又高潮了毛片免费下载| 亚洲视频日韩视频| 日本在线高清免费爱做网站| 亚洲av日韩av高潮潮喷无码| 67194国产精品免费观看| 国产亚洲色婷婷久久99精品| 久久国产精品免费视频| 亚洲五月丁香综合视频| 久久综合国产乱子伦精品免费| 亚洲男女性高爱潮网站| 免费看片A级毛片免费看| jizz18免费视频| 亚洲国产综合91精品麻豆| 久久久久久久免费视频| 亚洲av永久无码一区二区三区| 久久精品国产亚洲7777| 一级毛片正片免费视频手机看 | 免费人成视频在线观看网站 | 热99RE久久精品这里都是精品免费| 国产高清免费观看| 国产午夜精品理论片免费观看 | 在线视频网址免费播放| 亚洲综合日韩中文字幕v在线| 成人网站免费观看| 国产免费播放一区二区| 亚洲人成在线精品|