zoukankan      html  css  js  c++  java
  • 阿里云屏蔽25端口通过465端口发送邮件

     

    买了一台阿里云ECS 准备做nagios监控邮件报警,发现25号端口被屏蔽了,申请开通也失败,然后只能绕过25号端口,走465 ssl端口发邮件了。
    步骤如下:
     
     

    首先请求数字证书

        网页正上方:设置→POP3/SMTP/IMAP
     
        网页左侧:客户端授权密码
     

    最后配置/etc/mail.rc

    set bsdcompat

    此时test_wly@126.com收件箱就收到一封刚刚发的邮件了

    看起来已经成功了,但是发送完邮件还有报错:证书不被信任,且命令行就此卡住,需要按键才能出现命令提示符

     Error in certificate: Peer's certificate issuer is not recognized.

    [root@PLAY ~]# cd /root/.certs/
    [root@PLAY .certs]# ll
    total 80
    -rw-r--r-- 1 root root 1793 Jul 6 14:36 126.crt
    -rw------- 1 root root 65536 Jul 6 14:37 cert8.db
    -rw------- 1 root root 16384 Jul 6 14:37 key3.db
    -rw------- 1 root root 16384 Jul 6 14:37 secmod.db
    [root@PLAY .certs]# certutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu" -d ./ -i 126.crt 
    Notice: Trust flag u is set automatically if the private key is present.

  • 相关阅读:
    使用CoreData [3]
    使用CoreData [2]
    使用CoreData [1]
    [翻译] CRPixellatedView-用CIPixellate滤镜动态渲染UIView
    简易使用UILabel的富文本
    [翻译] OrigamiEngine
    [翻译] DoActionSheet
    解决tableView中cell动态加载控件的重用问题
    ARC中用代码检测一个对象有没有释放掉
    HTTP请求中浏览器的缓存机制
  • 原文地址:https://www.cnblogs.com/harlanzhang/p/9109840.html
Copyright © 2011-2022 走看看