redmine郵件配置


     網上找了半天,有很多答案,最后自己測試找出一個解決辦法。

1.找到安裝位置

D:\Bitnami\redmine-2.5.2-2\apps\redmine\htdocs\config下的文件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'

這個是針對最新的版本配置方式


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM