V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
honmaple
V2EX  ›  问与答

qq 邮箱 smtp 是不是禁止了国外 ip

  •  
  •   honmaple · 2015-11-29 13:20:04 +08:00 · 2424 次点击
    这是一个创建于 3096 天前的主题,其中的信息可能已经有所发展或是发生改变。

    使用 qq 的 smtp 发送邮件,本地测试上正常(国内 ip ),部署到服务器( digitalocean )总是显示 502 错误, nginx 日志显示

    [error] 8145#0: *47 upstream prematurely closed connection while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: xxx.com, request: "POST /sign HTTP/1.1", upstream: "http://127.0.0.1:8000/sign", host: "xxx.com", referrer: "http://xxx.com/sign

    请教大神这是什么原因,该如何解决

    3 条回复    2015-11-29 13:38:31 +08:00
    msg7086
        1
    msg7086  
       2015-11-29 13:26:10 +08:00
    这错误日志怎么看也和 SMTP 无关吧?
    honmaple
        2
    honmaple  
    OP
       2015-11-29 13:37:20 +08:00
    额,我错了,现在加了异步方案就可以了,虽然不像本地测试般秒速发送
    tanyuxiang
        3
    tanyuxiang  
       2015-11-29 13:38:31 +08:00 via Android
    没用禁用。并且可以轻松跑满 100M 带宽。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3133 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 11:00 · PVG 19:00 · LAX 04:00 · JFK 07:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.