redmine中的Email配置问题

yyL129345 2018-01-03 12:02:15
在/config/configuration.yml中:
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "smtp.163.com"
port:25
domain: 'smtp.163.com'
authentication: :plain
user_name: 'yonn*****@163.com'
password: 'my_own_password'

如果我使用家里的WiFi,或者手机热点都可以成功发送和接受测试邮件
但是!在公司里边,因为公司使用的日本代理来上网的,10.145.~~~,configuration.yml中的配置内容不变时,发送测试邮件就会报错:
发送邮件时发生错误 (Connection refused - connect(2) for "smtp.163.com" port 25)

希望大神们给个答案呐!!谢谢
...全文
574 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
northwesternwind 2018-01-04
  • 打赏
  • 举报
回复
引用 1 楼 northwesternwind 的回复:
你是想通过代理让redmine发送邮件吗?答案是NO. 参考: http://www.redmine.org/issues/19902 Regarding the proxy: as you have written, it is an http proxy that probably only allows outbound http connection to ports 80 and 443, so you won't be able to get smtp out on whatever port.
引用
Regarding the proxy: as you have written, it is an http proxy that probably only allows outbound http connection to ports 80 and 443, so you won't be able to get smtp out on whatever port.
引用 1 楼 northwesternwind 的回复:
你是想通过代理让redmine发送邮件吗?答案是NO. 参考: http://www.redmine.org/issues/19902 Regarding the proxy: as you have written, it is an http proxy that probably only allows outbound http connection to ports 80 and 443, so you won't be able to get smtp out on whatever port.
引用
Regarding the proxy: as you have written, it is an http proxy that probably only allows outbound http connection to ports 80 and 443, so you won't be able to get smtp out on whatever port.
抱歉这一段英文来自于:http://www.redmine.org/boards/2/topics/13625
northwesternwind 2018-01-04
  • 打赏
  • 举报
回复
你是想通过代理让redmine发送邮件吗?答案是NO. 参考: http://www.redmine.org/issues/19902 Regarding the proxy: as you have written, it is an http proxy that probably only allows outbound http connection to ports 80 and 443, so you won't be able to get smtp out on whatever port.
引用
Regarding the proxy: as you have written, it is an http proxy that probably only allows outbound http connection to ports 80 and 443, so you won't be able to get smtp out on whatever port.

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