[milters] Archive

Lists Index Date Thread Search

Article: 774
From: Sergey N. Romanov
Date: 2005-12-26 08:44:22 -0500
Subject: milter_cli

Removal...........: milters-request@milter.info?subject=remove
More information..: http://www.milter.info/#Support
--------------------------------------------------------

Hello,

In documentation I can read:

-e command
...
If this command exits with a value greater than 0, then -c command is 
never executed.
...

I have compiled sendmail with "APPENDDEF(`confENVDEF', `-DSMFI_VERSION=4')"
I have these flags in startup script - "-e /usr/local/bin/milter-cli.pl 
-c /usr/bin/true"

But in sendmail log I can see this:

01:49:39 [16] milter-cli[62553]: 00005 jBQ0ndWu063394: started 
milter-cli.pl[63395] /usr/local/bin/milter-cli.pl
01:49:39 [16] milter-cli[62553]: 00005 jBQ0ndWu063394: 
milter-cli.pl[63395] exit status=3

I.e. exit status greater than 0

01:49:39 [16] sm-mta[63394]: jBQ0ndWu063394: from=<xxx>, size=373, 
class=0, nrcpts=2, msgid=<200512260049.jBQ0nd6o063393@xxx>, proto=ESMTP, 
daemon=Daemon0, relay=localhost [127.0.0.1]
01:49:39 [16] milter-cli[62553]: 00005 jBQ0ndWu063394: started 
true[63396] /usr/bin/true

Why -c command is executed if -e exit status greater than 0?

01:49:39 [16] sm-mta[63394]: jBQ0ndWu063394: Milter add: header: 
X-Scanned-By: milter-cli/0.8.26 (localhost [0.0.0.0]); Mon, 26 Dec 2005 
01:49:39 +0100

Why milter add header if message should be discarded?

01:49:39 [16] milter-cli[62553]: 00005 jBQ0ndWu063394: message rejected
01:49:39 [16] sm-mta[63394]: jBQ0ndWu063394: Milter: data, discard
01:49:39 [16] sm-mta[63394]: jBQ0ndWu063394: discarded

But action is correct.

Why this is impossible to forbid execution of -c command if we need only -e?
Why this is impossible to forbid adding of "X-Scanned-By" header?

-- 

Best regards,
Sergey N. Romanov

Lists Index Date Thread Search