7 msgPostfix 2.2.5 on latest Solaris 9 x86
5 msgPostfix Relay, and Pop-before-smtp
12 msgNewb Question
13 msgBest defense against this?
1 msgundelivered mail problem - SOLVED
4 msgLegal local-part
3 msgvirtual_alias_domains with mysql: 'User unknown...
6 msgSubmission port (587): howto to use differente ...
5 msgWhen does smtpd_reject_unlisted_recipient kick in?
4 msgPostfix 'falling back' on sasldb? I don't want ...
3 msgNested access maps (I think ;))
3 msgSuppression of encoding bad header function in ...
4 msgRE: Catchall ??
3 msgproblem with .forward files + forwarding loops
5 msgPostfix Strange Behaviours

Content filter question, based upon auth'ed or not
\ Gary W. Smith (20 Sep 2007)
. \ Jesse Long (21 Sep 2007)
. . \ Duane Hill (21 Sep 2007)
. . . \ mouss (21 Sep 2007)
. . . . \ Gary W. Smith (23 Sep 2007)
. \ Duane Hill (21 Sep 2007)
. \ Gary W. Smith (21 Sep 2007)

28 msgMail stuck in active queue for loooong time
11 msgHow to stop a user from changing the 'From:' he...
10 msg[Semi-OT] blocked port 465, anywhere?
7 msgchroot problems on Nexenta (OpenSolaris)
Subject:RE: Content filter question, based upon auth'ed or not
Group:Postfix-users
From:Gary W. Smith
Date:23 Sep 2007


 
> >> Hi Gary,
> >>
> >> The policy delegation protocol informs the policy service of the
> >> sasl_username, and policy servers may respond with "filter
> >> transport:destination" overriding the default content filter. So,
> maybe a
> >> small custom policy service that sets a special filter for unauthed
> >> emails
> >> would suffice?
> >
> > I never thought about using a policy. Depending on if you needed
> > detailed information within the headers and/or body, using the
policy
> > would be faster as specific information is passed to the policy
> server
> > (not the entire message).
> >
>
>
> there is no need for a policy service:
>
> smtpd_recipient_restrictions =
> check_client_access pcre:/etc/postfix/filter_auth
> permit_sasl_authenticated
> check_client_access pcre:/etc/postfix/filter_mynetworks
> permit_mynetworks
> check_client_access pcre:/etc/postfix/filter_default
> ...
>
> == filter_auth:
> /./ FILTER scan1:blah
>
> == filter_mynetworks:
> /./ FILTER scan2:bleh
>
> == filter_default:
> /./ FILTER scan3:bloh
>

Mouss,

This is real useful. I'll play around with it and see what I can come
up with.

Thanks,

Gary


© 2004-2008 readlist.com