hMailServer cannot send mail to self

Use this forum if you want to discuss a problem or ask a question related to a hMailServer beta release.
farwell
New user
New user
Posts: 3
Joined: 2015-04-13 15:22

hMailServer cannot send mail to self

Postby farwell » 2015-04-13 16:12

I have just installed hMailServer and I create serveral account. I found that account(test@example.cn) cannot send mail to self, but it can send mail to others including local address or external address. When an account send to self, my outlook or foxmail receive a error message: 550 User not found. But I am sure the accout exists.
I think I have setted IPRange correctly. I have checked all the checkbox.
I open the smtp log and part of the logs as below:

"SMTPD" 3800 1195 "2015-04-13 21:38:03.572" "101.95.1.102" "RECEIVED: ***"
"SMTPD" 3800 1195 "2015-04-13 21:38:03.578" "101.95.1.102" "SENT: 235 authenticated."
"SMTPD" 432 1195 "2015-04-13 21:38:03.755" "101.95.1.102" "RECEIVED: MAIL FROM: <test@example.cn> SIZE=1355"
"SMTPD" 432 1195 "2015-04-13 21:38:03.757" "101.95.1.102" "SENT: 250 OK"
"SMTPD" 3732 1195 "2015-04-13 21:38:03.924" "101.95.1.102" "RECEIVED: RCPT TO: <test@example.cn>"
"SMTPD" 3732 1195 "2015-04-13 21:38:03.925" "101.95.1.102" "SENT: 250 OK"
"SMTPD" 3800 1195 "2015-04-13 21:38:03.937" "101.95.1.102" "RECEIVED: "
"SMTPD" 3800 1195 "2015-04-13 21:38:03.938" "101.95.1.102" "SENT: 503 Bad sequence of commands"
"SMTPD" 3764 1195 "2015-04-13 21:38:03.938" "101.95.1.102" "RECEIVED: ."
"SMTPD" 3764 1195 "2015-04-13 21:38:03.938" "101.95.1.102" "SENT: 503 Bad sequence of commands"
"SMTPD" 3732 1195 "2015-04-13 21:38:03.939" "101.95.1.102" "RECEIVED: QUIT"
"SMTPD" 3732 1195 "2015-04-13 21:38:03.939" "101.95.1.102" "SENT: 221 goodbye"

Before this server in HongKong, I have installed hMailServer in another Server in Chinese. The Chinese one is running well. I have re-installed hMailServer Of HongKong serveral times.
Actually, this error occurs sometimes, 20% period of time its OK, and most of the time I receive the error message.

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: hMailServer cannot send mail to self

Postby jimimaseye » 2015-04-13 19:08

farwell wrote:"SMTPD" 3800 1195 "2015-04-13 21:38:03.572" "101.95.1.102" "RECEIVED: ***"
"SMTPD" 3800 1195 "2015-04-13 21:38:03.578" "101.95.1.102" "SENT: 235 authenticated."
"SMTPD" 432 1195 "2015-04-13 21:38:03.755" "101.95.1.102" "RECEIVED: MAIL FROM: <test@example.cn> SIZE=1355"
"SMTPD" 432 1195 "2015-04-13 21:38:03.757" "101.95.1.102" "SENT: 250 OK"
"SMTPD" 3732 1195 "2015-04-13 21:38:03.924" "101.95.1.102" "RECEIVED: RCPT TO: <test@example.cn>"
"SMTPD" 3732 1195 "2015-04-13 21:38:03.925" "101.95.1.102" "SENT: 250 OK"
"SMTPD" 3800 1195 "2015-04-13 21:38:03.937" "101.95.1.102" "RECEIVED: "
"SMTPD" 3800 1195 "2015-04-13 21:38:03.938" "101.95.1.102" "SENT: 503 Bad sequence of commands"
"SMTPD" 3764 1195 "2015-04-13 21:38:03.938" "101.95.1.102" "RECEIVED: ."
"SMTPD" 3764 1195 "2015-04-13 21:38:03.938" "101.95.1.102" "SENT: 503 Bad sequence of commands"
"SMTPD" 3732 1195 "2015-04-13 21:38:03.939" "101.95.1.102" "RECEIVED: QUIT"
"SMTPD" 3732 1195 "2015-04-13 21:38:03.939" "101.95.1.102" "SENT: 221 goodbye"

