歡迎您光臨本站 註冊首頁

linux下配置sendmail郵件伺服器問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

linux下配置sendmail郵件伺服器問題

在帶有smtp驗證的連接測試過程:
# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 flame.yx.com ESMTP Sendmail 8.13.1/8.13.1; Mon, 3 Sep 2007 10:32:29 +0800
helo localhost
250 flame.yx.com Hello localhost.localdomain , pleased to meet you
auth login
504 5.3.3 AUTH mechanism login not available
auth login
504 5.3.3 AUTH mechanism login not available
dxNlcjE=
500 5.5.1 Command unrecognized: "dxNlcjE="
mtiz
500 5.5.1 Command unrecognized: "mtiz"
quit
221 2.0.0 flame.yx.com closing connection
Connection closed by foreign host.
使用telnet工具從pop3伺服器上接收電子郵件:
# telnet 127.0.0.1 110
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
都不成功,好像是sendmail沒配好吧?如何正確配置.
《解決方案》

一、同一域內收、發郵件
1.本機帳戶之間收發信
首先,在/etc/mail/sendmail.mc文件中加入OPTIONS(`port=smtp,ADDR=192.168.1.1,NAME=MTA`)dnl
//使此郵件伺服器不僅可以轉發本機用戶發送的郵件,還可以轉發其他主機上用戶發送的郵件
然後使用命令
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
生成配置文件,並啟動SMTP服務和POP3服務
再配置DNS伺服器,使郵件伺服器的域名能夠被解析到,並在DNS的資料庫文件中加入MX語句,指定郵件伺服器
最後在圖形下配置mail客戶端軟體
2.本地主機與其他主機帳戶之間收發信
只需要將DNS指向mail伺服器
再設置一下mail客戶端軟體即可
《解決方案》

回復 #2 cymaaa1 的帖子

可以告訴我具體命令和更改的語句嗎?
本機上:
主機名:flame.yx.com
主DNS:202.98.192.68

IP:10.0.0.122
子網掩碼:255.0.0.0
網關:10.0.0.138
DNS:202.98.192.168
備:202.98.192.68
《解決方案》

我在進行DNS測試時

出現以下問題:
# nslookup
> flame.yx.com
Server:         202.98.192.68
Address:        202.98.192.68#53

Non-authoritative answer:
Name:   flame.yx.com
Address: 66.226.75.118
> set type=soa
> flame.yx.com
Server:         202.98.192.68
Address:        202.98.192.68#53

Non-authoritative answer:
*** Can't find flame.yx.com: No answer

Authoritative answers can be found from:
> set debug
> nslookup
Server:         202.98.192.68
Address:        202.98.192.68#53

------------
    QUESTIONS:
        nslookup, type = SOA, class = IN
    ANSWERS:
    AUTHORITY RECORDS:
    ->  .
        origin = a.root-servers.net
        mail addr = nstld.verisign-grs.com
        serial = 2007090301
        refresh = 1800
        retry = 900
        expire = 604800
        minimum = 86400
    ADDITIONAL RECORDS:
------------
** server can't find nslookup: NXDOMAIN
>

[火星人 ] linux下配置sendmail郵件伺服器問題已經有1058次圍觀

http://coctec.com/docs/service/show-post-36042.html