LinuxCentos7环境下的mailx代理163邮箱-古蔺大橙子建站
RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
LinuxCentos7环境下的mailx代理163邮箱

一、安装mailx
yum -y install mailx

为汝州等地区用户提供了全套网页设计制作服务,及汝州网站建设行业解决方案。主营业务为做网站、网站制作、汝州网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!

二、配制

[root@sea~]# vim /etc/mail.rc
set from=sea_xyz@163.com                           # 发送邮件后显示的邮件发送方
set smtp.163.com                                            # 163 smtp邮件服务器
set smtp-auth-user=youremail@163.com       # 你的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 " Redhat7 更换yum 源为Centos7的阿里云yum源"|mailx -s "rpm -e yum redhat" -a Centos7_yum_org_aliyun.tar.gz othermail@126.com,yourqq@qq.com

注:echo 的为邮件内容,-s 是邮件主题,-a 为添加附件,逗号分隔多个邮箱地址。


网站栏目:LinuxCentos7环境下的mailx代理163邮箱
网页地址:http://scgulin.cn/article/piidhs.html