RE: What does Postfix stamp...

2011-09-09 Thread Murray S. Kucherawy
> -Original Message-
> From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
> us...@postfix.org] On Behalf Of Kris Deugau
> Sent: Friday, September 09, 2011 6:32 AM
> To: postfix-users@postfix.org
> Subject: Re: What does Postfix stamp...
> 
> Not to mention, at least in my experience it's the IP that introduced
> the message to the Internet (ie, the sending client's IP, or webmail
> user's IP), not the IP that connected to your server.

More often than not, that's what people actually want because it identifies who 
really sent the message, not who last handled it before you got it.  But it's 
unreliable for all kinds of reasons:

- it could be forged to indicate it came from a legit source when it didn't
- there could be more than one of them, so which one do you believe?
- it might be stripped in transit
- it's non-standard

If its value can't be trusted, you should just ignore it.



Re: What does Postfix stamp...

2011-09-09 Thread Kris Deugau

Murray S. Kucherawy wrote:

X-Originating-IP: isn't standard, so I'm not surprised postfix isn't adding it 
by default.  And I wouldn't trust it anyway; how do you know it contains a true 
value?


Not to mention, at least in my experience it's the IP that introduced 
the message to the Internet (ie, the sending client's IP, or webmail 
user's IP), not the IP that connected to your server.


-kgd


Re: What does Postfix stamp...

2011-09-08 Thread Wietse Venema
Michael C. Robinson:
> What does Postfix stamp in the email headers when email comes into it?

As required by the SMTP standard (RFC 821, RFC 2821, RFC 5321),
Postfix prepends exactly one Received: header.

Received: from helo_name (fcrdns_name [address]) ...

Wietse


RE: What does Postfix stamp...

2011-09-08 Thread Murray S. Kucherawy
> -Original Message-
> From: owner-postfix-us...@postfix.org 
> [mailto:owner-postfix-us...@postfix.org] On Behalf Of Michael C. Robinson
> Sent: Thursday, September 08, 2011 4:31 PM
> To: postfix-users@postfix.org
> Subject: What does Postfix stamp...
> 
> With amavis, I guess that postfix receives a message, throws it to
> amavis, and then amavis throws it back to postfix on another port.
> Why isn't postfix stamping the remote IP address before it hands the
> email off?

X-Originating-IP: isn't standard, so I'm not surprised postfix isn't adding it 
by default.  And I wouldn't trust it anyway; how do you know it contains a true 
value?

However, Received: is, which very likely contains the information you want, and 
I'm fairly certain postfix does add that.