[Postfix-es] postfix+bogofilter
Julio Rodanes - KNET
julio en knet.es
Jue Jun 30 10:57:53 CEST 2005
Estoy intentando montar el bogofilter con postfix con la receta que
aparece en /usr/share/doc/bogofilter-0.94.14/integrating-with-postfix.
La implementacion no me da ningun error, pero cuando envio un mensaje y
lo reeenvia al FILTER, el correo entra en un bucle.
Alguien sabe a que es debido o que estoy configurando mal.
Ficheros
*/home/bogofilter/postfix-filter.sh*
#!/bin/sh
FILTER=/usr/bin/bogofilter
FILTER_DIR=/var/spool/filter
POSTFIX=/usr/sbin/sendmail
export BOGOFILTER_DIR=/home/bogofilter
# Exit codes from <sysexits.h>
EX_TEMPFAIL=75
EX_UNAVAILABLE=69
cd $FILTER_DIR || \
{ echo $FILTER_DIR does not exist; exit $EX_TEMPFAIL; }
# Clean up when done or when aborting.
trap "rm -f msg.$$ ; exit $EX_TEMPFAIL" 0 1 2 3 15
# bogofilter -e returns: 0 for OK, nonzero for error
rm -f msg.$$ || exit $EX_TEMPFAIL
$FILTER -p -u -e > msg.$$ || exit $EX_TEMPFAIL
exec <msg.$$ || exit $EX_TEMPFAIL
rm -f msg.$$ # safe, we hold the file descriptor
exec $POSTFIX "$@"
exit $EX_TEMPFAIL
*
/etc/postfix/master.cf*
smtp inet n - n - - smtpd -o
content_filter=filter:
filter unix - n n - - pipe
flags=Rq user=filter argv=/home/bogofilter/postfix-filter.sh -f
${sender} -- ${recipient}
*Errores maillog*
Jun 29 16:54:23 vs3 postfix/master[9645]: daemon started -- version 2.1.5
Jun 29 16:54:47 vs3 sendmail[9651]: j5TEslsN009651: from=root, size=48,
class=0, nrcpts=1, msgid=<200506291454.j5TEslsN009651 en vs3.knet.es>,
relay=root en localhost
Jun 29 16:54:47 vs3 postfix/smtpd[9652]: connect from vs3.knet.es[127.0.0.1]
Jun 29 16:54:47 vs3 postfix/smtpd[9652]: BA87E11AAF5:
client=vs3.knet.es[127.0.0.1]
Jun 29 16:54:47 vs3 postfix/cleanup[9655]: BA87E11AAF5:
message-id=<200506291454.j5TEslsN009651 en vs3.knet.es>
Jun 29 16:54:47 vs3 postfix/qmgr[9647]: BA87E11AAF5:
from=<root en vs3.knet.es>, size=498, nrcpt=1 (queue active)
Jun 29 16:54:47 vs3 sendmail[9651]: j5TEslsN009651:
to=user1 en pruebas.com, ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30048, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (Ok: queued as BA87E11AAF5)
Jun 29 16:54:47 vs3 postfix/smtpd[9652]: disconnect from
vs3.knet.es[127.0.0.1]
Jun 29 16:54:47 vs3 sendmail[9657]: j5TEslFB009657:
Authentication-Warning: vs3.knet.es: filter set sender to
root en vs3.knet.es using -f
Jun 29 16:54:47 vs3 sendmail[9657]: j5TEslFB009657:
from=root en vs3.knet.es, size=527, class=0, nrcpts=1,
msgid=<200506291454.j5TEslsN009651 en vs3.knet.es>, relay=filter en localhost
Jun 29 16:54:47 vs3 postfix/smtpd[9652]: connect from vs3.knet.es[127.0.0.1]
Jun 29 16:54:47 vs3 postfix/smtpd[9652]: F0F7C11AAF6:
client=vs3.knet.es[127.0.0.1]
Jun 29 16:54:48 vs3 postfix/cleanup[9655]: F0F7C11AAF6:
message-id=<200506291454.j5TEslsN009651 en vs3.knet.es>
Jun 29 16:54:48 vs3 postfix/qmgr[9647]: F0F7C11AAF6:
from=<root en vs3.knet.es>, size=951, nrcpt=1 (queue active)
Jun 29 16:54:48 vs3 sendmail[9657]: j5TEslFB009657:
to=user1 en pruebas.com, ctladdr=root en vs3.knet.es (0/0), delay=00:00:01,
xdelay=00:00:01, mailer=relay, pri=30527, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (Ok: queued as F0F7C11AAF6)
Jun 29 16:54:48 vs3 postfix/smtpd[9652]: disconnect from
vs3.knet.es[127.0.0.1]
Jun 29 16:54:48 vs3 postfix/pipe[9656]: BA87E11AAF5:
to=<user1 en pruebas.com>, relay=filter, delay=1, status=sent (vs3.knet.es)
Jun 29 16:54:48 vs3 postfix/qmgr[9647]: BA87E11AAF5: removed
Jun 29 16:54:48 vs3 sendmail[9662]: j5TEsm4i009662:
Authentication-Warning: vs3.knet.es: filter set sender to
root en vs3.knet.es using -f
Jun 29 16:54:48 vs3 sendmail[9662]: j5TEsm4i009662:
from=root en vs3.knet.es, size=930, class=0, nrcpts=1,
msgid=<200506291454.j5TEslsN009651 en vs3.knet.es>, relay=filter en localhost
Jun 29 16:54:48 vs3 postfix/smtpd[9652]: connect from vs3.knet.es[127.0.0.1]
Jun 29 16:54:48 vs3 postfix/smtpd[9652]: 0F2A211AAF5:
client=vs3.knet.es[127.0.0.1]
Jun 29 16:54:48 vs3 postfix/cleanup[9655]: 0F2A211AAF5:
message-id=<200506291454.j5TEslsN009651 en vs3.knet.es>
Jun 29 16:54:48 vs3 postfix/qmgr[9647]: 0F2A211AAF5:
from=<root en vs3.knet.es>, size=1361, nrcpt=1 (queue active)
Jun 29 16:54:48 vs3 sendmail[9662]: j5TEsm4i009662:
to=user1 en pruebas.com, ctladdr=root en vs3.knet.es (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30930, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (Ok: queued as 0F2A211AAF5)
Jun 29 16:54:48 vs3 postfix/smtpd[9652]: disconnect from
vs3.knet.es[127.0.0.1]
Jun 29 16:54:48 vs3 postfix/pipe[9661]: F0F7C11AAF6:
to=<user1 en pruebas.com>, relay=filter, delay=1, status=sent (vs3.knet.es)
Jun 29 16:54:48 vs3 postfix/qmgr[9647]: F0F7C11AAF6: removed
Jun 29 16:54:48 vs3 sendmail[9666]: j5TEsmel009666:
Authentication-Warning: vs3.knet.es: filter set sender to
root en vs3.knet.es using -f
Jun 29 16:54:48 vs3 sendmail[9666]: j5TEsmel009666:
from=root en vs3.knet.es, size=1333, class=0, nrcpts=1,
msgid=<200506291454.j5TEslsN009651 en vs3.knet.es>, relay=filter en localhost
Jun 29 16:54:48 vs3 postfix/smtpd[9652]: connect from vs3.knet.es[127.0.0.1]
Jun 29 16:54:48 vs3 postfix/smtpd[9652]: 2040211AAF6:
client=vs3.knet.es[127.0.0.1]
Jun 29 16:54:48 vs3 postfix/cleanup[9655]: 2040211AAF6:
message-id=<200506291454.j5TEslsN009651 en vs3.knet.es>
Jun 29 16:54:48 vs3 postfix/qmgr[9647]: 2040211AAF6:
from=<root en vs3.knet.es>, size=1771, nrcpt=1 (queue active)
Jun 29 16:54:48 vs3 sendmail[9666]: j5TEsmel009666:
to=user1 en pruebas.com, ctladdr=root en vs3.knet.es (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=31333, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (Ok: queued as 2040211AAF6)
Jun 29 16:54:48 vs3 postfix/smtpd[9652]: disconnect from
vs3.knet.es[127.0.0.1]
Jun 29 16:54:48 vs3 postfix/pipe[9656]: 0F2A211AAF5:
to=<user1 en pruebas.com>, relay=filter, delay=0, status=sent (vs3.knet.es)
Jun 29 16:54:48 vs3 postfix/qmgr[9647]: 0F2A211AAF5: removed
Jun 29 16:54:48 vs3 sendmail[9670]: j5TEsmDN009670:
Authentication-Warning: vs3.knet.es: filter set sender to
root en vs3.knet.es using -f
Jun 29 16:54:48 vs3 sendmail[9670]: j5TEsmDN009670:
from=root en vs3.knet.es, size=1736, class=0, nrcpts=1,
msgid=<200506291454.j5TEslsN009651 en vs3.knet.es>, relay=filter en localhost
Jun 29 16:54:48 vs3 postfix/smtpd[9652]: connect from vs3.knet.es[127.0.0.1]
Jun 29 16:54:48 vs3 postfix/smtpd[9652]: 3166211AAF5:
client=vs3.knet.es[127.0.0.1]
Jun 29 16:54:48 vs3 postfix/cleanup[9655]: 3166211AAF5:
message-id=<200506291454.j5TEslsN009651 en vs3.knet.es>
Jun 29 16:54:48 vs3 postfix/qmgr[9647]: 3166211AAF5:
from=<root en vs3.knet.es>, size=2181, nrcpt=1 (queue active)
Jun 29 16:54:48 vs3 sendmail[9670]: j5TEsmDN009670:
to=user1 en pruebas.com, ctladdr=root en vs3.knet.es (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=31736, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (Ok: queued as 3166211AAF5)
Jun 29 16:54:48 vs3 postfix/smtpd[9652]: disconnect from
vs3.knet.es[127.0.0.1]
Jun 29 16:54:48 vs3 postfix/pipe[9661]: 2040211AAF6:
to=<user1 en pruebas.com>, relay=filter, delay=0, status=sent (vs3.knet.es)
Jun 29 16:54:48 vs3 postfix/qmgr[9647]: 2040211AAF6: removed
.................................
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://nl.wl0.org/pipermail/postfix-es/attachments/20050630/51fbfff2/attachment.htm
Más información sobre la lista de distribución Postfix-es