Re: Allowing users to send mail only to their domain
- Mateusz Kijowski wrote:
> Hi list,yes.
> Let's say I have following virtual users:
> I want to restrict users from subdomains to send only to their subdomain and
> the base domain. In other words I want jane to be able to send to john, janet
> and joe, but not to jack.
> Reading http://www.postfix.org/RESTRICTION_CLASS_README.html#external gave me
> some insight, but the config described there doesn't seem valid for me. I
> keep all the information about the virtual users in OpenLDAP. I am most
> propably wrong, but to get the desired behaviour I would have to specify a
> smtpd_restriction_class for each subdomain either manually or somehow
> auto-generate it.
the alternative is to write a policy daemon.
> Maybe there is a much simpler approach I don't see. Thanks in adance for any
> Mateusz Kijowski