Error "Your host name doesen't match with your IP address" when sending mail

Asked 2 years ago, Updated 2 years ago, 89 views

When I try to mail a server in the domain [email protected] from a php script to bizknow1.com, I get an error similar to the following:

 host mx2.hanmail.net [180.70.93.97] said:454 5.7.1 DXNS3 133.242.155.196: Message refused. 
Your host name doesen't match with your IP address: mail.bizknow1.com 
If you need, please contact [email protected]. (in reply to end of DATA command)

Postfix settings are

myhostname=mail.bizknow1.com
mydomain=bizknow1.com
myorigin=$mydomain

It looks like .The dig results are as follows:

#dig mail.bizknow1.com

;; ANSWER SECTION:
mail.bizknow1.com.14145 INA 133.242.155.196

# dig bizknow1.com

;; ANSWER SECTION:
bizknow1.com.14399 INA 133.242.155.196

# dig-x133.242.155.196

;; ANSWER SECTION:
196.155.242.133.in-addr.arpa.3599 INPTR bizknow1.com.

# dig bizknow1.com mx

;; ANSWER SECTION:
bizknow1.com.14399 IN MX10 bizknow1.com.

How can I fix this error?

Alternatively, the settings are correct, but it takes time to reflect
Does it mean that there is an error?

Please let me know if you know.

linux postfix dns

2022-09-30 20:48

2 Answers

Postfix uses $myhostname as the hostname to declare with the HELO/EHLO command.
I think the other party's MTA verifies that the host name of HELO/EHLO matches the IP address from which it is connected, and rejects it if it does not match.

You can configure the hostname to declare with the HELO/EHLO command with the following parameters:

smtp_hello_name=bizknow1.com


2022-09-30 20:48

Your host name doesen't match with your IP address: mail.bizknow1.com

They say that the result of reverse subtraction is not mail.bizknow1.com, so
Changing the PTR record to 」mail.bizknow1.com に seems to solve this problem.

DNS changes will be cached for the duration of the TTL, so check them later.
If you have changed it but cannot resolve it, you may have a problem with DNS.

If it doesn't seem to work, contact the administrator of the other mail server
Whitelist registration is also a good idea.


2022-09-30 20:48

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.