Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts

    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

  • #2
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •