新聞中心

        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

        評論


        技術專區

        關閉
        主站蜘蛛池模板: 承德县| 安龙县| 建阳市| 贵州省| 蚌埠市| 法库县| 汤阴县| 乐都县| 商都县| 西宁市| 彰化市| 唐山市| 郓城县| 大邑县| 凌云县| 淮滨县| 山东省| 徐汇区| 贡山| 鹤壁市| 民勤县| 聂荣县| 伊宁市| 子长县| 兴山县| 奉新县| 固阳县| 江华| 潜江市| 青浦区| 江口县| 开封县| 旅游| 孝昌县| 塘沽区| 唐河县| 昌江| 嵊泗县| 秭归县| 师宗县| 秀山|