配置好可以收到外网发来的邮件,但是发邮件到外网失败,急求救

hMailServer的综合讨论。包括安装、使用、webmail等问题。

版主: jimmy, Hsia

版面规则
jasonshaw
Level 3
Level 3
帖子: 34
注册: 2015年5月6日, 11:16

配置好可以收到外网发来的邮件,但是发邮件到外网失败,急求救

帖子 jasonshaw »

配置好了
hmailserver 内部收发很快,什么问题没有
但是对于外网,只能收取发来的邮件,但是无法发送邮件到外网
紧急求解
已经按照版主的帖子,域名解析,添加了dkim 还有 ssl

顺道问一下,哪个dkim 复制过来的那个public 换行过去 是需要删除吗?还是直接复制?
诊断:
Test: Collect server details
hMailServer version: hMailServer 5.6.3-B2249
Database type: MySQL

Test: Test IPv6
IPv6 support is available in operating system.

Test: Test outbound port
SMTP relayer not in use. Attempting mail.hmailserver.com:25...
Local address is 58.xxx.xxx.xxx.
Trying to connect to host mail.hmailserver.com...
Trying to connect to TCP/IP address 46.163.109.39 on port 25.
ERROR: Unable to bind to address 58.xxx.xxx.xxx.

Test: Test backup directory
Backup directory F:\hmail\backup is writable.

Test: Test MX records
Trying to resolve MX records for xxx.net...
Host name found: mail.xxx.net

Test: Test local connect
Connecting to TCP/IP address in MX records for local domain domain mobbiz.net...
Trying to connect to host mail.mobbiz.net...
Trying to connect to TCP/IP address 58.xxx.xxx.xxx on port 25.
Received: 220 MobbizMsailSystem ESMTP.
Connected successfully.

Test: Test message file locations
Relative message paths are stored in the database for all messages.

Test: Test IP range configuration
No problems were found in the IP range configuration.
Ching
Level 3
Level 3
帖子: 21
注册: 2014年11月27日, 18:57

Re: 配置好可以收到外网发来的邮件,但是发邮件到外网失败,急求救

帖子 Ching »

jasonshaw 写了:配置好了
hmailserver 内部收发很快,什么问题没有
但是对于外网,只能收取发来的邮件,但是无法发送邮件到外网
紧急求解
已经按照版主的帖子,域名解析,添加了dkim 还有 ssl

顺道问一下,哪个dkim 复制过来的那个public 换行过去 是需要删除吗?还是直接复制?
诊断:
Test: Collect server details
hMailServer version: hMailServer 5.6.3-B2249
Database type: MySQL

Test: Test IPv6
IPv6 support is available in operating system.

Test: Test outbound port
SMTP relayer not in use. Attempting mail.hmailserver.com:25...
Local address is 58.xxx.xxx.xxx.
Trying to connect to host mail.hmailserver.com...
Trying to connect to TCP/IP address 46.163.109.39 on port 25.
ERROR: Unable to bind to address 58.xxx.xxx.xxx.

Test: Test backup directory
Backup directory F:\hmail\backup is writable.

Test: Test MX records
Trying to resolve MX records for xxx.net...
Host name found: mail.xxx.net

Test: Test local connect
Connecting to TCP/IP address in MX records for local domain domain mobbiz.net...
Trying to connect to host mail.mobbiz.net...
Trying to connect to TCP/IP address 58.xxx.xxx.xxx on port 25.
Received: 220 MobbizMsailSystem ESMTP.
Connected successfully.

Test: Test message file locations
Relative message paths are stored in the database for all messages.

Test: Test IP range configuration
No problems were found in the IP range configuration.
不要改变或者添加任何字符。
Ching
Level 3
Level 3
帖子: 21
注册: 2014年11月27日, 18:57

Re: 配置好可以收到外网发来的邮件,但是发邮件到外网失败,急求救

帖子 Ching »

是不是还要设置默认域名 (高级-默认域名)
还要绑定本地Ip??
jasonshaw
Level 3
Level 3
帖子: 34
注册: 2015年5月6日, 11:16

Re: 配置好可以收到外网发来的邮件,但是发邮件到外网失败,急求救

帖子 jasonshaw »

添加了 默认域名 结果依旧
Test: Collect server details
hMailServer version: hMailServer 5.6.3-B2249
Database type: MySQL

Test: Test IPv6
IPv6 support is available in operating system.

Test: Test outbound port
SMTP relayer not in use. Attempting mail.hmailserver.com:25...
Local address is 58.xxx.xxx.xxx.
Trying to connect to host mail.hmailserver.com...
Trying to connect to TCP/IP address 46.163.109.39 on port 25.
ERROR: Unable to bind to address 58.xxx.xxx.xxx.

