Great Circle Associates Majordomo-Users
(October 1999)
 

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

Subject: RE: Blocking Attachments
From: Richard Welty <rwelty @ neworks . net>
Date: Wed, 13 Oct 1999 10:41:31 -0400
To: Keith Turgeon <kturgeon @ bbn . com>, majordomo-users @ greatcircle . com

>  I have a quick question. I am not the best with majordomo, 
> but have been
>  running a couple of list for a while now, with success.  
> Right now I have
>  an immediate need to block *ALL* attachments, going to one 
> of my lists.
>  Is there a way to do this?  If so, how would I go about 
> doing it?  Help
>  in this matter would be greatly appreciated!!

you can catch most of them with the following:

1) crank your max message size down to, say, 10000 characters. most
binaries, word documents, excel spreadsheets, etc., are larger than
this. you can manually approve anything that's legit.

2) add the following to the majordomo.cf file global_taboo_header field:

/^Content-Type: multipart/mixed;/i
/^Content-Type: multipart\/alternative;/i
/^Content-Type: multipart\/signed;/i
/^Content-Type:.*text\/html/i
/^Content-Type:.*text\/x-vcard/i
/^Content-Transfer-Encoding: base64/i

this also catches lots of nagging annoyances like html formatted mail,
the netscape "virtual business cards", etc.

3) put the following in global_taboo_body to make sure that rich text
format doesn't leak past the stuff above:

/begin 6\d\d winmail.dat/i

cheers,
  richard

 

Indexed By Date Previous: Re: majordomo-1.94.4 and RedHat Linux
From: "Maurice G. Lafleur" <mlafleur@ommadawn.cegep-heritage.qc.ca>
Next: do_exec_sendmail
From: Christopher Adams <chris@sparkie.osl.state.or.us>
Indexed By Thread Previous: Re: Blocking Attachments
From: "Maurice G. Lafleur" <mlafleur@ommadawn.cegep-heritage.qc.ca>
Next: do_exec_sendmail
From: Christopher Adams <chris@sparkie.osl.state.or.us>

Google
 
Search Internet Search www.greatcircle.com