centos配置郵件服務(wù)器

           Centos7下使用mail發(fā)送郵件

修改配置文件,配置郵件相關(guān)內(nèi)容(追加到配置文件末尾)
[root@ProxyServer ~]# vi /etc/mail.rc
set from=373416873@qq.com
set smtp=smtp.qq.com
set smtp-auth-user=373416873@qq.com
set smtp-auth-password=password

讓客戶滿意是我們工作的目標(biāo),不斷超越客戶的期望值來自于我們對(duì)這個(gè)行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價(jià)值的長期合作伙伴,公司提供的服務(wù)項(xiàng)目有:域名與空間、虛擬空間、營銷軟件、網(wǎng)站建設(shè)、瀏陽網(wǎng)站維護(hù)、網(wǎng)站推廣。

set smtp-auth=login
set smtp-port=587
測試
echo "Hello, world" | mail -s "ceshi" 373416873@qq.com

如果不成功,執(zhí)行下面操作

首先檢測相關(guān)服務(wù)是否已安裝
[root@ProxyServer ~]# rpm -qa|grep mail

libreport-plugin-mailx-2.0.9-19.el6.x86_64

mailx-12.4-7.el6.x86_64

procmail-3.22-25.1.el6.x86_64

mailcap-2.1.31-2.el6.noarch

sendmail-8.14.4-8.el6.x86_64
若服務(wù)未安,則執(zhí)行以下命令進(jìn)行服務(wù)安裝
[root@ProxyServer ~]# yum install sendmail

[root@ProxyServer ~]# yum install mailx –y

[root@ProxyServer ~]# yum update libreport-plugin-mailx

[root@ProxyServer ~]# yum -y install sharutils

[root@ProxyServer ~]# yum install mutt

網(wǎng)頁標(biāo)題:centos配置郵件服務(wù)器
當(dāng)前鏈接:http://muchs.cn/article10/ghgodo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站建設(shè)、面包屑導(dǎo)航、做網(wǎng)站、網(wǎng)站維護(hù)品牌網(wǎng)站建設(shè)、響應(yīng)式網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

手機(jī)網(wǎng)站建設(shè)