您好,登錄后才能下訂單哦!
正向解析、反向解析都沒(méi)有問(wèn)題,postfix默認(rèn)端口為25
配置postfix的配置文件
[root@www:/var/named]# cd /etc/postfix/ [root@www:/etc/postfix]# vim main.cf myhostname = www.crwolf.com myorigin = crwolf.com mydomain = crwolf.com mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mynetworks = 192.168.1.0/24, 127.0.0.0/8
重啟postfix,然后測(cè)試
[root@www:/etc/postfix]# service postfix restart 關(guān)閉 postfix: [確定] 啟動(dòng) postfix: [確定] [root@www:/etc/postfix]# vim /etc/resolv.conf nameserver 192.168.1.9將DNS解析指向本機(jī) [root@www:/etc/postfix]# telnet mail.crwolf.com 25 Trying 192.168.1.9... telnet: connect to address 192.168.1.9: Connection refused #連接拒絕 [root@www:/etc/postfix]# telnet localhost 25 #本地為什么可以? Trying ::1... Connected to localhost. Escape character is '^]'. 220 www.crwolf.com ESMTP Postfix
檢查問(wèn)題
先查看有沒(méi)有telnet服務(wù)
[root@www:/etc/postfix]# cd [root@www:~]# rpm -qa telnet telnet-0.17-48.el6.x86_64 #這個(gè)有 [root@www:~]# rpm -qa telnet-server #這個(gè)沒(méi)有 [root@www:~]# chkconfig --list 基于 xinetd 的服務(wù): #xinetd這里也沒(méi)有telnet [root@www:~]# yum install -y telnet-server #下載telnet-server [root@www:~]# chkconfig --list 基于 xinetd 的服務(wù): telnet: 關(guān)閉
現(xiàn)在有telnet,但是服務(wù)是關(guān)閉的,將其打開(kāi)
[root@www:~]# service xinetd restart 停止 xinetd: [確定] 正在啟動(dòng) xinetd: [確定] [root@www:~]# service telnet start telnet: 未被識(shí)別的服務(wù) [root@www:~]# chkconfig telnet on [root@www:~]# chkconfig --list 基于 xinetd 的服務(wù): telnet: 啟用 [root@www:~]# telnet mail.crwolf.com 25 Trying 192.168.1.9... telnet: connect to address 192.168.1.9: Connection refused #還是拒絕
查看telnet的配置
[root@www:~]# vim /etc/xinetd.d/telnet disable = no #這里是接收的
再看以下postfix的配置文件
[root@www:~]# vim /etc/postfix/main.cf #inet_interfaces這里沒(méi)有$myhostname,添加進(jìn)去 inet_interfaces = localhost --> inet_interfaces = localhost, $myhostname [root@www:~]# telnet www.crwolf.com 25 #能連接上了 Trying 192.168.1.9... Connected to www.crwolf.com. Escape character is '^]'. 220 www.crwolf.com ESMTP Postfix
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。