Meshbah Uddin Ahmed a écrit : > hi, > > i am using postfix. i want to restrict my users that they cannot send > mail using other domain. Like my domain is- abc.com <http://abc.com>, > nobody of my users can send mail using yahoo.com/gmail > <http://yahoo.com/gmail> com. but have to receive mail from other domains. > > is it possible, if so how, pls help.
define "my users"? are they sending mail from mynetworks? do they authenticated? ... anyway, the following will prevent them from using a sender in "another" domain unless mail is "local" (delivered to one of your domains): smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/mydomains reject_unauth_destination == mydomains mydomain1.example OK mydomain2.example OK