The clue is in the log. It is receiving duff response from your client.

The problem is with your client.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

farwell
New user
New user
Posts: 3
Joined: 2015-04-13 15:22

Re: hMailServer cannot send mail to self

Postby farwell » 2015-04-14 03:40

To fix the problem I have installed another client foxmail, Are both outlook and foxmail have problem? If my clients has a problem, why the server in chinese which I connect with using the same two clients work well.

User avatar
mattg
Moderator
Moderator
Posts: 17596
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: hMailServer cannot send mail to self

Postby mattg » 2015-04-14 08:56

It could be firewall, antivirus, or router taht is modifying the SMTP traffic.

It could also be the Great Firewall of China upsetting things, depending on where your server and mail clients are located.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: hMailServer cannot send mail to self

Postby jimimaseye » 2015-04-14 09:59

farwell wrote:To fix the problem I have installed another client foxmail, Are both outlook and foxmail have problem? If my clients has a problem, why the server in chinese which I connect with using the same two clients work well.

#Dont know, but it isnt Hmailserver. Hmailserver is simply reporting what it received. As Matt says, it could be any of the things he mentioned: you need to go through and investigate each one. (We cannot help you with this).

However, to be sure, show us a screen shot of your IP RANGES.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

farwell
New user
New user
Posts: 3
Joined: 2015-04-13 15:22

Re: hMailServer cannot send mail to self

Postby farwell » 2015-04-16 08:39

I found that if I used client in HongKong to connect to the hMailServer in HongKong, there is no problem. So I think this problem may be because of China great firewall. If that is true, whether I can fix problem by using SSL. Does client encrypt the sender and receiver mail addresses in SSL connection?

User avatar
mattg
Moderator
Moderator
Posts: 17596
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: hMailServer cannot send mail to self

Postby mattg » 2015-04-16 15:41

Yep SSL, and a non standard port should help.

The Chinese government seems to have some very smart people working for them though. You still may not beat them.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

nitinkhubani
New user
New user
Posts: 1
Joined: 2017-02-09 07:14

Re: hMailServer cannot send mail to self

Postby nitinkhubani » 2017-02-09 07:17

Were you able to fix the issue? I am getting exact same error;

"SMTPD" 472 8 "2017-02-09 13:11:27.484" "168.63.136.126" "RECEIVED: MAIL FROM: <user@gt.com>"
"SMTPD" 472 8 "2017-02-09 13:11:27.493" "168.63.136.126" "SENT: 250 OK"
"SMTPD" 7604 8 "2017-02-09 13:11:27.541" "168.63.136.126" "RECEIVED: RCPT TO: <user@gt.com>"
"SMTPD" 7604 8 "2017-02-09 13:11:27.553" "168.63.136.126" "SENT: 250 OK"
"SMTPD" 7604 8 "2017-02-09 13:11:27.557" "168.63.136.126" "RECEIVED: "
"SMTPD" 7604 8 "2017-02-09 13:11:27.561" "168.63.136.126" "SENT: 503 Bad sequence of commands"
"SMTPD" 7604 8 "2017-02-09 13:11:27.566" "168.63.136.126" "RECEIVED: ."
"SMTPD" 7604 8 "2017-02-09 13:11:27.571" "168.63.136.126" "SENT: 503 Bad sequence of commands"
"SMTPD" 7604 8 "2017-02-09 13:11:27.576" "168.63.136.126" "RECEIVED: QUIT"
"DEBUG" 7604 "2017-02-09 13:11:27.581" "Deleting message file."
"SMTPD" 7604 8 "2017-02-09 13:11:27.585" "168.63.136.126" "SENT: 221 goodbye"

The server is in China and client outside china...

User avatar
mattg
Moderator
Moderator
Posts: 17596
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: hMailServer cannot send mail to self

Postby mattg » 2017-02-09 08:01

Did you try SSL connections on a non standard port?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation


Return to “Development & alpha discussions”



Who is online

Users browsing this forum: No registered users and 3 guests