zoukankan      html  css  js  c++  java
  • redmine邮件配置

         网上找了半天,有很多答案,最后自己测试找出一个解决办法。

    1.找到安装位置

    D:Bitnami edmine-2.5.2-2apps edminehtdocsconfig下的文件configuration.yml

    这个文件里面会有一段初始的邮件配置

    # default configuration options for all environments
    default:
      # Outgoing emails configuration (see examples above)
      email_delivery:
        delivery_method: :smtp
        smtp_settings:
          
          address: smtp.gmail.com
          port: 587
          domain: example.net
          authentication: :login
          user_name: 
          password: 

    然后 你去网上搜索会发现有很多的说法,大部分是针对gmail和163之类的邮箱,但是如果你要配置企业内部使用的邮箱,按照网上的说法会发现不行。

    后来找到网上一个同仁的解释:http://wangzhe.me/archives/1352

    redmine安装完毕后开启邮件通知,发送测试邮件时报错:"hostname was not match with the server certificate"
    
    解决方法:
    
    修改redmine/config/configuration.yml
    
    # default configuration options for all environments
    default:
    # Outgoing emails configuration (see examples above)
    email_delivery:
    delivery_method: :smtp
    smtp_settings:
    tls: false
    address: 邮件服务器地址
    port: 25
    domain: 邮件服务器地址
    authentication: :login
    user_name: test@163.com
    password: 123456
    openssl_verify_mode: 'none'
    
    authentication: :plain 改为 login
    增加一行 openssl_verify_mode: 'none'

    这里很重要,注意上面是你邮件服务器的地址,比如163的会是smtp.163.com,outlook大部分是exchange,这个是支持smtp协议的,邮箱就是你的企业邮箱  密码 邮箱密码,25和587两个端口应该都支持邮件

    发送。备注:如果密码是123456这种纯数字  需要加上单引号'123456'

    这个是针对最新的版本配置方式

  • 相关阅读:
    web自动化框架如何设计
    如何保证元素定位的成功率(等待机制)
    验证码问题处理
    selenium元素定位
    网路知识总结(session&&Cookie&&三次握手&&请求头)
    python中方法的总结
    Twelve Day 检测大写字母
    超过5名学生的课(SQL语句)
    The Eleven Day 删除排序数组中的重复项
    删除重复的电子邮箱(SQL语句)
  • 原文地址:https://www.cnblogs.com/MR_ke/p/3953735.html
Copyright © 2011-2022 走看看