Ricardo Kleemann writes:
Thanks Sam for the explanation.Please see below...In a maildrop recipe that, by itself, will do nothing, since if the maildroprecipe completes with a zero exit code, the message is deemed to be succesfully delivered.couriermlm reports an error by exiting with a non-zero exit code. maildrop,after running the command specified by the backtick operators, places its exit code into the RETURNCODE environment variable, as described in the maildropfilter man page, then it will proceed normally. maildrop continues normally, irrespective of the exit code. If you areinvoking maildrop to deliver mail, you also need to have maildrop return the non-zero exit code, in order to generate a non-delivery report. You probablyneed to do something like this: EXITCODE=$RETURNCODE exitBut what still confuses me is why there's neither stdout or stderr output if couriermlm is rejecting the message.
I see nothing in couriermlm's source that would supress the error message in this situation.
You should consider invoking maildrop via strace, which should show whether or not it receives the error message. This should, at least, point the finger in the right direction.
pgpckWx02BY9T.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
