Konstantin Boyandin <[EMAIL PROTECTED]> writes:

>         I have tried to set up TMDA (redHat Linux 7.1, Sendmail,
> Python2.2.2) and came to a stage where I can't understand what's goind
> on.
> 
> .procmailrc:
> 
> # Set the necessary environment variables.
> EXTENSION="$1"
> :0
> * EXTENSION ?? .
> {
>   DELIMITER="+"
> }
> RECIPIENT="[EMAIL PROTECTED]"
> SENDER=`formail -x Return-Path | sed 's/[<>]//g;s/^[ ]*//'`
> # Run the message through tmda-filter.
> :0 fW
> | /usr/local/tmda-0.84/bin/tmda-filter -p
> 
> :0 e
> {
> # If tmda-filter returned 99, don't set EXITCODE!
> :0
> ? /bin/test $? -eq 99
> /dev/null
> 
> :0
> EXITCODE=$?
> /dev/null
> }
> 
> # TMDA takes care of final delivery
> DEFAULT=/dev/null

First of all, it doesn't look as if you need all this stuff in your
.procmailrc, so why not simplify it?  Don't use procmail's 'f' flag
(just ":0 W"), don't use tmda-filter's "-p" flag and delete the entire
":0 e" recipe.  Simply run tmda-filter and then set DEFAULT.

>         I had to create the ~/.tmda/pending (I didn't find any hints
> on .tmda contents in installation document),

tmda-filter creates ~/.tmda/pending the first time it needs it.

> From maillog:
> 
> Sep 11 00:54:36 zaurum sendmail[7317]: h8B7sYc07315: SYSERR(root): mailer prog died 
> with signal 11
> Sep 11 00:54:36 zaurum sendmail[7317]: h8B7sYc07315: to="| /usr/bin/procmail", 
> ctladdr=<[EMAIL PROTECTED]> (502/503), delay=00:00:01, xdelay=00:00:00, mailer=prog, 
> pri=30019, dsn=4.0.0, stat=Deferred: prog mailer (/usr/sbin/smrsh) exited with 
> EX_TEMPFAIL

When TMDA runs into an unrecoverable problem, it exits with errorcode
75 (EX_TEMPFAIL).  It writes a Python stack trace into LOGFILE_DEBUG
(if you have defined that) or ~/TMDA_DELIVERY_FAILURE.  If you can
post the contents of that file, we can see what's dying.

>         The previous problem was 'error 99' (cured by modifying
> .procmailrc the way it looks now).

You won't get an exit code of 99 if you don't use the -p flag.

>         How can this current problem be solved (dying with signal 11)?

It depends on what's causing the signal 11.  The stack trace may
provide us with more information.

>         What should I place into ~/.tmda/config to receive more
> sensible diagnostics?

You can set LOGFILE_DEBUG to a file of your choosing.  The user
running TMDA must be able to write to that file.  Usually we suggest
something like ~/.tmda/debug.log or ~/.tmda/logs/debug.  You can name
it whatever you like.  TMDA doesn't write into the system mail log.


Tim

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to