Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

However 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

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 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.