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 want to set up Postfix to relay mail from a group of webservers. I would like to limit senders by IP so I can restrict the box to only my webservers, so I don't have an open relay and don't have to worry about authentication. So, what I guess I need is to limit inbound access but allow mail to be sent to any outbound address. I've looked through the docs and don't even know where to start, so any tips would be appreciated.


share|improve this question
up vote 2 down vote accepted

Start with the accepted answer to Setting up a postfix email server. Where the mynetworks in that example is set to you will want to list the ips of your other servers as well. So something like:

mynetworks =,,
share|improve this answer
thanks very much! that link and your suggestion did the trick. – BenGC Jan 6 '11 at 3:44

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.