honmaple
V2EX  ›  问与答

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

  •  
  •   honmaple · Nov 29, 2015 · 3206 views
    This topic created in 4014 days ago, the information mentioned may be changed or developed.

    使用 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 replies  •  2015-11-29 13:38:31 +08:00
    msg7086
    msg7086
    Nov 29, 2015
    1
    这错误日志怎么看也和 SMTP 无关吧?
    honmaple
    honmaple
    OP
    Nov 29, 2015
    2
    额,我错了,现在加了异步方案就可以了,虽然不像本地测试般秒速发送
    tanyuxiang
    tanyuxiang
    Nov 29, 2015 via Android
    3
    没用禁用。并且可以轻松跑满 100M 带宽。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4315 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:28 · PVG 16:28 · LAX 00:28 · JFK 03:28
    ♥ Do have faith in what you're doing.