On 21/Sep/03 22:33 +0200, samuel desseaux wrote:
> salut!
> 
> depuis 2 jours, je suis emmerd� avec une flopp�e de mails sign�s 
> "Microsoft" et � y regarder de plus pr�s, j'ai bien l'impression que 
> c'est le virus swen.
> 
> J'ai appliqu� des filtres sous Mozilla mais c'est qu'une solution 
> partielle. Y-a-t-il une solution me permettant d'�viter de t�l�charger 
> ces mails et plus largement d'�viter ce genre de merde?

Postfix :

mime_header_checks = regexp:/etc/postfix/mime_header_checks

mime_header_checks :

/filename=\"?(.*)\.(bat|chm|cmd|com|do|exe|hta|jse|rm|scr|pif|vbe|vbs|vxd|xl)\"?$/
   REJECT For security reasons we reject attachments of this type
/^\s*Content-(Disposition|Type).*name\s*=\s*"?(.+\.(lnk|asd|hlp|ocx|reg|bat|c[ho]m|cmd|exe|dll|vxd|pif|scr|hta|jse?|sh[mbs]|vb[esx]|ws[fh]|wav|mov|wmf|xl))"?\s*$/
   REJECT Attachment type not  allowed. File "$2" has the unacceptable
   extension "$3"

hope this helps,

adulau

-- 
--                   Alexandre Dulaunoy (adulau) -- http://www.foo.be/
--         http://pgp.ael.be:11371/pks/lookup?op=get&search=0x44E6CBCD
--         "Knowledge can create problems, it is not through ignorance
--                                that we can solve them" Isaac Asimov

Attachment: pgp00000.pgp
Description: PGP signature

_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: efnet.unixtech.be:6667 - #unixtech

Répondre à