v2ray / v2ray-core

A platform for building proxies to bypass network restrictions.
https://www.v2ray.com/
MIT License
45.38k stars 8.94k forks source link

macOS Gmail接收邮件 添加账户不正常 #522

Closed YihaoJW closed 6 years ago

YihaoJW commented 7 years ago

提交 Issue 之前请先阅读 Issue 指引,然后回答下面的问题,谢谢。 Please read the instruction and answer the following questions before submitting your issue. Thank you.

1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) What version of V2Ray are you using (If you deploy different version on server and client, please explicitly point out)? 2.33 2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 What's your scenario of using V2Ray? E.g., Watching YouTube videos in Chrome via Socks/VMess proxy.

MacOS 系统设置--互联网账户--添加Gmail 邮件(以及使用 Spark Mail接收Gmail) V2rayX 全局模式 TCP--TLS

3) 你看到的不正常的现象是什么? What did you see?

Can not reach the server in Spark Mail. 页面无法加载(系统添加Gmail),但是如果使用 树莓派 并使用Vmess配置为 透明代理 Spark Mail客户端恢复正常, 系统添加Gmail依然不正常,试过多个服务器,包括关闭TLS 随机端口功能等,测试 SSR完全正常(Socks5 模式全局)。

4) 你期待看到的正确表现是怎样的? What's your expectation? 能正常使用Gmail.

5) 请附上你的配置文件(提交 Issue 前请隐藏服务器端IP地址)。 Please attach your configuration file (Mask IP addresses before submit this issue). Server Configuration File(服务器端配置文件):

    // 在这里附上服务器端配置文件
{
    "inbound": {
        "listen": "***",
        "port": 443,
        "protocol": "vmess",
        "settings": {
            "clients": [
                {
                    "alterId": 64,
                    "email": "***",
                    "id": "***",
                    "level": 0
                },
                {
                    "alterId": 64,
                    "email": "**",
                    "id": "***",
                    "level": 0
                }
            ],
            "detour": {
                "to": "dynamicPort"
            }
        },
        "streamSettings": {
            "network": "tcp",
            "security": "tls",
            "tlsSettings": {
                "certificates": [
                    {
                        "certificateFile": "/root/.acme.sh/***/fullchain.cer",
                        "keyFile": "/root/.acme.sh/***.key"
                    }
                ]
            }
        }
    },
    "inboundDetour": [
        {
            "allocate": {
                "concurrency": 3,
                "refresh": 7,
                "strategy": "random"
            },
            "port": "10000-20000",
            "protocol": "vmess",
            "settings": {
                "default": {
                    "alterId": 32,
                    "level": 1
                }
            },
            "streamSettings": {
                "network": "tcp",
                "security": "tls",
                "tlsSettings": {
                    "certificates": [
                        {
                            "certificateFile": "/root/.acme.sh/***/fullchain.cer",
                            "keyFile": "/root/.acme.sh/****.key"
                        }
                    ]
                }
            },
            "tag": "dynamicPort"
        },
        {
            "allocate": {
                "concurrency": 3,
                "refresh": 7,
                "strategy": "random"
            },
            "port": "30000-40000",
            "protocol": "vmess",
            "settings": {
                "default": {
                    "alterId": 32,
                    "level": 1
                }
            },
            "streamSettings": {
                "network": "kcp",
                "security": "tls",
                "tlsSettings": {
                    "certificates": [
                        {
                            "certificateFile": "/root/.acme.sh/***fullchain.cer",
                            "keyFile": "/root/.acme.sh/***.key"
                        }
                    ]
                }
            },
            "tag": "dynamicPortkcp"
        },
        {
            "listen": "***",
            "port": ***,
            "protocol": "vmess",
            "settings": {
                "clients": [
                    {
                        "alterId": 64,
                        "email": "***",
                        "id": "***",
                        "level": 1
                    },
                    {
                        "alterId": 64,
                        "email": "***",
                        "id": "***",
                        "level": 1
                    }
                ],
                "detour": {
                    "to": "dynamicPortkcp"
                }
            },
            "streamSettings": {
                "network": "kcp",
                "security": "tls",
                "tlsSettings": {
                    "certificates": [
                        {
                            "certificateFile": "/root/.acme.sh/*******/fullchain.cer",
                            "keyFile": "/root/.acme.sh/********.key"
                        }
                    ]
                }
            }
        }
    ],
    "log": {
        "access": "/var/log/v2ray/access.log",
        "error": "/var/log/v2ray/error.log",
        "loglevel": "warning"
    },
    "outbound": {
        "protocol": "freedom",
        "settings": {}
    },
    "outboundDetour": [
        {
            "protocol": "blackhole",
            "settings": {},
            "tag": "blocked"
        }
    ],
    "routing": {
        "settings": {
            "rules": [
                {
                    "ip": [
                        "0.0.0.0/8",
                        "10.0.0.0/8",
                        "100.64.0.0/10",
                        "127.0.0.0/8",
                        "169.254.0.0/16",
                        "172.16.0.0/12",
                        "192.0.0.0/24",
                        "192.0.2.0/24",
                        "192.168.0.0/16",
                        "198.18.0.0/15",
                        "198.51.100.0/24",
                        "203.0.113.0/24",
                        "::1/128",
                        "fc00::/7",
                        "fe80::/10"
                    ],
                    "outboundTag": "blocked",
                    "type": "field"
                }
            ]
        },
        "strategy": "rules"
    },
    "transport": {
        "kcpSettings": {
            "congestion": true,
            "downlinkCapacity": 30,
            "header": {
                "type": "wechat-video"
            },
            "mtu": 1350,
            "readBufferSize": 10,
            "tti": 20,
            "uplinkCapacity": 30,
            "writeBufferSize": 10
        },
        "tcpSettings": {
            "connectionReuse": true
        }
    }
}
Client Configuration File(客户端配置文件):
{
  "dns" : {
    "servers" : [
      "8.8.8.8"
    ]
  },
  "outboundDetour" : [
    {
      "protocol" : "freedom",
      "tag" : "direct",
      "settings" : {

      }
    }
  ],
  "inbound" : {
    "listen" : "127.0.0.1",
    "port" : 1081,
    "protocol" : "socks",
    "settings" : {
      "ip" : "127.0.0.1",
      "auth" : "noauth"
    },
    "allowPassive" : false
  },
  "inboundDetour" : [
    {
      "listen" : "127.0.0.1",
      "allocate" : {
        "strategy" : "always",
        "refresh" : 5,
        "concurrency" : 3
      },
      "port" : 8001,
      "protocol" : "http",
      "tag" : "httpDetour",
      "domainOverride" : [
        "http",
        "tls"
      ],
      "streamSettings" : {

      },
      "settings" : {
        "timeout" : 0
      }
    }
  ],
  "log" : {
    "loglevel" : "warning"
  },
  "routing" : {
    "strategy" : "rules",
    "settings" : {
      "domainStrategy" : "IPIfNonMatch",
      "rules" : [
        {
          "port" : "1-52",
          "type" : "field",
          "outboundTag" : "direct"
        },
        {
          "port" : "54-79",
          "type" : "field",
          "outboundTag" : "direct"
        },
        {
          "port" : "81-442",
          "type" : "field",
          "outboundTag" : "direct"
        },
        {
          "port" : "444-65535",
          "type" : "field",
          "outboundTag" : "direct"
        },
        {
          "type" : "field",
          "ip" : [
            "0.0.0.0\/8",
            "10.0.0.0\/8",
            "100.64.0.0\/10",
            "127.0.0.0\/8",
            "169.254.0.0\/16",
            "172.16.0.0\/12",
            "192.0.0.0\/24",
            "192.0.2.0\/24",
            "192.168.0.0\/16",
            "198.18.0.0\/15",
            "198.51.100.0\/24",
            "203.0.113.0\/24",
            "::1\/128",
            "fc00::\/7",
            "fe80::\/10"
          ],
          "outboundTag" : "direct"
        }
      ]
    }
  },
  "outbound" : {
    "protocol" : "vmess",
    "mux" : {
      "enable" : false,
      "concurrency" : 8
    },
    "streamSettings" : {
      "network" : "tcp",
      "tcpSettings" : {
        "header" : {
          "type" : "none"
        },
        "connectionReuse" : true
      },
      "kcpSettings" : {
        "header" : {
          "type" : "none"
        },
        "mtu" : 1350,
        "congestion" : false,
        "tti" : 50,
        "uplinkCapacity" : 5,
        "writeBufferSize" : 1,
        "readBufferSize" : 2,
        "downlinkCapacity" : 20
      },
      "security" : "tls",
      "tlsSettings" : {
        "allowInsecure" : false
      },
      "wsSettings" : {
        "path" : "",
        "connectionReuse" : true
      }
    },
    "settings" : {
      "vnext" : [
        {
          "address" : "***",
          "port" : 443,
          "users" : [
            {
              "id" : "***",
              "alterId" : 64,
              "security" : "aes-128-gcm"
            }
          ]
        }
      ]
    }
  }
}

