centos配置郵件伺服器

來源:互聯網
上載者:User

標籤:yum   mail -s   2-2   centos   發送   roo   mutt   配置郵件   password   

Centos7下使用mail發送郵件

修改設定檔,配置郵件相關內容(追加到設定檔末尾)
[[email protected] ~]# vi /etc/mail.rc
set [email protected]
set smtp=smtp.qq.com
set [email protected]
set smtp-auth-password=password

set smtp-auth=login
set smtp-port=587
測試
echo "Hello, world" | mail -s "ceshi" [email protected]

如果不成功,執行下面操作

首先檢測相關服務是否已安裝
[[email protected] ~]# 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
若服務未安,則執行以下命令進行服務安裝
[[email protected] ~]# yum install sendmail

[[email protected] ~]# yum install mailx –y

[[email protected] ~]# yum update libreport-plugin-mailx

[[email protected] ~]# yum -y install sharutils

[[email protected] ~]# yum install mutt

centos配置郵件伺服器

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.