Re: Postfix,Clamav,Amavisd et spamassassin : pb avec spamassassin
Frédéric BOITEUX <fboiteux@calistel.com> wrote:
| Le Fri, 12 Aug 2005 11:09:41 +0200, mess-mate <messmate@free.fr> a écrit :
|
| > gmane.linux.debian.user.french <nicolo@unimedecine.org> wrote:
| > | hello
| > |
| > | Ca ne fonctionne toujours pas en effet .... j'ai testé toutes les soluce
| > | fourni dans le post mais rien n'est passé, la seul chose qui est passé est
| > | le fait que quand le serveur mail refusait la reception de message, il etait
| > | scanné par spamassassin avant d'etre renvoyé à l'espéditeur ... j'y capte
| > | rien ...
| > |
| > | Donc ma demande c'etait : ya quoi dans le fichier filter-spam.sh ?
| > |
|
| Salut,
|
| Voici le contenu du script filter-spam.sh :
|
| #!/bin/sh
|
| ###INSPECT_DIR=/var/spool/filter
| INSPECT_DIR=/home/spamd/filter
| SENDMAIL="/usr/lib/sendmail -i"
| ###SPAMASSASSIN=/usr/bin/spamassassin
| SPAMASSASSIN=/usr/bin/spamc
|
| # Exit codes from <sysexits.h>
| EX_TEMPFAIL=75
| EX_UNAVAILABLE=69
|
| cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; }
|
| # Clean up when done or when aborting.
| trap "rm -f in.$$; rm -f out.$$" 0 1 2 3 15
|
| ### traces :
| ### cat | tee /tmp/spamc.$$ | $SPAMASSASSIN | tee /tmp/spamc.chk.$$ > out.$$ || { echo Message content rejected; exit $EX_UNAVAILABLE; }
| cat | $SPAMASSASSIN > out.$$ || { echo Message content rejected; exit $EX_UNAVAILABLE; }
|
| $SENDMAIL "$@" < out.$$
|
| exit $?
|
|
| Voilà, je ne sais pas si cela vous aidera...
|
| Fred.
Merci, je vais tester ça :)
mess-mate
--
Don't look now, but the man in the moon is laughing at you.
Reply to:
- References:
- Postfix,Clamav,Amavisd et spamassassin : pb avec spamassassin
- From: "gmane.linux.debian.user.french" <nicolo@unimedecine.org>
- Re: Postfix,Clamav,Amavisd et spamassassin : pb avec spamassassin
- From: Frédéric BOITEUX <fboiteux@calistel.com>
- Re: Postfix,Clamav,Amavisd et spamassassin : pb avec spamassassin
- From: mess-mate <messmate@free.fr>
- Re: Postfix,Clamav,Amavisd et spamassassin : pb avec spamassassin
- From: "gmane.linux.debian.user.french" <nicolo@unimedecine.org>
- Re: Postfix,Clamav,Amavisd et spamassassin : pb avec spamassassin
- From: mess-mate <messmate@free.fr>
- Re: Postfix,Clamav,Amavisd et spamassassin : pb avec spamassassin
- From: Frédéric BOITEUX <fboiteux@calistel.com>