...

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



Spudhead
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:
207.126.144.0 - 207.126.159.255

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 :)

MattF
07-20-2009, 01:24 AM
http://www.ipaddresslocation.org/subnet-mask-calculator.php

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:

http://www.postfix.org/SMTPD_ACCESS_README.html
http://www.postfix.org/access.5.html
http://www.postfix.org/cidr_table.5.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum