zoukankan      html  css  js  c++  java
  • entos 7 mailx配置163邮箱发送邮件

    配置:

    set from=wcczcl@163.com
    set smtp.163.com
    set smtp-auth-user=wcczcl
    set smtp-auth-password=1454545  
    set smtp-auth=login
    set smtp-use-starttls
    set ssl-verify=ignore
    set nss-config-dir=/root/.certs

    from:对方收到邮件时显示的发件人
    smtp:指定第三方发邮件的smtp服务器地址
    set smtp-auth-user:第三方发邮件的用户名
    set smtp-auth-password:用户名对应的密码,有些邮箱填的是授权码
    smtp-auth:SMTP的认证方式,默认是login,也可以改成CRAM-MD5或PLAIN方式
    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

    参考资料:http://blog.51cto.com/ygtq666/2164919?source=dra

  • 相关阅读:
    排序之选择排序
    排序之冒泡排序
    NOIP 模拟 $22; m d$
    NOIP 模拟 $20; m z$
    NOIP 模拟 $20; m y$
    NOIP 模拟 $20; m 玩具$
    NOIP 模拟 $21; m Median$
    NOIP 模拟 $21; m Park$
    NOIP 模拟 $21; m Game$
    NOIP 模拟 $19; m w$
  • 原文地址:https://www.cnblogs.com/myvic/p/9579954.html
Copyright © 2011-2022 走看看