On Thursday 29 October 2009 11:40:34 Brian Evans - Postfix List wrote: > Darek M wrote: > > I'm unsure of what the typical procedure is on this, and didn't find > > anything useful in a web search, but wouldn't it make sense to run SPF > > on the header From as well? Is that something Postfix could be set to > > do? What about triggering some action if the header and envelope From > > are different? > > If you did this, you could not read this message either. The message > header is From you, but the envelope sender is not. > > A more sensible way is to use a policy server, such as policyd-weight or > policyd, to write/use rules to check client vs envelope sender.
No, a policy service does not see the message body. This would require a milter or a content filter. http://www.postfix.org/MILTER_README.html http://www.postfix.org/SMTPD_PROXY_README.html http://www.postfix.org/FILTER_README.html -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header