Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just noticed my postfix setup has been having a problem for some time now.

When receiving (some) mail from German freemail provider, the following headers are found inside the mail postfix passes on to the MDA:

Received: from (unknown)
        by mail.<mydomain>.de(Postfix 2.9.6/8.13.0) with SMTP id unknown
        Wed, 29 Jan 2014 09:00:14 +0100
        (envelope-from <>
Received: from 3capp-webde-bs39.server.lan ([]) by
 mriweb.server.lan (mriweb002) with ESMTP (Nemesis) id
 ***** for <>; Wed, 29 Jan 2014 09:01:01
Received: from [##.###.##.###] by 3capp-webde-bs39.server.lan with HTTP; Wed
 Jan 29 09:01:01 CET 2014

This is what's in the logs:

postfix/smtpd[16230]: connect from[]
postfix/smtpd[16230]: 5C17E14C10A6:[]
postfix/cleanup[16238]: 5C17E14C10A6: message-id=<trinity-b7f12c80-a158-43f9-8266-583a7b0533bd-############@3capp-webde-bs39>
postfix/qmgr[4490]: 5C17E14C10A6: from=<>, size=6402, nrcpt=1 (queue active)
postfix/smtpd[16230]: disconnect from[]
postfix/lmtp[16242]: 5C17E14C10A6: to=<>, relay=mail.<mydomain>.de[private/dovecot-lmtp], delay=1, delays=0.81/0/0/0.22, dsn=2.0.0, status=sent (250 2.0.0 <> qO51H+K06FKAPwAAsCbVSQ Saved)
postfix/qmgr[4490]: 5C17E14C10A6: removed

The problem is that spamassassin now tries to do RBL checks on the first hop IP, because the IP address from last hop isn't available and the second one is a private network. First hop is of course dynamic, so all mail gets marked as spam.

When trying to reproduce this from my own account the lines look like:

Received: from ( [])
        by mail.<mydomain>.de (Postfix) with ESMTP id ***
        for <>; Sat,  8 Feb 2014 17:26:11 +0100 (CET)

This is exactly the outcome I expect.

Any clues as to why postfix doesn't put the client IP in the Received header?

Thanks for any help!

share|improve this question

migrated from Feb 9 '14 at 6:00

This question came from our site for computer enthusiasts and power users.

What's in the server logs? – Michael Hampton Feb 9 '14 at 6:07
... got to learn that I can't put log contents in comments... see OP – Oliver Rahner Feb 9 '14 at 8:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.