On Mon, May 30, 2005 at 02:55:35PM +0300, Pasi K�rkk�inen wrote:
> On Mon, May 30, 2005 at 02:28:31PM +0300, Pasi K�rkk�inen wrote:
> > On Wed, May 25, 2005 at 04:23:53PM +0200, Mark Martinec wrote:
> > > > I'm using amavisd-new with postfix. I need to bypass amavis based on
> > > > sender
> > > > address/domain.. What's the best way to do this?
> > >
> > > Possible with the help of Postfix configuration.
> > >
> >
> > > > This needs to be done in postfix? how?
> > >
> > > It is also possible to let Postfix assign a FILTER based on sender
> > > address,
> > > then use a dedicated policy bank in amavisd-new for such senders.
> > > See http://www.ijs.si/software/amavisd/amavisd-new-docs.html#pbanks
> > >
> >
> > I've been trying to figure out how to do this.. but haven't found solution
> > yet.
> >
> > I need to do this:
> >
> > Disable virus scanning (or even whole amavis) for [EMAIL PROTECTED] when
> > he's
> > sending mail to [EMAIL PROTECTED] Encrypted zip's are blocked globally, but
> > I need to allow some people send encrypted zips to some specific recipients.
> >
> > It seems that I cannot assign FILTER in header_checks in postfix to disable
> > the
> > content_filter, because the regexp matches are done per line..
> > "From" and "To" fields are on different lines in the mail, so I cannot match
> > both in the same "rule" using regexps.
> >
> > I could only match the sender OR the recipient, and disable content_filter
> > for them.. but that's too "wide open" system.
> >
> > Any ideas? Thanks!
> >
>
> Hmm.. would this be possible:
>
> In postfix, send all mails to port 10024 for amavis (default/global
> content-filter
> setting), but if sender matches regexp in postfix header_checks, assign
> different
> content-filter (port 10030 for example) for that mail.
Yes, pretty nearly exactly. But you don't need to use a regexp; you
can use a simple sender access map in any Postfix map format such as DB
hash/btree/SQL/whatever:
...
check_sender_access exempt_senders,
...
exempt_senders:
senderdomain.tld FILTER 127.0.0.1:10025
etc.
I have had this working in production for well over a year now.
-- Clifton
--
Clifton Royston -- [EMAIL PROTECTED]
Tiki Technologies Lead Programmer/Software Architect
"I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide..."
-- 'Whip-Smart', Liz Phair
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/