Skip to content

[Bug] 阿里邮箱imap.mxhichina.com:143访问就出错 #2663

@skill7899

Description

@skill7899

Verify steps

  • I have read the documentation and understand the meaning of all the configuration items I have written, rather than just piling up seemingly useful options or default values.
  • I have carefully reviewed the documentation and have not resolved the issue.
  • I have searched the Issue Tracker for the issue I want to raise and did not find it.
  • I am a non-Chinese user.
  • I have tested with the latest Alpha branch version, and the issue still persists.
  • I have provided the server and client configuration files and processes that can reproduce the issue locally, rather than a sanitized complex client configuration file.
  • I provided the simplest configuration that can be used to reproduce the errors in my report, rather than relying on remote servers or piling on a lot of unnecessary configurations for reproduction.
  • I have provided complete logs, rather than just the parts I think are useful out of confidence in my own intelligence.
  • I have directly reproduced the error using the Mihomo command-line program, rather than using other tools or scripts.

Operating System

Windows

System Version

windows11

Mihomo Version

v1.19.22

Configuration File

#---------------------------------------------------#
## 配置文件需要放置在 $HOME/.config/clash/*.yaml

## 这份文件是clashX的基础配置文件,请尽量新建配置文件进行修改。
## !!!只有这份文件的端口设置会随ClashX启动生效

## 如果您不知道如何操作,请参阅 官方Github文档 https://github.com/Dreamacro/clash/blob/dev/README.md
#---------------------------------------------------#

# (HTTP and SOCKS5 in one port)
mixed-port: 7892
# RESTful API for clash
external-controller: 127.0.0.1:58153
allow-lan: false
bind-address:
  '*'
mode: rule
log-level: debug
find-process-mode: off
proxies:
 
  - name: en-direct
    type: direct
    interface-name: "以太网"
proxy-groups:
  - name: Proxy
    type: fallback
    #type: select
    proxies:
      - hihy2
      - hysteria
      - hysteriaTcp
      - trojan-ws  
    url: "https://www.gstatic.com/generate_204"
    interval: 300
geodata-mode: true
use-hosts: true
tun:
  enable: true
  stack: gvisor #
  auto-route: true
  auto-detect-interface: true
sniffer:
  enable: false
  sniffing:
    - tls
    - http
  skip-domain:
    - 'Mijia Cloud'
    - 'dlg.io.mi.com'
    - '*.apple.com'
  # - '*.baidu.com'

  force-domain:
    # - '+'
    - 'google.com'

  port-whitelist:
    - 443
    - 8000-9000
profile:
  #缓存设置(文件位置./cache.db)
  store-selected: false #节点状态记忆(若不同配置有同代理名称,设置值共享)
  store-fake-ip: true #fake-ip缓存
