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:
|
|