I'm using Gmail as a spam filter, whereby it forwards mail to hendry@example.com and I use mutt to read my email.

However hendry@example.com accepts mail from everyone currently, so I want to restrict what it accepts to just Google gmail servers. Any recipes for that?

link|improve this question

29% accept rate
feedback

1 Answer

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.

link|improve this answer
1  
This is doable since gmail.com uses spf to list all the outgoing email servers. However, the list of IPs is likely to change at any point so you'd need to be really careful there. – kaerast Aug 10 '10 at 11:55
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.