Le 10.02.04, Xavier Maillard a tapoté : | Bonjoir,
'soir. | J'en ai plus que ras le bol de tous ces vers/virus qui polluent mes | boîtes. Ah ça. | Quelqu'un aurait-il une bonne petite recette procmail pour gérer ça ? Plusieurs même. | N'y connaissant rien à procmail, je suis incapable de savoir par où | commencer. http://tnemeth.free.fr/linuxdocs/ section procmail. Pour les recettes : À noter : $TRASH est ma poubelle de mails et $FROM est mon adresse. # Sélection primaire : efficace ! :0: * ^Content-Type: multipart/mixed * !^In-Reply-To: { :0 D * ^SUBJECT:|^FROM:|^TO: { :0 | formail -A "X-TN-TRASH: VIRUS-TROYAN p1" >> $TRASH } :0 * ^(From:.*microsoft|Date-warning:) { :0 | formail -A "X-TN-TRASH: VIRUS-TROYAN p2" >> $TRASH } :0 B * (support\.microsoft\.com|^Content-Type: application/x-msdownload) { :0 | formail -A "X-TN-TRASH: VIRUS-TROYAN p3" >> $TRASH } } :0: *$ !^To:.*$MOI * ^Content-(Type|Disposition):.*name=.*\.(ade|adp|asd|bas|bat|chm|cmd|com|cpl|crt|dbx|dll|exe|hlp|hta|inf|ins|isp|lnk|js|jse|lnk|ocx|mde|mdt|mdw|msc|msi|msp|mst|nws|ops|pcd|pi|pif|prf|reg|scf|scr|sct|shb|shm|shs|swf|uue|vb|vbe|vbs|vbx|vxd|wab|wsc|wsf|wsh) | formail -A "X-TN-TRASH: VIRUS-TROYAN p4" >> $TRASH :0 HB: * ^Subject: (test|hello|hi|Mail Transaction Failed|Mail Delivery System|Error|Status|Server Report) * [nN]ame="(document|readme|doc|text|file|data|test|message|body)\.(zip|pif|scr|exe|cmd|bat)" | formail -A "X-TN-TRASH: VIRUS-TROYAN p5" >> $TRASH Ça devrait faire le plus gros du travail. À toi d'adapter ensuite. Thomas -- BOFH excuse #43: Boss forgot system password.