450 4.7.1 Client host rejected: cannot find your hostname
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
450 4.7.1 Client host rejected: cannot find your hostname
Hello All,
My postfix server is behind nat (10.100.100.6 <> 202.1.2.3)
my ip masquerade is 202.7.8.9
mydomain.com PTR address is 202.7.8.9
and mail.mydomain.com PTR address is 202.7.8.9
why I am unable to send email to a domain (ie. otherdomain.com)
with the following bounced back message:
This is the mail system at host mail.mydomain.com
I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The mail system
<someone@otherdomain.com>: host mail.otherdomain.com[101.a.b.c] said: 450 4.7.1 Client
host rejected: cannot find your hostname, [202.1.2.3] (in reply to RCPT
TO command)
Likely because it found your 202.1.2.3 as your mail server and did NOT find a PTR back to a name for that IP. A lot of sites these days reject mail coming from IPs that have no PTR records. Some even reject if they consider the reverse as "generic" which is the default for many reverse lookups. You need to put in a PTR that is specific to the purpose of this IP.
Is 202.1.2.3 what you have in your MX record?
Do you have a PTR for 202.1.2.3?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.