centos 6.4 使用sendmail發送郵件(cacti)

1、下載安裝sendEmail

wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gztar zxvf sendEmail-v1.56.tar.gz
cd sendEmail-v1.56cp sendEmail /usr/local/bin/chmod 775 /usr/local/bin/sendEmail
chown nagios:nagios /usr/local/bin/sendEmail        #因爲我要讓nagios發郵件所以用的是nagios用戶

2、測試一下

/usr/local/bin/sendEmail -f 發送者@163.com -t 接送@163.com -s smtp.163.com -u "郵件標題" -xu 帳號 -xp 密碼 -m "郵件內容


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章