新聞中心

        Mutt中文FAQ

        作者: 時間:2016-09-12 來源:網絡 收藏

        % make makefiles CCARGS=-DUSE_SASL_AUTH -I/usr/local/include AUXLIBS=-L/usr/local/lib -lsasl

        然后安裝

        % make; make install

        為了 postfix 能夠正確發送本地郵件,請在 /etc/postfix/main.cf 加上:

        myhostname = tu140066.tsinghua.edu.cn mydestination = wangyin.com, $myhostname, localhost.$mydomain

        $myhostname 指明了你的主機域名,清華大學的網絡給了每個人一個域名,其實就是 tuxxxxxx.tsinghua.edu.cn, xxxxxx 就是你的 IP 后面的數字,比如我的IP是166.111.140.66, 所以我的域名是 tu140066.tsinghua.edu.cn.

        $mydestination 指出哪些地址是認為是你自己的地址。你應該把你的機器名(我的是 wangyin.com),$myhostname, $localhost.$mydomain 加進去。

        為了能夠使用 SASL 驗證登錄,把這些行加到 /etc/postfix/main.cf

        smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = relayhost = mails.tsinghua.edu.cn

        編輯口令文件 /etc/postfix/sasl_passwd。加入一行:

        Your.Relay.Server your_auth_login_name:Your_PassWord

        比如我的口令文件是這樣的:

        mails.tsinghua.edu.cn wang-y01:aDF2m@3d$q=+

        當然密碼不是那個 :P

        把口令文件轉成 Berkeley DB 格式:

        #postmap hash:sasl_passwd

        啟動你的 postfix 服務器

        postfix start


        上一頁 1 2 3 下一頁

        關鍵詞: Mutt FAQ

        評論


        技術專區

        關閉
        主站蜘蛛池模板: 上林县| 通城县| 临武县| 安宁市| 海伦市| 宜宾县| 北碚区| 商河县| 永平县| 松溪县| 军事| 敦煌市| 通州区| 通化县| 平阴县| 永丰县| 乐安县| 锦州市| 克什克腾旗| 灵石县| 永济市| 恩施市| 拜泉县| 平利县| 武城县| 中西区| 正蓝旗| 松潘县| 屯留县| 莱西市| 伊吾县| 平阳县| 九寨沟县| 姜堰市| 信阳市| 邵阳县| 叙永县| 商南县| 榆林市| 天峻县| 嘉荫县|