I'm using Gmail as a spam filter, whereby it forwards mail to [email protected] and I use mutt to read my email.
However [email protected] accepts mail from everyone currently, so I want to restrict what it accepts to just Google gmail servers. Any recipes for that?
You can use the restriction check_client_access for this purpose. But you'll need to know the IP address or at least an IP address range of GMail's SMTP hosts to make it work.