Re: smtpd_restriction_classes Question

From: Jan P. Kessler (no email)
Date: Thu Mar 01 2007 - 04:01:27 EST

  • Next message: Eray Aslan: "Re: smtpd_restriction_classes Question"

    > I've bought the O'Reilly book about Postfix and I see that I can create
    > my own restriction classes.
    > My question is the following: can I use this to choose which computer
    > are allowed to use my relay server to send mail to Internet and which
    > are not ?

    You can BUT you don't need that nuclear rocket to kill some sparrows ;)
    Just set your mynetworks correctly:

    mynetworks = 192.168.1.0/24, !192.168.1.2, !192.168.1.3
    smtpd_recipient_restrictions = permit_mynetworks
                                   reject_unauth_destination

    This allows relaying to 192.168.1/24 but not for .2 and .3. If the list
    grows you can put that information into files (i'd suggest "cidr" type
    dbs).

    note: you might want to add some other fancy restrictions.


  • Next message: Eray Aslan: "Re: smtpd_restriction_classes Question"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD