Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|improve this answer
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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