tcp-concurrent: true
ipv6: false
dns:
  enable: true #DNS开关(false/true)
  listen: 0.0.0.0:53 #DNS监听地址
  default-nameserver:
    - 114.114.114.114
    - 8.8.8.8
  nameserver:
    #- dhcp://en0
    #- 114.114.114.114
    - https://doh.pub/dns-query
    - https://dns.alidns.com/dns-query
 # fallback:
 #   - https://dns.cloudflare.com/dns-query
 #   - https://dns.google/dns-query
 #   - https://public.dns.iij.jp/dns-query
  fallback-filter:
    geoip: true
    geoip-code: CN
    geosite:
      #【Meta专属】设定geosite某分类使用fallback返回结果
      - gfw
    domain:
      #列表中的域名使用fallback返回解析结果
      - '+.google.com'
      - '+.facebook.com'
      - '+.youtube.com'
  enhanced-mode: fake-ip  ##redir-host
  ipv6: false
  fake-ip-range: 198.18.1.1/16
  fake-ip-filter:
    #- '*.github.com'
    #- 'github.com'
    # 以下域名列表参考自 vernesong/OpenClash 项目,并由 Hackl0us 整理补充
    # === LAN ===
    - '*.lan'
    # === Linksys Wireless Router ===
    - '*.linksys.com'
    - '*.linksyssmartwifi.com'
    # === Apple Software Update Service ===
    - 'swscan.apple.com'
    - 'mesu.apple.com'
    # === Windows 10 Connnect Detection ===
    - '*.msftconnecttest.com'
    - '*.msftncsi.com'
    # === NTP Service ===
    - 'time.*.com'
    - 'time.*.gov'
    - 'time.*.edu.cn'
    - 'time.*.apple.com'

    - 'time1.*.com'
    - 'time2.*.com'
    - 'time3.*.com'
    - 'time4.*.com'
    - 'time5.*.com'
    - 'time6.*.com'
    - 'time7.*.com'

    - 'ntp.*.com'
    - 'ntp.*.com'
    - 'ntp1.*.com'
    - 'ntp2.*.com'
    - 'ntp3.*.com'
    - 'ntp4.*.com'
    - 'ntp5.*.com'
    - 'ntp6.*.com'
    - 'ntp7.*.com'

    - '*.time.edu.cn'
    - '*.ntp.org.cn'
    - '+.pool.ntp.org'

    - 'time1.cloud.tencent.com'
    # === Music Service ===
    ## NetEase
    - '+.music.163.com'
    - '*.126.net'
    ## Baidu
    - 'musicapi.taihe.com'
    - 'music.taihe.com'
    ## Kugou
    - 'songsearch.kugou.com'
    - 'trackercdn.kugou.com'
    ## Kuwo
    - '*.kuwo.cn'
    ## JOOX
    - 'api-jooxtt.sanook.com'
    - 'api.joox.com'
    - 'joox.com'
    ## QQ
    - '+.y.qq.com'
    - '+.music.tc.qq.com'
    - 'aqqmusic.tc.qq.com'
    - '+.stream.qqmusic.qq.com'
    ## Xiami
    - '*.xiami.com'
    ## Migu
    - '+.music.migu.cn'
    # === Game Service ===
    ## Nintendo Switch
    - '+.srv.nintendo.net'
    ## Sony PlayStation
    - '+.stun.playstation.net'
    ## Microsoft Xbox
    - 'xbox.*.microsoft.com'
    - '+.xboxlive.com'
    # === Other ===
    ## QQ Quick Login
    - 'localhost.ptlogin2.qq.com'
    ## Golang
    - 'proxy.golang.org'
    ## STUN Server
    - 'stun.*.*'
    - 'stun.*.*.*'
    - '*.weixin.qq.com'
    - '*.tencent.com'
    - '*.mxhichina.com'
rules:
#  - RULE-SET,reject,REJECT

  - DOMAIN-SUFFIX,openai.com,Proxy
  - DOMAIN-SUFFIX,cloudflare.com,DIRECT
  - DOMAIN-SUFFIX,mxhichina.com,en-direct
  - DOMAIN-SUFFIX,aliyun.com,DIRECT
 



  # LAN
  - DOMAIN,injections.adguard.org,DIRECT
  - DOMAIN,local.adguard.org,DIRECT
  - DOMAIN-SUFFIX,local,DIRECT
  - IP-CIDR,192.168.60.0/16,wg
  - IP-CIDR,127.0.0.0/8,DIRECT
  - IP-CIDR,172.16.0.0/12,DIRECT
  - IP-CIDR,172.168.0.0/12,DIRECT
  - IP-CIDR,192.168.0.0/16,DIRECT
  - IP-CIDR,10.0.0.0/8,DIRECT
  - IP-CIDR,17.0.0.0/8,DIRECT
  - IP-CIDR,100.64.0.0/10,DIRECT
  - IP-CIDR,224.0.0.0/4,DIRECT
  - IP-CIDR6,fe80::/10,DIRECT

  - GEOIP,CN,DIRECT
  - MATCH,Proxy

Description

我用企微登录了邮箱是阿里云的邮件,只要开了mihomo就邮件就收取不到,查看日志报错了。所有阿里云邮箱返回的IP地址都报这个错。测过telnet可以通的。143,同样IP和端口。

Reproduction Steps

如上

Logs

time="2026-04-01T15:22:08.495305500+08:00" level=warning msg="[TCP] dial DIRECT (match DomainSuffix/mxhichina.com) 198.18.1.1:59281 --> imap.mxhichina.error: connect failed: dial tcp 59.82.13.252:143: connectex: The requested address is not valid in its context.\ndial tcp 59.82.44.41:143: connectex: The requested address is not valid in its context.\ndial tcp 59.82.8.66:143: connectex: The requested addres

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions