David Touzeau a écrit :
> Dear
> 
> I have a plan to do this : 
> Some people can send mails to Internet (foreign domains)
> Some people can only send mails to the user local database and not to
> foreign domains.
> 
> Is there a "map" solution to do this behavior ??
> 

smtpd_sender_restrictions =
        check_sender_access hash:/etc/postfix/privileged_sender
        reject_unauth_destination

== privileged_sender
j...@example.com                OK
b...@example.com        OK


if you want more, use restriction classes.

In either case, users can forge the sender address. if this is an issue,
you need SASL authentication, preferably with smtpd_sender_login_maps
(the alternative would be to give no login:pass to "restricted" users).

Reply via email to