filter.yaml AntiSpam
filter.yaml AntiSpam es una lista escrita en lenguaje YAML para que puedan filtrar el correo electrónico basura que se le escapa al Apache SpamAssasin, ya que éste no es infalible.
Lo que me motiva a publicar esta lista es que están arreciando enormemente con el correo basura (email spamming) sobrepasando incluso las habilidades del ya comentado Apache Spamassasin.
¿En que consiste este filtro? Yo decidí filtrar por dominio del correo electrónico del que me envia el mensaje no deseado ni solicitado, si cumple con la regla nuestro servidor lo envia al dispositivo \dev\null, un agujero negro creado especialmente en Unix/Linux a tal efecto. Esos dominios los agrego manualmente y por medio de cPanel se va guardando automáticamente en un archivo llamado filter.yaml
Dicho archivo está alojado en la carpeta etc donde tengan alojada su página web, la nomenclatura es la siguiente:
\etc\sudominio\suusuario\filter.yaml
En mi caso tengo varios dominios alojados en el mismo servidor y a su vez tengo varias cuentas de correo electrónico en cada uno de esos dominios. Para simplificar el trabajo lo que hago es que copio la lista principal, la que trabajo manualmente, a cada uno de los buzones que tiene cada dominio. Eso ahorra trabajo. Imagino habrá una opción para filtrar globalmente -o al menos dominio por dominio- pero aún no aprendo a hacer eso, quien lo sepa sientase libre de comentar abajo.
Yo admiro a quien sabe más que yo, y lo reconozco públicamente, es loable el trabajo de Mister Jacek Stanislawski quien genera un filter.yaml por medio de Phyton consultando una base de datos basada en geolocalización de direcciones ip. Fascinante. Aunque no lo he probado, IMAGINO QUE FUNCIONA. Admirable. 😯
Así que si piensan que «pierdo el tiempo en esto» pues a ver que ya hay otros que le han echado muchísimo más «coco» que yo.
Sin más pues, he aquí la dichosa lista, espero les se útil en algo (esta la iremos ampliando con el tiempo):
--- filter: - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_163 rules: - match: contains opt: or part: "$header_from:" val: 163 unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_aaa rules: - match: contains opt: or part: "$header_from:" val: aaa unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_achievedate rules: - match: contains opt: or part: "$header_from:" val: achievedate unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_adsector rules: - match: contains opt: or part: "$header_from:" val: adsector unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_agareebeth rules: - match: contains opt: or part: "$header_from:" val: agareebeth unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_algreens rules: - match: contains opt: or part: "$header_from:" val: algreens unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_apartmani rules: - match: contains opt: or part: "$header_from:" val: apartmani unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_aperak rules: - match: contains opt: or part: "$header_from:" val: aperak unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_argesp rules: - match: contains opt: or part: "$header_from:" val: argesp unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_aduces rules: - match: contains opt: or part: "$header_from:" val: aduces unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_badoo rules: - match: contains opt: or part: "$header_from:" val: badoo unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_basicunion rules: - match: contains opt: or part: "$header_from:" val: basicunion unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_benfieldminerals rules: - match: contains opt: or part: "$header_from:" val: benfieldminerals unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_breify rules: - match: contains opt: or part: "$header_from:" val: breify unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_bubbleup rules: - match: contains opt: or part: "$header_from:" val: bubbleup unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_cabpad rules: - match: contains opt: or part: "$header_from:" val: cabpad unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_caednalice rules: - match: contains opt: or part: "$header_from:" val: caednalice unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_cercocerco rules: - match: contains opt: or part: "$header_from:" val: cercocerco unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_clipperadvantage rules: - match: contains opt: or part: "$header_from:" val: clipperadvantage unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_consibu rules: - match: contains opt: or part: "$header_from:" val: consibu unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_consumerprodss rules: - match: contains opt: or part: "$header_from:" val: consumerprodss unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_cuckas rules: - match: contains opt: or part: "$header_from:" val: cuckas unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_destinyventures rules: - match: contains opt: or part: "$header_from:" val: destinyventures unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_dibloranal rules: - match: contains opt: or part: "$header_from:" val: dibloranal unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_dlfcityrwa rules: - match: contains opt: or part: "$header_from:" val: dlfcityrwa unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_dnesensate rules: - match: contains opt: or part: "$header_from:" val: dnesensate unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_donesite rules: - match: contains opt: or part: "$header_from:" val: donesite unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_duclipitto rules: - match: contains opt: or part: "$header_from:" val: duclipitto unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_dunesexpress rules: - match: contains opt: or part: "$header_from:" val: dunesexpress unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_drmommywrites rules: - match: contains opt: or part: "$header_from:" val: drmommywrites unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_eicp rules: - match: contains opt: or part: "$header_from:" val: eicp unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_ejects rules: - match: contains opt: or part: "$header_from:" val: ejects unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_empowernetworkespanol rules: - match: contains opt: or part: "$header_from:" val: empowernetworkespanol unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_eventfiller rules: - match: contains opt: or part: "$header_from:" val: eventfiller unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_fakistra rules: - match: contains opt: or part: "$header_from:" val: fakistra unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_fatlossknows rules: - match: contains opt: or part: "$header_from:" val: fatlossknows unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_foodpoll rules: - match: contains opt: or part: "$header_from:" val: foodpoll unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_fullassociation rules: - match: contains opt: or part: "$header_from:" val: fullassociation unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_gecrag rules: - match: contains opt: or part: "$header_from:" val: gecrag unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_globuslead rules: - match: contains opt: or part: "$header_from:" val: globuslead unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_haurub rules: - match: contains opt: or part: "$header_from:" val: haurub unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_highdensityfoam rules: - match: contains opt: or part: "$header_from:" val: highdensityfoam unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_highlandunion rules: - match: contains opt: or part: "$header_from:" val: highlandunion unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_highrivermedia rules: - match: contains opt: or part: "$header_from:" val: highrivermedia unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_hkyejian08@hotmail.com rules: - match: is opt: or part: "$header_from:" val: hkyejian08@hotmail.com unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_htni rules: - match: contains opt: or part: "$header_from:" val: htni unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_hubverse rules: - match: contains opt: or part: "$header_from:" val: hubverse unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_hwdubai rules: - match: contains opt: or part: "$header_from:" val: hwdubai unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_iklanmantop rules: - match: contains opt: or part: "$header_from:" val: iklanmantop unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_imabree rules: - match: contains opt: or part: "$header_from:" val: imabree unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_inspiredecisions rules: - match: contains opt: or part: "$header_from:" val: inspiredecisions unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_jumphere rules: - match: contains opt: or part: "$header_from:" val: jumphere unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_kasago rules: - match: contains opt: or part: "$header_from:" val: kasago unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_kidozo rules: - match: contains opt: or part: "$header_from:" val: kidozo unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_latestlevel rules: - match: contains opt: or part: "$header_from:" val: latestlevel unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_leadclick rules: - match: contains opt: or part: "$header_from:" val: leadclick unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_leadfirst rules: - match: contains opt: or part: "$header_from:" val: leadfirst unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_lifecare-rx rules: - match: contains opt: or part: "$header_from:" val: lifecare-rx unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_lilythai rules: - match: contains opt: or part: "$header_from:" val: lilythai unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_linkclicks rules: - match: contains opt: or part: "$header_from:" val: linkclicks unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_linkserv rules: - match: contains opt: or part: "$header_from:" val: linkserv unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_linkstar rules: - match: contains opt: or part: "$header_from:" val: linkstar unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_loversrouse rules: - match: contains opt: or part: "$header_from:" val: loversrouse unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_macaufeed rules: - match: contains opt: or part: "$header_from:" val: macaufeed unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_mancaveblog rules: - match: contains opt: or part: "$header_from:" val: mancaveblog unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_margaritaville rules: - match: contains opt: or part: "$header_from:" val: margaritaville unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_mediandroid rules: - match: contains opt: or part: "$header_from:" val: mediandroid unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_milleniumindustries rules: - match: contains opt: or part: "$header_from:" val: milleniumindustries unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_movetonctriangle rules: - match: contains opt: or part: "$header_from:" val: movetonctriangle unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_ncm-ukraine rules: - match: contains opt: or part: "$header_from:" val: ncm-ukraine unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_nubsgh rules: - match: contains opt: or part: "$header_from:" val: nubsgh unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_omoq rules: - match: contains opt: or part: "$header_from:" val: omoq unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_on.ca rules: - match: contains opt: or part: "$header_from:" val: on.ca unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_onlinenic rules: - match: contains opt: or part: "$header_from:" val: onlinenic unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_packeteer rules: - match: contains opt: or part: "$header_from:" val: packeteer unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_peao rules: - match: contains opt: or part: "$header_from:" val: peao unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_pensionlawyers rules: - match: contains opt: or part: "$header_from:" val: pensionlawyers unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_percq rules: - match: contains opt: or part: "$header_from:" val: percq unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_phesarius rules: - match: contains opt: or part: "$header_from:" val: phesarius unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_populence rules: - match: contains opt: or part: "$header_from:" val: populence unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_potentialedge rules: - match: contains opt: or part: "$header_from:" val: potentialedge unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_prontoshoes rules: - match: contains opt: or part: "$header_from:" val: prontoshoes unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_quidoco rules: - match: contains opt: or part: "$header_from:" val: quidoco unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_ralephi rules: - match: contains opt: or part: "$header_from:" val: ralephi unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_reao rules: - match: contains opt: or part: "$header_from:" val: reao unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_rblazo rules: - match: contains opt: or part: "$header_from:" val: rblazo unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_reginafred rules: - match: contains opt: or part: "$header_from:" val: reginafred unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_resourceprods rules: - match: contains opt: or part: "$header_from:" val: resourceprods unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_roshnirocks rules: - match: contains opt: or part: "$header_from:" val: roshnirocks unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_router-switch rules: - match: contains opt: or part: "$header_from:" val: router-switch unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_royal-income rules: - match: contains opt: or part: "$header_from:" val: royal-income unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_sadwindow rules: - match: contains opt: or part: "$header_from:" val: sadwindow unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_seoder rules: - match: contains opt: or part: "$header_from:" val: seoder unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_smartskids rules: - match: contains opt: or part: "$header_from:" val: smartskids unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_soumzaie rules: - match: contains opt: or part: "$header_from:" val: soumzaie unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_swcarlsbad rules: - match: contains opt: or part: "$header_from:" val: swcarlsbad unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_synclive rules: - match: contains opt: or part: "$header_from:" val: synclive unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_swingsoul rules: - match: contains opt: or part: "$header_from:" val: swingsoul unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_taobaoenfrancais rules: - match: contains opt: or part: "$header_from:" val: taobaoenfrancais unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_texttodate rules: - match: contains opt: or part: "$header_from:" val: texttodate unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_theluci rules: - match: contains opt: or part: "$header_from:" val: theluci unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_ubp.ch rules: - match: contains opt: or part: "$header_from:" val: ubp.ch unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_ugotdogs rules: - match: contains opt: or part: "$header_from:" val: ugotdogs unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_uploadhit rules: - match: contains opt: or part: "$header_from:" val: uploadhit unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_vestibulummassa rules: - match: contains opt: or part: "$header_from:" val: vestibulummassa unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_videosynckers rules: - match: contains opt: or part: "$header_from:" val: videosynckers unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_viridianim rules: - match: contains opt: or part: "$header_from:" val: viridianim unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_vocanova rules: - match: contains opt: or part: "$header_from:" val: vocanova unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_wediginins rules: - match: contains opt: or part: "$header_from:" val: wediginins unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_wildread rules: - match: contains opt: or part: "$header_from:" val: wildread unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_worrrkathomme rules: - match: contains opt: or part: "$header_from:" val: worrrkathomme unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_yeekong rules: - match: contains opt: or part: "$header_from:" val: yeekong unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_yourluxuryguide rules: - match: contains opt: or part: "$header_from:" val: yourluxuryguide unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_yurwurld rules: - match: contains opt: or part: "$header_from:" val: yurwurld unescaped: 1 - actions: - action: save dest: /dev/null enabled: 1 filtername: Regla_zichoster rules: - match: contains opt: or part: "$header_from:" val: zichoster unescaped: 1
<Eso es todo, por ahora>.