Skip to content

can not work in combodia with domain 163.com #45

Open
@yyle88

Description

@yyle88
package main

import (
	"fmt"
	"log"

	"github.com/badoux/checkmail"
)

func main() {
	err := checkmail.ValidateHost("[email protected]")
	if err != nil {
		log.Fatalf("邮箱验证失败: %v", err)
	}
	fmt.Println("邮箱域名验证通过")
}

2024/11/15 22:39:51 邮箱验证失败: dial tcp 103.129.252.43:25: i/o timeout
nslookup -type=mx 163.com
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
163.com	mail exchanger = 50 163mx00.mxmail.netease.com.
163.com	mail exchanger = 10 163mx01.mxmail.netease.com.
163.com	mail exchanger = 10 163mx02.mxmail.netease.com.
163.com	mail exchanger = 10 163mx03.mxmail.netease.com.

Authoritative answers can be found from:
telnet 103.129.252.43 25
Trying 103.129.252.43...
telnet: Unable to connect to remote host: 连接超时
telnet 103.129.252.43 465
Trying 103.129.252.43...
Connected to 103.129.252.43.
Escape character is '^]'.

the most reason is you should use the 465 port not use the 25 port when in combodia. but I don't know how to fix your code. thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions