On 8/24/2013 3:34 AM, Joy wrote: > Hi Experts, > > I am using Postfix with LDAP backend and willing to implement per > user delivery restriction while sending mail to outside domain. Like:- > > User1 can send mail to all domain. > User2 can send mail only to a...@example.com <mailto:a...@example.com> > User3 can send mail to 1...@example.com > <mailto:1...@example.com> and yahoo.com <http://yahoo.com/> > > Is there any way to implement the same. >
The postfix feature for this is described in http://www.postfix.org/RESTRICTION_CLASS_README.html The restriction class method get rather awkward if you define more than a dozen or so classes. In that case you would need to use an external policy service. http://www.postfix.org/SMTPD_POLICY_README.html Some pre-made policy services are listed here, or you can use one of these as a basis for something of your own http://www.postfix.org/addon.html#policy -- Noel Jones