OVH Cloud OVH Cloud

Procmail + postfix

1 réponse
Avatar
Jean-Louis HAILLANT
Bonjour à tous,

Sur une Mandrake 8.1
J'ai un souci avec Procmail ... j'ai ajouté une recette à celui-ci, mais
elle est visiblement ignorée ...
Cette recette a pour but de supprimer les pièces attachées qui peuvent être
suspectes ( exe ... )

Ma Configuration :

Dans main.cf de Postfix
mailbox_command = /usr/bin/procmail


Dans mon .procmailrc ( dans mon home )

VERBOSE=no
PATH=/bin:/usr/bin
SHELL:/bin/sh
MAILDIR=/var/spool/mail
DEFAULT=$MAILDIR/$LOGNAME
LOGFILE=$HOME/procmail.log
LINEBUF = 32768
MOI = jlh

:0 HBhb:
* ^Content-Type:.*\.(exe|dot|vbs|hta|pif|scr|com).*
| ( formail -rtk -p '| ' \
-A "X-Loop: $MOI" \
-A "Precedence: junk"; \
cat $HOME/.procmail/badfile ) | $SENDMAIL -t -oi


Voyez-vous quelque chose qui cloche ?
Merci d'avance !!!

Jean-Louis

1 réponse

Avatar
j
Le Tue, 3 Aug 2004 11:08:23 +0200 après l'an de grâce, inspiré(e)
"Jean-Louis HAILLANT" écrivait la plume
légère :

Bonjour à tous,
Bonjour



Dans mon .procmailrc ( dans mon home )

VERBOSE=no
PATH=/bin:/usr/bin
SHELL:/bin/sh
MAILDIR=/var/spool/mail
DEFAULT=$MAILDIR/$LOGNAME
LOGFILE=$HOME/procmail.log
LINEBUF = 32768
MOI = jlh

:0 HBhb:
* ^Content-Type:.*.(exe|dot|vbs|hta|pif|scr|com).*
| ( formail -rtk -p '| '
-A "X-Loop: $MOI"
-A "Precedence: junk";
cat $HOME/.procmail/badfile ) | $SENDMAIL -t -oi

Dans mon .mailfilter :


if ( (/^Return-Path: /:h ||
/^Subject: *****SPAM*****/:h) )
{
log "annonce de virus et de spam"
to "Maildir/.spam"
}


Et c'est amavis + clamav + spamassassin qui tag/filtrent les mails.

Juste par curiosité, pourquoi s'embêter avec procmail alors que maildrop
est si simple ? Je sais c'est pas urbain de ne pas répondre au problème,
mais c'est vraiment de la curiosité.

--
"If I do not return to the pulpit this weekend, millions of people will
go to hell."
-- Jimmy Swaggart, 5/20/88