V2rayX 客户端 能正确打开网页 和任何其他应用

6) 请附上出错时软件输出的日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。 Please attach the log file, especially the bottom lines if the file is large. Log file is usually /var/log/v2ray/error.log on Linux.

Server Log File(服务器端日志):
2017/08/01 16:14:14 [Warning]Core: V2Ray started
Client Log File(客户端日志):
2017/08/02 00:05:52 [Warning]Core: V2Ray started
ladiesman218 commented 7 years ago

我也遇到了一样的问题

YihaoJW commented 7 years ago

@Duncej 好吧 还没修复。。我已经放弃Vmess了 等修复再说

DarienRaymond commented 6 years ago

看上去像是 V2RayX 的问题,请至 V2RayX 项目询问。

wzgy commented 6 years ago

我也是同样的问题,终于找到原因了,是V2RayX的作者把routing配置成只代理80和443端口了,而邮箱需要代理端口993,修改的办法是进应用程序,右键V2RayX.app,显示包内容,然后把Contents\Resources\config-sample.plist和Contents\Resources\config-sample-rules.plist中routing->settings->rules下所有涉及port的项删除即可

skksdd commented 6 years ago

@wzgy 备注一下,是删除port所在项的item, 而不是单单删除port,给后面遇到同样问题的朋友参考。

alanhe421 commented 5 years ago

@skksdd 还是说的过于粗糙,不清楚具体删除什么。 我打开了config-sample.plist文件,检索port关键词,位置如下 image image image 没有发现80 443相关字眼,难道我要把这几个地方项删除,看标签意思不像啊。

czhiling commented 4 years ago

我也有同样的问题。而且新版本似乎没有了上面 @skksdd 提到的Contents\Resources\config-sample-rules.plist。 现在只要使用v2rayx,就无法使用mail发送邮件,接受是可以的。

Firkraag commented 3 years ago

我也有同样的问题。而且新版本似乎没有了上面 @skksdd 提到的Contents\Resources\config-sample-rules.plist。 现在只要使用v2rayx,就无法使用mail发送邮件,接受是可以的。

打开全局模式就可以发送邮件了

igzat1no commented 9 months ago

需要把路由中block ad项去掉就可以了