On Wed, Jan 26, 2011 at 06:14:26PM +0100, polloxx wrote: > > > We want to implement blacklisting sender email addresses on a per-domain > > > basis. I know it can be done by Amavis but I would like to implement > > > this directly in Postfix. Is this possible? > > > > Yes, using smtpd_restriction_classes. ?General usage info can be found here: > > http://www.postfix.org/RESTRICTION_CLASS_README.html > > As far as I can see this approach works with two lookup tables. Can we > add domains dynamicly, without the need to create a new table when a > new domain is added?
If you have a fixed "menu" of restriction settings, "spam-lover", "spam-hater", "spam-neutral", ... you can add as many domains as you wish by mapping each domain to one of the fixed restriction settings. If you want fully custom settings for each domain, and want to scale this to many domains, Postfix is not the right tool, you need a milter or pre-queue proxy filter. -- Viktor.