<quote who="John Clarke">
> On Mon, Sep 15, 2003 at 12:18:03PM +1000, Wim Pranata wrote:
>
> > You can try to use the header_checks "hack" from the
> > README_FILES/FILTER_README eg:
> >
> > /mydomain\.com/ FILTER smtp-amavis:[127.0.0.1]:10024
>
> Thanks, I'll have a look at it.
>
> > I've never tried this before though :-)
>
> I was planning to setup a test virtual domain first anyway so hopefully I
> won't lose any mail :-)
This works really well, if you have a new enough version of postfix to take
advantage of FILTER in header_checks, but it's probably better to use the
transports table.
The Amavis docs include good setup information for general postfix install,
but if you want to do funky things, you'll need to use transports or header
checks.
Here's what I do (in master.cf, for amavisd):
# amavis out
# all mail that you want to scan should go to this transport, most
# likely set up in your transport table or with content_filter. you
# can change the number of concurrent connections, and all that sort
# of stuff too. if you're using content_filter, do this in main.cf:
# content_filter = amavis:[127.0.0.1]:10024
# note that this will affect *ALL* mail
amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
# amavis in
# this is how mail from amavis returns into postfix. note the many
# postfix settings that are 'unset' for this smtpd - that stops all
# kinds of horrible screwups, such as mails being stuck in a scary
# content_filter loop. 8)
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
- Jeff
--
linux.conf.au 2004: Adelaide, Australia http://lca2004.linux.org.au/
"Driving Miss Daisy. Best film of 1989. So said the academy. What does
that tell you?" - Spike Lee
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug