婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識(shí)庫 > CentOS下郵件服務(wù)sendmail的安裝及簡(jiǎn)單配置

CentOS下郵件服務(wù)sendmail的安裝及簡(jiǎn)單配置

熱門標(biāo)簽:bs外呼系統(tǒng) 常州云呼叫外呼系統(tǒng) 阿克蘇市地圖標(biāo)注app 小藍(lán)鴿電話機(jī)器人 ai人工電話機(jī)器人 上海營(yíng)銷外呼系統(tǒng)定制 河北機(jī)器人電銷 長(zhǎng)沙人工外呼系統(tǒng)公司 京東外呼系統(tǒng)怎么操作
sendmail是Linux下優(yōu)秀的郵件系統(tǒng)。在不做任何設(shè)定的情況下,sendmail發(fā)出郵件的郵箱源地址形如userid@localhost.localdo,這種地址幾乎會(huì)被所有的郵箱認(rèn)定為SPAM(垃圾郵件)或直接拒收。

1、 Sendmail安裝

在CentOS下,sendmail一般默認(rèn)是隨操作系統(tǒng)一起安裝的。如果安裝系統(tǒng)時(shí)沒有安裝sendmail服務(wù),手動(dòng)安裝sendmail也很簡(jiǎn)單:


復(fù)制代碼
代碼如下:

# yum install -y sendmail
# yum install -y sendmail-cf

2、 Senmail的SMTP認(rèn)證配置(不需要認(rèn)證的可忽略此步)

首先確認(rèn)saslauthd服務(wù)是否安裝或啟動(dòng)。

安裝saslauthd服務(wù):
復(fù)制代碼
代碼如下:
# yum install -y saslauthd


啟動(dòng)saslauthd服務(wù):
復(fù)制代碼
代碼如下:
# service saslauthd start


(1) 配置Senmail的SMTP認(rèn)證

復(fù)制代碼
代碼如下:

# vi /etc/mail/sendmail.mc


復(fù)制代碼
代碼如下:

dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

將上面兩行的dnl去掉。在sendmail文件中,dnl表示該行為注釋行,是無效的,因此通過去除行首的dnl字符串可以開啟相應(yīng)的設(shè)置行。

(2) 設(shè)置Sendmail服務(wù)的網(wǎng)絡(luò)訪問權(quán)限

復(fù)制代碼
代碼如下:

# vi /etc/mail/sendmail.mc


復(fù)制代碼
代碼如下:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

將127.0.0.1改為0.0.0.0,意思是任何主機(jī)都可以訪問Sendmail服務(wù)。如果僅讓某一個(gè)網(wǎng)段能夠訪問到Sendmail服務(wù),將127.0.0.1改為形如192.168.1.0/24的一個(gè)特定網(wǎng)段地址。

3、 生成Sendmail配置文件

Sendmail的配置文件由m4來生成,m4工具在sendmail-cf包中。如果系統(tǒng)無法識(shí)別m4命令,說明sendmail-cf軟件包沒有安裝。

生成Sendmail的配置文件:


復(fù)制代碼
代碼如下:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

需要重啟Sendmail才能使配置文件生效。

4、postfix與sendmail的沖突問題
在Linux服務(wù)器(CentOS release 6.6)上配置好了sendmail后,測(cè)試發(fā)送郵件時(shí)發(fā)現(xiàn)有問題,檢查sendmail服務(wù)的狀態(tài),發(fā)現(xiàn)其處于“sendmail dead but subsys locked”, 檢查發(fā)現(xiàn)postfix服務(wù)也在運(yùn)行。只需要將postfix服務(wù)停掉即可。為什么會(huì)出現(xiàn)這種情況呢?Something was occasionally causing the postfix service to start which then caused the status of sendmail to jump to dead but subsys locked. 兩種似乎不兼容。
 
操作步驟:
 
(1):檢查sendmail服務(wù)的狀態(tài)

復(fù)制代碼
代碼如下:

[root@DB-Server ~]# service sendmail statussendmail dead but subsys lockedsm-client (pid 22112) is running...

(2):檢查postfix服務(wù)的狀態(tài)


復(fù)制代碼
代碼如下:

[root@DB-Server ~]# service postfix statusmaster (pid 1777) is running...

 
(3):停止postfix服務(wù)

復(fù)制代碼
代碼如下:

[root@DB-Server ~]# service postfix stopShutting down postfix: [ OK ]

 
 
(4):重新啟動(dòng)sendmail服務(wù)

復(fù)制代碼
代碼如下:

[root@DB-Server ~]# service sendmail stopShutting down sm-client: [ OK ]Shutting down sendmail: [FAILED][root@DB-Server ~]# service sendmail stop[root@DB-Server ~]# service sendmail startStarting sendmail: [ OK ]Starting sm-client: [ OK ]


(5):禁用postfix在reboot后自動(dòng)啟動(dòng)

      檢查一下是否有設(shè)定 postfix 在 reboot 后自動(dòng)啟動(dòng)

復(fù)制代碼
代碼如下:

chkconfig --list | grep postfix

chkconfig postfix off

標(biāo)簽:周口 忻州 甘南 來賓 銅仁 邢臺(tái) 甘孜 泉州

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《CentOS下郵件服務(wù)sendmail的安裝及簡(jiǎn)單配置》,本文關(guān)鍵詞  CentOS,下,郵件服務(wù),sendmail,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《CentOS下郵件服務(wù)sendmail的安裝及簡(jiǎn)單配置》相關(guān)的同類信息!
  • 本頁收集關(guān)于CentOS下郵件服務(wù)sendmail的安裝及簡(jiǎn)單配置的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 通州区| 锦屏县| 苏州市| 古浪县| 浮山县| 东源县| 延长县| 南和县| 徐水县| 永安市| 辉南县| 临江市| 康保县| 额敏县| 治多县| 文成县| 桦南县| 皋兰县| 汉川市| 邵阳市| 徐闻县| 武义县| 将乐县| 贵港市| 湘潭县| 延寿县| 双流县| 马尔康县| 清河县| 房产| 温泉县| 营山县| 巢湖市| 乾安县| 永德县| 自治县| 绵阳市| 屏边| 阳春市| 林芝县| 武功县|