Linux Centos 7環境におけるmailxエージェント163メールボックス送信メールボックス
一、mailxyum-y install mailxのインストール
二、配合
四、テスト送信メールecho「Redhat 7 yumソースをCentos 7のアリクラウドyumソースに交換」|mailx-s「rpm-e yum redhat」-a Centos 7_yum_org_aliyun.tar.gz [email protected],[email protected]
注意:echoはメールの内容、-sはメールのテーマ、-aは添付ファイルを追加し、カンマで複数のメールアドレスを区切ります.
二、配合
[root@sea~]# vim /etc/mail.rc
set [email protected] #
set smtp.163.com # 163 smtp
set [email protected] # 163
set smtp-auth-password=yourpass # 163 ( )
set smtp-auth=login # 、
set smtp-use-starttls #
set ssl-verify=ignore # ssl
set nss-config-dir=/root/.certs #
三、163の証明書を生成するmkdir -p /root/.certs/
echo -n | openssl s_client -connect smtp.163.com:465 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/.certs/163.crt
certutil -A -n "GeoTrust SSL CA" -t "C,," -d ~/.certs -i ~/.certs/163.crt
certutil -A -n "GeoTrust Global CA" -t "C,," -d ~/.certs -i ~/.certs/163.crt
certutil -L -d /root/.certs
cd /root/.certs/
certutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu" -d ./ -i 163.crt
通常のNotice:Trust flag u is set automatically if the private key is present.四、テスト送信メールecho「Redhat 7 yumソースをCentos 7のアリクラウドyumソースに交換」|mailx-s「rpm-e yum redhat」-a Centos 7_yum_org_aliyun.tar.gz [email protected],[email protected]
注意:echoはメールの内容、-sはメールのテーマ、-aは添付ファイルを追加し、カンマで複数のメールアドレスを区切ります.