> -----Original Message-----
> From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
> us...@postfix.org] On Behalf Of Noel Jones
> Sent: Wednesday, March 04, 2009 2:22 PM
> To: postfix-users@postfix.org
> Subject: Re: restricting who can be sent to.
>
> Carver Banks wrote:
> > Hello,
> > I am in the process of setting up an internal mail server (carver-
> test.mydomain.local) using postfix, dovecot and squirrel mail.
> > I want the users of this system only be able send mail to a few users
> in mydomain.com
> > I imagine that there is an easy way to map this to a file, but I
> can't seem to find anything in my searches.
> >
>
> Here's the general documentation on restricting who can send
> where:
> http://www.postfix.org/RESTRICTION_CLASS_README.html
 I tried the following:
        smtpd_recipient_restrictions = check_sender_access 
hash:/etc/postfix/allowed_recipients reject
but it seems that allows me to restrict the user who is sending not the 
destination address,
what I am trying to accomplish is to have many users of this system be able to 
only email a few addresses, not even each other. I understand if that is not 
possible with postfix, just trying to figure out if that is the case...

>
>
> If this is strictly an internal system, you can use something
> simpler, such as:
>
> smtpd_recipient_restrictions =
>    check_recipient_access hash:/etc/postfix/allowed_recipients
>    reject
>
> where allowed_recipients lists the valid recipients as:
> us...@example.com  OK
> us...@example.com  OK
>
>    -- Noel Jones

Reply via email to