On 1/27/2011 7:22 AM, polloxx wrote:
On Wed, Jan 26, 2011 at 6:20 PM, Victor Duchovni
<victor.ducho...@morganstanley.com> wrote:
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.
I want to be able to block senders on customer (domain) request:
block a...@spam.tld, b...@evil.tld for domain customer1.tld
block c...@hell.tld for domain customer2.tlc etc
This can be implemented with smtpd_restriction_classes,
although it will get cumbersome with more than a handful of
domains.
Alternatives are a milter, an smtpd_proxy_filter transparent
proxy, or a policy service (maybe one of these can be used
http://www.postfix.org/addon.html#policy).
-- Noel Jones