Great Circle Associates Majordomo-Users
(November 2000)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Blocking messages without the list address in To: or CC:
From: Dan Liston <dliston @ netscape . com>
Organization: iPlanet E-Commerce Solutions, A Sun Netscape Alliance
Date: Fri, 24 Nov 2000 17:05:46 -0600
To: Will Bryant <will @ core-dev . co . nz>
Cc: majordomo-users @ GreatCircle . COM
References: <4.3.2.7.2.20001123232044.0531beb0@penguin>

I use procmail to determine if a message is to my list alias.  Instead of 
using resend in the alias, I use it in the procmail filter like so;

test:   "|/usr/local/bin/procmail -f- /var/lib/majordomo/filters/test" 

with the contents of the procmail filter itself (test) as such;

:0fhw
* !^TO_test@(example|sample)\.com
| formail -I "X-ApprovalRequired: true"

:0
| /usr/lib/majordomo/wrapper resend -l test test-outgoing,nobody

then in my $global_taboo_headers filter in majordomo.cf, I add;

/^X-ApprovalRequired: true$/i

Procmail catches any messages not to my list and add the header
that in turn gets caught by majordomo.  The message is BOUNCEd to
the majordomo owner for the taboo header.  If you want the message
to bounce to the list owner for examination, set the taboo_header
in the listname.config file instead of majordomo.cf.

Dan Liston

Will Bryant wrote:
> 
> Much/most spam is sent out in bulk such that the recipient addresses aren't
> put in the To: header - as if they'd been BCC'd on the mail.
> 
> Is there a way to write a taboo_header rule so that it will match messages
> which do _not_ have a To: mylist@mydomain.com or CC: mylist@mydomain.com
> header?
> 
> Alternately, is there an good way to write something to do the job?  Maybe
> another thing like resend, for this specific task?
> 
> (I know the usual solution is to restrict_post, but this technique would be
> a good 90% solution for those of us who want/need to keep our lists open).



References:
Indexed By Date Previous: RE: Creating a new list the easy way
From: "TOTK.com Sports" <rom@totk.com>
Next: Re:
From: Dan Liston <dliston@netscape.com>
Indexed By Thread Previous: Blocking messages without the list address in To: or CC:
From: Will Bryant <will@core-dev.co.nz>
Next: [no subject]
From: "Dayel" <dulacj@acronet.net>

Google
 
Search Internet Search www.greatcircle.com