Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-09-2009, 03:33 PM   PM User | #1
Spudhead
Senior Coder

 
Spudhead's Avatar
 
Join Date: Jun 2002
Location: London, UK
Posts: 1,856
Thanks: 8
Thanked 110 Times in 109 Posts
Spudhead is on a distinguished road
postfix - defining a netmask / IP range

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, 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
Spudhead is offline   Reply With Quote
Old 07-20-2009, 12:24 AM   PM User | #2
MattF
Senior Coder

 
Join Date: Jul 2009
Location: South Yorkshire, England
Posts: 2,322
Thanks: 6
Thanked 304 Times in 303 Posts
MattF will become famous soon enoughMattF will become famous soon enough
http://www.ipaddresslocation.org/sub...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
MattF is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:41 AM.


Advertisement
Log in to turn off these ads.