Test: Test backup directory
Backup directory F:\hmail\backup is writable.

Test: Test MX records
Trying to resolve MX records for mobbiz.net...
Host name found: mail.mobbiz.net

Test: Test local connect
Connecting to TCP/IP address in MX records for local domain domain mobbiz.net...
Trying to connect to host mail.mobbiz.net...
Trying to connect to TCP/IP address 58.xxx.xxx.xxx on port 25.
Received: 220 mail.mobbiz.net ESMTP.
Connected successfully.

Test: Test message file locations
Relative message paths are stored in the database for all messages.

Test: Test IP range configuration
No problems were found in the IP range configuration.
jasonshaw
Level 3
Level 3
帖子: 34
注册: 2015年5月6日, 11:16

Re: 配置好可以收到外网发来的邮件,但是发邮件到外网失败,急求救

帖子 jasonshaw »

关键就是 outbound 测试每次都出错

Test: Test outbound port
SMTP relayer not in use. Attempting mail.hmailserver.com:25...
Local address is 58.xxx.xxx.xxx.
Trying to connect to host mail.hmailserver.com...
Trying to connect to TCP/IP address 46.163.109.39 on port 25.
ERROR: Unable to bind to address 58.xxx.xxx.xxx.

完全不可解啊

求高手帮忙解决
Ching
Level 3
Level 3
帖子: 21
注册: 2014年11月27日, 18:57

Re: 配置好可以收到外网发来的邮件,但是发邮件到外网失败,急求救

帖子 Ching »

防火墙开没开? 放行25
Ching
Level 3
Level 3
帖子: 21
注册: 2014年11月27日, 18:57

Re: 配置好可以收到外网发来的邮件,但是发邮件到外网失败,急求救

帖子 Ching »

25.143.465.587.993.995
Ching
Level 3
Level 3
帖子: 21
注册: 2014年11月27日, 18:57

Re: 配置好可以收到外网发来的邮件,但是发邮件到外网失败,急求救

帖子 Ching »

telnet mail.xxx.com 25 看看通不通
jasonshaw
Level 3
Level 3
帖子: 34
注册: 2015年5月6日, 11:16

Re: 配置好可以收到外网发来的邮件,但是发邮件到外网失败,急求救

帖子 jasonshaw »

邮件服务器主机在局域网内
主机win7,自带防火墙,专门对出站和入站设置了25 110 143 465的通过
其余几个也需要吗?25.143.465.587.993.995

我刚刚全部建立了放行规则,但是依然如果
我查看错误

"ERROR" 12684 "2015-05-08 15:33:00.749" "Severity: 3 (Medium), Code: HM4330, Source: TCPConnection::Connect, Description: Failed to bind to IP address 58.xxx.xxx.xxx. Remote IP: , Error code: 10049, Message: 在其上下文中,该请求的地址无效。"
"ERROR" 12684 "2015-05-08 15:33:00.751" "Severity: 3 (Medium), Code: HM4330, Source: TCPConnection::Connect, Description: Failed to bind to IP address 58.xxx.xxx.xxx. Remote IP: , Error code: 10049, Message: 在其上下文中,该请求的地址无效。"
"ERROR" 12684 "2015-05-08 15:51:00.772" "Severity: 3 (Medium), Code: HM4330, Source: TCPConnection::Connect, Description: Failed to bind to IP address 58.xxx.xxx.xxx. Remote IP: , Error code: 10049, Message: 在其上下文中,该请求的地址无效。"
"ERROR" 12684 "2015-05-08 15:51:00.775" "Severity: 3 (Medium), Code: HM4330, Source: TCPConnection::Connect, Description: Failed to bind to IP address 58.xxx.xxx.xxx. Remote IP: , Error code: 10049, Message: 在其上下文中,该请求的地址无效。"
"ERROR" 12684 "2015-05-08 15:51:00.777" "Severity: 3 (Medium), Code: HM4330, Source: TCPConnection::Connect, Description: Failed to bind to IP address 58.xxx.xxx.xxx. Remote IP: , Error code: 10049, Message: 在其上下文中,该请求的地址无效。"
"ERROR" 9824 "2015-05-08 17:15:03.706" "Severity: 3 (Medium), Code: HM4330, Source: TCPConnection::Connect, Description: Failed to bind to IP address 58.xxx.xxx.xxx. Remote IP: , Error code: 10049, Message: 在其上下文中,该请求的地址无效。"
"ERROR" 9824 "2015-05-08 17:15:03.895" "Severity: 3 (Medium), Code: HM4330, Source: TCPConnection::Connect, Description: Failed to bind to IP address 58.xxx.xxx.xxx. Remote IP: , Error code: 10049, Message: 在其上下文中,该请求的地址无效。"
"ERROR" 9824 "2015-05-08 17:15:03.897" "Severity: 3 (Medium), Code: HM4330, Source: TCPConnection::Connect, Description: Failed to bind to IP address 58.xxx.xxx.xxx. Remote IP: , Error code: 10049, Message: 在其上下文中,该请求的地址无效。"
"ERROR" 9824 "2015-05-08 17:17:14.402" "Severity: 3 (Medium), Code: HM4330, Source: TCPConnection::Connect, Description: Failed to bind to IP address 58.xxx.xxx.xxx. Remote IP: , Error code: 10049, Message: 在其上下文中,该请求的地址无效。"
"ERROR" 9824 "2015-05-08 17:17:14.403" "Severity: 3 (Medium), Code: HM4330, Source: TCPConnection::Connect, Description: Failed to bind to IP address 58.xxx.xxx.xxx. Remote IP: , Error code: 10049, Message: 在其上下文中,该请求的地址无效。"
"ERROR" 9824 "2015-05-08 17:17:14.405" "Severity: 3 (Medium), Code: HM4330, Source: TCPConnection::Connect, Description: Failed to bind to IP address 58.xxx.xxx.xxx. Remote IP: , Error code: 10049, Message: 在其上下文中,该请求的地址无效。"


似乎还有未知的人利用我的服务器发邮件?
2015-05-06 16:29:44 admin@xxxx.net admin@xxxx.net 58.xxx.xxx.xxx 127.0.0.1 SMTP ? 250 1774
2015-05-06 16:33:56 powerinovetor@int.ms admin@xxxx.net 92.222.146.144 127.0.0.1 SMTP ? 250 2341
2015-05-07 17:14:42 admin@xxxx.net admin@xxxx.net 58.xxx.xxx.xxx 127.0.0.1 SMTP ? 250 1784
2015-05-07 20:57:10 abc@163.com admin@xxxx.net 220.181.12.11 127.0.0.1 SMTP ? 250 3428
2015-05-07 21:26:12 admin@xxxx.net abc@foxmail.com 58.xxx.xxx.xxx 127.0.0.1 SMTP ? 550 0
2015-05-07 21:26:12 admin@xxxx.net abc@foxmail.com 58.xxx.xxx.xxx 127.0.0.1 SMTP ? 550 0
2015-05-07 21:27:10 admin@xxxx.net 127.0.0.1 127.0.0.1 SMTP ? 250 651
2015-05-07 22:30:11 admin@xxxx.net abc@163.com 58.xxx.xxx.xxx 127.0.0.1 SMTP ? 550 0
2015-05-07 22:30:11 admin@xxxx.net abc@163.com 58.xxx.xxx.xxx 127.0.0.1 SMTP ? 550 0
2015-05-07 22:31:10 admin@xxxx.net 127.0.0.1 127.0.0.1 SMTP ? 250 688
2015-05-08 02:01:47 z2007tw@yahoo.com.tw gk49fawn@yahoo.com.tw 1.160.125.228 127.0.0.1 SMTP ? 530 0
2015-05-08 07:39:01 1Jfxw7@FACMNqh.co.kr qkrgktjs1212@hanmail.net 121.172.154.204 127.0.0.1 SMTP ? 530 0

admin@xxxx.net 是hmailserver上的邮箱 abc@foxmail.comabc@163.com都是用来测试的外部邮箱
powerinovetor@int.ms z2007tw@yahoo.com.tw 1Jfxw7@FACMNqh.co.kr 这都是哪里来的?

另外,我的ssl不生效似乎, foxmail里面 勾选ssl就无法收发任何邮件 包括本来通的内网



我最新的日志中
Test: Test outbound port
SMTP relayer not in use. Attempting mail.hmailserver.com:25...
Local address is 58.xxx.xxx.xx.
Trying to connect to host mail.hmailserver.com...
Trying to connect to TCP/IP address 46.163.109.39 on port 25.
ERROR: Unable to bind to address 58.xxx.xxx.xxx.
依然是报错
jasonshaw
Level 3
Level 3
帖子: 34
注册: 2015年5月6日, 11:16

Re: 配置好可以收到外网发来的邮件,但是发邮件到外网失败,急求救

帖子 jasonshaw »

测试
telnet mail.xxx.com 25 是指 我自己的域名吗?
是通的

我测试了 telnet smtp.163.com 25 也是通的
回复