欧美一区2区三区4区公司二百,国产精品婷婷午夜在线观看,自拍偷拍亚洲精品,国产美女诱惑一区二区

歡迎來到云服務(wù)器

服務(wù)器租用

sendmail命令的設(shè)置及使用

HP-UX和Solaris還有Redhat發(fā)郵件的命令各有千秋.
solaris
# /usr/ucb/mail test@163.com < w.tx

 

Linux發(fā)郵件只要在命令行輸入
#mail -s "test" test@163.com < w.tx

 

下面詳細(xì)介紹HP-UX sendmail設(shè)置.
1.root登陸

 

2.修改/etc/hosts文件
# vi /etc/hosts

 

添加企業(yè)內(nèi)部SMTP郵件代理服務(wù)器的IP解析
192.168.0.121 hpmail hpux.com

3.生成mail控制文件
如果存在/etc/nsswitch.conf ,那么直接修改該文件;如果不存在,則需要拷貝一個(gè):
#cp -p /usr/newconfig/etc/nsswitch.files /etc/nsswitch.conf
#vi /etc/nsswitch.conf
確定有如下一行
hosts: files

 

4.測(cè)試解析
#nslookup
Using /etc/hosts on : hosta
>hpmail

 

問題的話,繼續(xù);有問題則看看自己上面做對(duì)了沒有。

 

5.修改mail配置文件
#vi /etc/mail/sendmail.cf
找到:#Dj$w.Foo.COM 這行,并在下面增加一行:
Dj$w.dbinfo (發(fā)送郵件時(shí),系統(tǒng)默認(rèn)發(fā)信人是:root@hostname.dbinfo)
然后,找到DS 行,改成:
DS hpmail
存檔退出

 

 

6.測(cè)試
#/sbin/init.d/sendmail stop
#/sbin/init.d/sendmail start

 

#sendmail test@163.com < w.txt
#sendmail -v test@163.com

<輸入郵件內(nèi)容>
.

例如:

#>sendmail -v test@163.com

test

.

test@163.com... Connecting to mail1 via relay...

……

 

7.發(fā)送測(cè)試郵件
# mailx -s "test"test@163.com

 

 

8.發(fā)送文本郵件
# mailx -s "ALERT_LOG_ERROR"test@163.com<$file_dir/$error_file_name

 

 

9.發(fā)送帶附件的郵件
# uuencode $file_dir/$error_file_name $file_name | mailx -m -s $title test@163.com
 
騰訊云代理

Copyright © 2003-2021 MFISP.COM. 國(guó)外vps服務(wù)器租用 夢(mèng)飛云服務(wù)器租用 版權(quán)所有 ? 粵ICP備11019662號(hào)

主站蜘蛛池模板: 金坛市| 乌审旗| 黄平县| 建湖县| 茂名市| 竹溪县| 宜都市| 杭锦后旗| 句容市| 和田市| 沙坪坝区| 雷山县| 台安县| 右玉县| 仙桃市| 防城港市| 齐河县| 云安县| 彩票| 无棣县| 云龙县| 浮梁县| 鹤峰县| 郧西县| 清新县| 江陵县| 鹤山市| 浠水县| 琼结县| 长沙市| 邵阳市| 桦南县| 军事| 高碑店市| 固原市| 青阳县| 深泽县| 宕昌县| 厦门市| 兴仁县| 青神县|