On Fri, 12 Sep 2003, John Clarke wrote:

> Hi all,
> 
> One for the postfix gurus ...
> 
> I have a mail server, running postfix, handling mail for the primary
> domain and several virtual domains.  I want to setup amavisd (with
> clamav) to scan mail for only one of those domains.
> 
> I've found lots of info on how to scan mail for all domains, but I've
> not been able to come up with a Google incantation to find any
> information on how to do it for just one (or maybe it's just not out
> there) :-(
> 
> Is it possible to configure postfix to pass mail to amavisd for only
> one of its virtual domains, and if so, how (or where do I look to find
> out how)?

I'm not a postfix guru but I'll try to answer this anyway :)

If you have more than 1 IP address on the box that would be very easy, you just
need to add another instance of smtpd in the master.cf, and assign the MX to
that IP address for the domains you want to filter, eg:

smtp    inet    n       -       y       -       -       smtpd
1.2.3.4:smtp inet n - y - - smtpd
 -o content_filter=smtp-amavis:[127.0.0.1]:10024

There are some documentations about content filtering in the postfix tarball,
README_FILES/FILTER_README, conf/sample-filter.cf


wim

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to