[Postfix-es] mail filter con virtual mailbox
Yovany del Toro Montoya
yovany en ltu.gcc.cu
Mie Nov 22 15:45:34 CET 2006
que es lo que quieres filtrar en los correos, yo por ejemplo te pongo este
ejemplo
# Chequeo de Adjuntod y mas
header_checks = regexp:/etc/postfix/header_checks
body_checks = regexp:/etc/postfix/body_checks
/etc/postfix/body_checks
# Sample regexp lookup "table".
#
# Format is /regexp/flags or /regexp/flags!/regexp/flags
# where regexp is a regular expression as found in regexp(5), and flags are
# i: toggle ignore case (REG_ICASE - default is to ignore case)
# x: toggle extended expression (REG_EXTENDED - default is extended)
# m: toggle multiline mode (REG_NEWLINE - default is non-multiline mode)
#
# In order for a line to match, the first regexp must match, and the
# second (if present) must not match. The first matching line wins,
# terminating processing of the ruleset.
# Filtrado de correo por contenido en el cuerpo del mansaje
#/^.*TEXTO_A_FILTRAR/ REJECT
/etc/postfix/header_checks
# /etc/postfix/header_checks [18/FEB/04 Rel. 1]
#
# Format is /regexp/flags or /regexp/flags!/regexp/flags
# where regexp is a regular expression as found in regexp(5), and flags are
# i: toggle ignore case (REG_ICASE - default is to ignore case)
# x: toggle extended expression (REG_EXTENDED - default is extended)
# m: toggle multiline mode (REG_NEWLINE - default is non-multiline mode)
#
# In order for a line to match, the first regexp must match, and the
# second (if present) must not match. The first matching line wins,
# terminating processing of the ruleset.
# Ejemplo de filtrado saliente a un dominio
# /^To: .*@subdom\.dom$/ REJECT
# Filtrado de correo con ataque a Outlook
#/^Date:.{60,}$/ REJECT
# Filtrado de correo con caracteres no imprimibles en las cabeceras
[15/ABR/02]
# Necesario Postfix >= 1.1.0
/[^[:print:]]{8}/ REJECT
# Filtrado de correo con posibles virus
#
# Virus: I LOVE YOU y variantes ...
/^Subject:.*ILOVEYOU/ REJECT
/^Subject:.*Susitikim shi vakara kavos puodukui.../ REJECT
/^Subject:.*fwd: Joke/ REJECT
#
# Virus: Variante de I LOVE YOU
/^Subject:.*US PRESIDENT AND FBI SECRETS/ REJECT
#
# Virus: VBS/Stages [20/JUN/00]
/^Subject:.*Fw: Life Stages/ REJECT
/^Subject:.*Fw: Funny/ REJECT
/^Subject:.*Fw: Jokes/ REJECT
/^Subject:.*Fw: Life Stages text/ REJECT
/^Subject:.*Fw: Funny text/ REJECT
/^Subject:.*Fw: Jokes text/ REJECT
/^Subject:.*Life Stages/ REJECT
/^Subject:.*Funny/ REJECT
/^Subject:.*Jokes/ REJECT
/^Subject:.*Life Stages text/ REJECT
/^Subject:.*Funny text/ REJECT
/^Subject:.*Jokes text/ REJECT
#
# Virus: PrettyPark
/^Subject:.*PrettyPark/ REJECT
#
# Virus: PIF.Fable.Worm
/^Subject:.*Fable/ REJECT
/^Subject:.*Something You Should Read/ REJECT
/^Subject:.*Very Important That You Receive This/ REJECT
#
# Virus: I-Worm.Music
/^Subject:.*Testing to send file/ REJECT
#
# Virus: I-Worm.Santa
/^Subject:.*News vom Weihnachtsmann/ REJECT
#
# Virus: I-Worm.Creative
/^Subject:.*A great Shockwave flash movie/ REJECT
#
# Virus: W32.SirCam [20/SEP/01]
/^date:.*/i REJECT
/^Content-Disposition: Multipart message/ REJECT
#
# Virus Nimda (attach readme.exe) [20/SEP/01]
/^X-Unsent: 1/ REJECT
#
# Virus Badtrans [30/NOV/01]
/^From: ".*" <_/ REJECT
#
# Virus W32.Myparty.B en mm [29/ENE/02]
/^Subject: new photos from my party!/ REJECT
#
# Virus W32/Frethem.K/J [15/JUL/02]
/^Subject: Re: Your password!/ REJECT
#
# Virus Palyh [20/MAY/03]
/^From:.*support en microsoft\.com/i REJECT
#
# Gusano Mimail [04/AGO/03]
/^From: admin en .*fi\.upm\.es/i REJECT
/^Subject:.*your account/i REJECT
#
# Gusano Mimail.C [31/OCT/03]
/^From: james en .*fi\.upm\.es/i REJECT
#
# Gusano Mimail.H [04/NOV/03]
/^From: john en .*fi\.upm\.es/i REJECT
/^Subject:.*don't be late/i REJECT
#
# Gusano W32.Bagle [20/ENE/04]
/^Subject: Hi$/i REJECT
#
# Gusano W32.MyDoom en mm [27/ENE/04]
/^Subject: error$/ REJECT
/^Subject: hello$/ REJECT
/^Subject: hi$/ REJECT
/^Subject: mail delivery system$/ REJECT
/^Subject: mail transaction failed$/ REJECT
/^Subject: server report$/ REJECT
/^Subject: status$/ REJECT
/^Subject: test$/ REJECT
#
# Gusano W32.Bagle.B en mm [18/FEB/04]
/^Subject: ID .*\.\.\. thanks/i REJECT
# Correo basura
/^Subject: oil busines$/ REJECT
/^Subject: cranny$/ REJECT
/^Subject: snowball luxuriously$/ REJECT
----- Original Message -----
From: <lordjeaes en yahoo.es>
To: "postfix lista" <postfix-es en lists.wl0.org>
Sent: Wednesday, November 22, 2006 4:24 AM
Subject: [Postfix-es] mail filter con virtual mailbox
> Hola listeros
> Necesito ayuda para saber cual es la herramienta mas comoda para filtrar
> correo (que funcione con Virtual Mailbox)
> He visto procmail y no me sirve, alguna sugerencia?
>
>
> (se me olvidaba, uso postfix..jeje)
> Saludos
>
> JeAn
>
>
>
> ______________________________________________ LLama Gratis a cualquier PC
> del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>
--------------------------------------------------------------------------------
_______________________________________________
List de correo Postfix-es para tratar temas del MTA postfix en español
Postfix-es en lists.wl0.org
http://lists.wl0.org/mailman/listinfo/postfix-es
Más información sobre la lista de distribución Postfix-es