View Full Version : postfix - defining a netmask / IP range

07-09-2009, 04:33 PM
I need to alter a Postfix instance to only allow connections from Google's "Postini" service; specifically from the IP range: -

From their docs (http://www.google.com/support/appsecurity/bin/answer.py?hl=en&answer=139438), it seems I have to:

1. In the file /etc/postifix/main.cf file, set "mynetworks" to include all trusted local relay nets and the message security service's IP range.
2. Set: smtpd_client_restrictions = permit_mynetworks, reject.

Of these, the one I'm having trouble with is formatting the IP range above into something that makes sense to Postfix. Can anyone help?

Thanks :)

07-20-2009, 01:24 AM

You'll find plenty of other tools for generating the info on Google.

Are you wanting to merely receive mail from the Postini service on that Postfix instance? You don't want to add their I.P's to mynetworks as that will also allow them to relay through your server.

Have a read of these documents: