From: KENNEDY VAN DAM Eric (no email)
Date: Thu Mar 01 2007 - 05:34:08 EST
> -----Message d'origine-----
> De : Jan P. Kessler [mailto:]
> Envoyé : jeudi 1 mars 2007 10:01
> À : KENNEDY VAN DAM Eric
> Cc : postfix
> Objet : 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.
Sure but it is not so simple.
My mail relay is already configured ton only allow some servers to relay but... All of them can relay to the main mail server and only some of them can relay to the outside (using the external mail relay).
-- Kennedy van Dam Eric Unix/Storage Team Phone: +32 (0)2 529 3375 Mail:
|
|
|