CentOS郵件發送筆記

來源:互聯網
上載者:User

標籤:version   服務端   

centos5下面的mail命令發送郵件使用sendmail服務

[[email protected] ~]# rpm -q sendmail

sendmail-8.13.8-10.el5_11

[[email protected] ~]# ll /bin/mail*

-rwxr-xr-x 1 root mail 84856 Jul 13  2006 /bin/mail

lrwxrwxrwx 1 root root     4 Jan 14  2013 /bin/mailx -> mail

[[email protected] ~]# mail -v -s "mailx version" [email protected] < version.c

>>> MAIL From:<[email protected]>

>>> RCPT To:<[email protected]>


用mailx不啟動Sendmail使用其它SMTP發郵件,參考

http://blog.c1gstudio.com/archives/1314

建議不卸載sendmail或者mailx。

郵件警示有兩種情況:

1、Zabbix服務端只是單純的發送警示郵件到指定郵箱,發送警示郵件的這個郵箱帳號是Zabbix服務端的本地郵箱帳號(例如:[email protected]),只能發送,不能接收外部郵件。

2、使用一個可以在互連網上正常收發郵件的郵箱帳號(例如:[email protected]),通過在Zabbix服務端中設定,使其能夠發送警示郵件到指定郵箱。

CentOS 5.x 預設已經安裝好sendmail

CentOS 6.x 預設已經安裝好postfix

sendmail和postfix只需要安裝一個即可並開啟服務即可。

安裝郵件發送工具mailx

yum install mailx #安裝

CentOS 5.x 編譯安裝mailx,直接yum安裝的mailx版本太舊,使用外部郵件發送會有問題。

http://www.osyunwei.com/archives/8113.html


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.