Mail delivery is successful if I do it from localhost.
Unable to send email from an application after moving to cloudflare.
Error is “A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ipaddress”
The problem is at your mail server or your mail client. Cloudflare settings are correct (assuming that is your mail server IP address) and the mail server there is accepting connections.
dig +short camhdk.com mx
0 mail.camhdk.com.
dig +short mail.camhdk.com
103.191.208.118
telnet mail.camhdk.com 25
Trying 103.191.208.118...
Connected to mail.camhdk.com.
Escape character is '^]'.
220 UNITE.home ESMTP MailEnable Service, Version: 10.46-- ready at 11/16/23 00:06:37
quit
221 Service closing transmission channel
telnet mail.camhdk.com 587
Trying 103.191.208.118...
Connected to mail.camhdk.com.
Escape character is '^]'.
220 UNITE.home ESMTP MailEnable Service, Version: 10.46-- ready at 11/16/23 00:07:59