I'm running postfix 3.1 and I just got some email from 183.8.202.206 that said it came from gmail. A quick lookup shows that unless Google has been sold to ChinaNet, that's probably a lie.
Most of the spam that I get comes from a mismatched IP and domain name - is there a way to configure postfix to say something like, "Only accept email from gmail/yahoo/outlook/hotmail addresses if it comes from these IP addresses"?
I've read the postfix docs time and time again, but I don't recall seeing that as a possibility.
This is the problem that SPF solves, and you can integrate it into Postfix with one of two SPF validating daemons for Postfix. The Python version is probably the best choice.
The installation will vary a bit depending on your Linux distribution, but in general you'll do what's in Ubuntu's tutorial:
Edit main.cf and find section
Add this
Actualy this section has many options
And in case of proper configuration your postfix you can read this article
http://www.postfix.org/ADDRESS_VERIFICATION_README.html
Best Regards!