Bluehost.com Web Hosting $6.95

Re: "Local whitelist" for the next restriction possible?

This is a discussion on Re: "Local whitelist" for the next restriction possible? within the mailing.postfix.users forums, part of the Mail Servers and Related category; On Tue, 15 Jun 2004, Michael Tokarev wrote: > For quite some time now I'm thinking about a sort ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-15-2004
Victor.Duchovni@MorganStanley.com
 
Posts: n/a
Default Re: "Local whitelist" for the next restriction possible?

On Tue, 15 Jun 2004, Michael Tokarev wrote:

> For quite some time now I'm thinking about a sort of "local whitelist"
> for a given reject_mumble restriction. Ie, sometimes, a rule catches a
> good amount of spam but catches some legitimate hosts at the same time.
> So, I want to do something like:
>
> reject_rbl_client bl.example.com but not if
> client is a.b.c.d or c.d.e.f.
>
> Comments?
>


This is a sensible request. Until something along these lines is
implemented, one can always implement a "skip" whitelist entry as follows:


smtpd_restriction_classes =
rr_1, rr_2, rr_3, ..., rr_N

smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated
reject_unauth_destination,
rr_1

rr_1 =
check_mumble_access hash:/etc/postfix/rr_1_access,
... rr_1 rules ...
rr_2

rr_2 =
check_mumble_access hash:/etc/postfix/rr_2_access,
... rr_2 rules
rr_3

rr_N =
check_mumble_access hash:/etc/postfix/rr_N_access,
... rr_N rules ...

Any of the rr_K_access tables can skip to a later rule with a RHS entry of
rr_K+1! This is ugly.

A more general:

if_ok restriction
some_other_restriction

if_defer restriction
next_restriction

if_permit restriction
next-restriction

would be a big win. The hard part is not losing your mind while trying to
ensure robust semantics with defer_if_permit, defer_if_reject, ...

Probably grouping would have to be introduced

if_ok { list } { list }
if_defer { list } { list }
...

Do you want to propose a more fleshed out design?

--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomo@postfix.org?body=unsubscribe%20p ostfix-users>
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:33 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0