1

I'm trying to find why postfix rejected the incoming mail the line from mail.log is:

NOQUEUE: reject: RCPT from unknown[xxx.xxx.xxx.1]: 450 4.7.1 Client host rejected: cannot find your hostname, [xxx.xxx.xxx.1]; from=<some@email.address> to=<another@email.address> proto=ESMTP helo=<yyy.yyy.yyy.yyy>

host yyy.yyy.yyy.yyy returns:

yyy.yyy.yyy.yyy has address xxx.xxx.xxx.2

Does postfix reject incoming email because of different IPs ( xxx.xxx.xxx.1 vs xxx.xxx.xxx.2) ?

Many thanks

2 Answers2

2

I'm thinking the RCPT from unknown could be a factor - the mail session should go something like this:

Out: 220 yourpostfix.yourdomain.com ESMTP Postfix
In:  HELO mailserver.senderdomain.com
Out: 250 yourpostfix.yourdomain.com
In:  MAIL From: <someone@senderdomain.com>
Out: 250 Ok
In:  RCPT To:<recipient@yourdomain.com>

Postfix at this point will perform a DNS lookup on mailserver.senderdomain.com and if the lookup matches the ip of the server connected it will proceed, otherwise after you enter RCPT TO..... you will get:

Out: 450 Client host rejected: cannot find your hostname, [x.x.x.x]

The real way to fix this is by ensuring you can look up the mailservers in the DNS (should have PTR records as well as A records).

A crude fix is to edit your postfix config so this check is not enforced.

Robin Gill
  • 2,503
  • 13
  • 13
0

This problem could be caused by several factors, please check the following:

1) On the Postfix configuration file, ensure that the mail url is properly setup as it is on your DNS file configuration, it should follow something like : mail.yourdomain.com.

2) Enable Open Relay with Authenticated users (users that can send/receive should be on an specific group), that way, you will be able to, send emails from any location with your user or any user registered on your system. Be carefull while configuring open Relay, because it can be used to send fake mail.

3) Ensure the ip address is not blocked in Iptables.

GersonO
  • 164
  • 6
  • Hi Gerson, the problem is not that postfix doesn't work at all. I', just investigating why emails from that particular address are being rejected. My company domain & emails work so this question is not related to postfix configuration on my server. – Kuba Zygmunt Feb 20 '12 at 21:17