1. 程式人生 > >Redmine郵件配置報錯502解決方法(Reason: Error reading from remote server另一種原因)

Redmine郵件配置報錯502解決方法(Reason: Error reading from remote server另一種原因)

很久很久以前,稀裡糊塗配置成功,很久很久以後配置還是不會,然後百度到csdn看看各家文字,然後還是不成功,提示如下:

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request .

Reason: Error reading from remote server

故事開始的前提是這樣的:從前有一個又懶又笨的人,不得不搞個吹牛的系統來顯示自己的勤勞和智慧,於是,找到了Windows一鍵安裝版Redmine-3.4.6-1來顯擺(安裝包下載地址

https://bitnami.com/stack/redmine/installer),然後改頭換面,然後就到配置郵箱了,配置不出來,找資料然後找到需要配置的檔案configuration.yml(我的路徑D:\redmine-3.4.6-1\apps\redmine\htdocs\config),由於本人有自知之明(先飛也飛不動),所以先把這個在配置裡已經配置過的,也麼有成功配置郵件的檔案備份了一下。然後改動檔案,改成如下就能成功撲稜了:

default:
  # Outgoing emails configuration
  # See the examples below and the Rails guide for more configuration options:
  #

http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      tls: true
      #false
      address: "smtp.exmail.qq.com"
      port: 465
      domain: "exmail.qq.com"
      authentication: :login
      enable_starttls_auto: true
      user_name: "
[email protected]
"

      password: "jbgsnmm"

原來不成功的是這樣的(頁面配置之後):

# default configuration options for all environments
default:
  # Outgoing emails configuration
  # See the examples below and the Rails guide for more configuration options:
  # http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      tls: false
      address: smtp.exmail.qq.com
      port: 465
      domain: example.net
      authentication: :login
      enable_starttls_auto: true
      # default configuration options for all environments
default:
  # Outgoing emails configuration
  # See the examples below and the Rails guide for more configuration options:
  # http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      tls: false
      address: smtp.exmail.qq.com
      port: 465
      domain: example.net
      authentication: :login
      enable_starttls_auto: true
       user_name: "[email protected]"

      password: "jbgsnmm"

說要說明的是:1、在改動yml檔案之前,已經在頁面配置,配置之後就是第二段仍然釋出出去郵件,然後改成第一段就好了。

相關推薦

Redmine郵件配置502解決方法Reason: Error reading from remote server原因

很久很久以前,稀裡糊塗配置成功,很久很久以後配置還是不會,然後百度到csdn看看各家文字,然後還是不成功,提示如下: Proxy Error The proxy server received an invalid response from an upstream se

linux中安裝Gitlab伺服器後登入502解決辦法圖文集合

     前幾天安裝好了本地的Gitlab伺服器,都沒什麼問題,可以直接開啟。但是今天一通過 http//192.168.1.164:9090 來訪問直接報了502錯誤。如下圖: 502錯誤就是閘道器錯誤: 伺服器正在作為一個閘道器或代

【Redhat7.0】yum makecache解決方法巨坑!!!

本來是想更換yum源,然後就刪除了linux中 /etc/yum.repos.d除CentOS-Base.repo檔案以外的所有檔案 首先,根據http://mirrors.163.com/.help/centos.html指示備份 mv /etc/

IntelliJ IDEA 解決方法1

問題一:“錯誤: 找不到或無法載入主類 Main”解決方法:工具欄右上-點選Edit Configurations-將Main class中的名字修改為自己程式中的class名。 問題二:“Error:(6, 8) java: 類_02是公共的, 應在名為 _02.java 

印表機驅動安裝時總是解決方法手動安裝印表機驅動

有些印表機驅動的安裝程式安裝時候總是報錯,下面介紹一下手動安裝印表機的方法。  1。準備好下載好的印表機驅動或光碟和連線好印表機 2。安裝列印驅動 在“印表機與傳真”控制面板中點右鍵,“伺服器屬性”。在彈出的“列印伺服器屬性”視窗中選擇“驅動程式”選項夾,再點選“新增”按鈕。

傳送自動郵件時Could not connect to SMTP host: 10.1.1.195, port: 25;解決方法

最近在測試公司內部系統自動傳送郵件功能時,一直在報錯: javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Coul

Jenkins郵件通知配置問題解決

在Jenkins系統管理-->系統配置中配置郵件通知的時候Test configuration時報錯:com.sun.mail.smtp.SMTPSenderFailedException: 553 Mail from must equal authorized use

zabbix   監控平臺搭建過程中的解決方法總結

監控 zabbix 運維自動化1.php option post_max_size 2.php option max_execution_time 3.php option max_input_time 4.php time zone 5.php bcm

Git總結筆記4-git push origin master 解決方法

failed 總結筆記 rebase nbsp read hint err ont version 1 錯誤提示如下: 2 [[email protected]/* */ php]# git push -u origin master 3 To [ema

自動化測試工具TW解決方法

ima -1 需要 1.2 使用 policy 報錯 span 技術 自動化測試工具TestWriter使用時遇到的環境配置問題及解決方法如下,歡迎大家一起溝通交流~ 1.1 TW環境 1.1.1 Agent無法連接至服務器 1) 如果Agent與服務端不在一個網段,需要

