Per-domain filtering using Bogofilter
Gyepi SAM
gyepi at praxis-sw.com
Mon Aug 25 17:17:32 CEST 2003
On Mon, Aug 25, 2003 at 05:26:57PM +0200, Noor Dawod wrote:
> I'm using Postfix, but that's not the matter. A simple shell that do
> (bogofilter -p | sendmail -i "$@") is enough to wrap Postfix's normal
> SMTP traffic, but it's harder to do a per-domain filtering.
What you want can be done with:
(bogofilter -d "/home/${DOMAIN}/.bogofilter" -p | sendmail -i "$@")
Assuming that each domain has a home directory in /home and you keep the
bogofilter databases in .bogofilter.
Postfix exports several environment variables during delivery. Check out
http://www.postfix.org/local.8.html.
> | I strongly disagree with adding this feature when a shell
> | script can do the job just as well.
>
> As you like... but I think it's a good and demanding idea.
I don't disagree with the idea, just with putting the functionality in
bogofilter. As it turns out, you may not even need a shell script at
all.
-Gyepi
More information about the bogofilter-dev
mailing list