日韩精品成人无码专区免费-国产99久久久久久免费看-国产精品丝袜久久久久久不卡-国产精品无码一区二区三区

Linux基礎命令---sendmail發送郵件

發布時間:2024-06-13 點擊:105
建站服務器
sendmail
sendmail
是postfix中的一個發送郵件的代理程序,它負責發送郵件到遠程服務器,并且可以接收郵件。sendmail在發送郵件的時候,默認從標磚輸入讀取內容,以“.”為結束。
此命令的適用范圍:redhat、rhel、ubuntu、centos、fedora。
1
、語法
sendmail[option …][recipient …]
2
、選項參數列表
選項
說明
-bd
進入deamon模式
-bi
初始化別名數據庫
-bm
從標準輸入讀取郵件
-bp
列出郵件列表
-bs
獨立的smtp模式,從標準輸入讀取,輸出到標準輸出
-c
main.cf
的位置
-f
指定發送者的全名
-f
指定發送者
-i
忽略只有單獨點的行
-q
以給定的時間間隔處理隊列中的郵件
3
、實例
1
)給某人發送郵件
[root@localhost ~]#
sendmail david//
發送郵件給
david
,默認的發送者是
root
123.
.
[root@localhost ~]#
tail /var/spool/mail/david//
查看
david
郵箱,收到郵件
delivered-to: david@david.cn
received: by mailsrv.david.cn (postfix, from userid 0)
id 5b3a7143211; fri,5 oct 2018 21:33:34 0800 (cst)
message-id: <20181005133334.5b3a7143211@mailsrv.david.cn>
date: fri,5 oct 2018 21:33:29 0800 (cst)
from: root@david.cn (wejie)
to: undisclosed-recipients:;
123.
2
)指定發送者
[root@localhost ~]#
sendmail -f weijie david//weijie
發送郵件給
david
hehe
.
you have new mail in /var/spool/mail/root
[root@localhost ~]#
tail /var/spool/mail/david//
查看
david
郵箱,發送者是魏杰
delivered-to: david@david.cn
received: by mailsrv.david.cn (postfix, from userid 0)
id 3544314308f; fri,5 oct 2018 21:37:11 0800 (cst)
message-id: <20181005133711.3544314308f@mailsrv.david.cn>
date: fri,5 oct 2018 21:37:07 0800 (cst)
from: weijie@david.cn (wejie)
to: undisclosed-recipients:;
hehe
3
)查看表中有哪些字段
[root@localhost ~]#
mysqlshow -u root -p test wj//
顯示數據庫
test
中的表
wj
的信息
enter
database: testtable: wj
------- --------- ------------------- ------ ----- --------- ------- --------------------------------- ---------
| field | type| collation| null | key | default | extra | privileges| comment |
------- --------- ------------------- ------ ----- --------- ------- --------------------------------- ---------
| id| int(11) || no|||| select,insert,update,references ||
| name| text| latin1_swedish_ci | no|||| select,insert,update,references ||
------- --------- ------------------- ------ ----- --------- ------- --------------------------------- ---------
做了一個linux學習的平臺,目前出來一個雛形,各位可以參考使用
鏈接:https://pan.baidu.com/s/1golvu2cbpbngtunztvpacq 密碼:n7bk

云服務器怎么設置遠程
租用香港虛擬空間
香港服務器選擇哪些技巧?這幾點都是你要具備的
有些網站打不開是什么原因 win7系統打不開網站的解決方法
域名注冊會花多少錢?新手注冊需要哪些費用?
產品經理或產品負責人可能忽視哪些很重要的小事?
云服務器寶塔面板怎么安裝
云服務器跟獨立服務器的區別嗎