Carver Banks a écrit :
> Or so I thought..., that did restrict all mail to the internal recipients as 
> well.
> 
> I need anyone in mydomain.com to be able to email anyone in mydomain.local, 
> but I need users on mydomain.local to only be allowed to email a few people 
> in mydomain.com, and none of the other members of mydoman.local.
> 

then you need to read the first part of Noel post: the part about
restriction classes (follow the link and read).

if what you want is:
- sender from allowed.example can send anywhere
- nobody else should be able to send to restricted.example

then you can do it with:

<WARNING>
If you use this, please do not interchange "sender" and "recipient". In
particular, this is to be used under smtpd_SENDER_restrictions.
</WARNING>

smtpd_sender_restrictions =
        check_sender_access hash:/etc/postfix/allowed_sender
        check_recipient_access hash:/etc/postfix/restricted_recipient

== restricted_recipient
local.example           recipient_restricted

== restricted_recipient
allowed.example         OK


If the config you're trying to setup is different, then you'll have to
spend some time so that you can describe it precisely and clearly. (This
isn't really the place for requirement elicitation ;-p)


> I think postfix may not be able to accomplish what I desire, if I am wrong 
> please correct me.
> 

Reply via email to