svn“Previous operation has not finished; run 'cleanup' if it was interrupted“解決方法

管理 rup embed 估計 get tar 做了 但是 改名 今天碰到了個郁悶的問題,svn執行clean up命令時報錯“Previous operation has not finished; run ‘cleanup‘ if it was interr

記錄次apache服務器啟動解決方法

受限 png www img oot 端口 使用 rwx 環境 問題描述:在liunx系統上安裝軟件時需要較大的權限,一般用戶是不能隨便安裝的。為了省事,在安裝lamp環境時,整個過程都是以root身份安裝各種軟件的。最後整個環境是安裝成功,但是像apache這樣的服務器如

mysql數據庫表字段使用DESC等關鍵字解決方法

直接 方式 sel max desc base 字段名 字段 方法 <!-- desc是MySQL數據庫的關鍵字,作為字段名直接使用會報錯 --><sql id="Base_Column"> id,mol,ip,port,name,t.desc,m

KVM使用virt-sysprep -d 清理機器信息解決方法

版本 centos pass random manager output seed use arch 報錯信息: [root@monitor log]# virt-sysprep -d centos6-raw40 [ 0.0] Examining t

Windows Server 2008 R2 安裝oracle10g解決方法

pro 是我 oracle10g 就是 sap 打開 報錯 程序輸入點 2008 r2 最近在Windows Server 2008 R2 上安裝oracle10g時, 不管是安裝客戶端還是服務端,都會報一個錯: 【無法定位程序輸入點GetProcessImageFileN

npm無法進行下載以及解決方法

Node.js npm報錯 解決辦法這幾天在弄Node.js時用npm安裝一些插件出現如下問題:各種搜索之後終於在Stackflow上找到一個行之有效的方法:npm無法進行下載以及報錯的解決方法

編譯geth解決方法 make: *** [geth] 錯誤 1

over lang oot ethereum pkg linux www http 資料 在centos下安裝了go1.9.1版本,編譯go-ethereum時報錯: [root@localhost go-ethereum]# make gethbuild/env.sh

Spring Boot項目Maven Build解決方法

running ati 依賴 lur fail compile ring date -c 問題1, [ERROR]Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:tes

Linux安裝ElasticSearch啟動解決方法

ear nbsp get erro 技術 5.4 如何 成功 用戶名 Linux安裝ElasticSearch後,ElasticSearch是不能用root用戶啟動的,以root用戶啟動會報錯Refer to the log for complete error deta

php中函數move_uploaded_file()移動中文文件解決方法

ads 參數 err AD globals info urn php ssa 在windos中文系統上要求傳入的參數如果有中文必須是GBK編碼 1、用iconv()轉換字符集代碼如下 $target_pt = ‘./uploads/‘.uniqid().‘-‘.$image