On 12/16/2016 5:13 AM, L.P.H. van Belle wrote:

> Maybe im totaly incorrect here so correct me if needed.

Yes.

> Now, Im running Debian Wheezy, postfix ( debian backport )
> 2.11.2-1~bpo70+1. Kernel : 3.2.82-1  
> 
> I’ve increased the debug level in postfix for the domains.

Don't use debug logging. Everything you need is in the normal
logging, and the extra noise just confuses you.


> Dec 16 08:47:31 mailhopper postfix/smtpd[16089]: warning: hostname
> sweeper.stater.com does not resolve to address 193.172.8.206: Name
> or service not known
> 
> Dec 16 08:47:32 mailhopper postfix/smtpd[16089]: NOQUEUE: reject:
> RCPT from unknown[193.172.8.206]: 554 5.7.1 <sweeper.stater.com>:
> Helo command rejected: Host not found; from=<serviced...@stater.nl>
> to=<be...@bazuin.nl> proto=ESMTP helo=<sweeper.stater.com>
> 
>  
> 
> This part :
> 
> hostname sweeper.stater.com does not resolve to address
> 193.172.8.206  which is totaly correct.
> 


No, the warning: message always refers to the CLIENT hostname, and
is giving you the reason the CLIENT is labeled as "unknown".


> The line (part of the rejected incomming )
> 
> ...  NOQUEUE: reject: RCPT from unknown[193.172.8.206]: 554 5.7.1
> <sweeper.stater.com>
> 
> More consistant would be : 
> 
> unknown([193.172.8.206]): 554 5.7.1 <sweeper.stater.com>
> 
> Or with correct A/PTR  but incorrect helo

But the A/PTR is not correct, as logged earlier.  That is the reason
the client is labeled unknown.


> To many people are confused by the “unknown” since it can be 2 things:
> 
> Unknown CLIENT hostname
> 
> Unknown HELO hostname

No, the "unknown" always refers to the client, unless it's in the
descriptive text of a reject message.


... reject: {smtp stage} from {client hostname/unknown}[{ipaddr]}:
{reject code} {extended code}; {descriptive text}

Notice the HELO name is never listed other than in the descriptive
text if HELO is the reason for rejection.


> 
> Which give discusions on the fixes.

No fixes are necessary, other than maybe I should write a tutorial
on reading logs.



  -- Noel Jones

Reply via email to