[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
semantics of output of content filter (was: Re: 2.99.56pre4 config help)
Hi,
On Tue, 10 Jun 2003, Ambrose Li wrote:
> 1. My ZMailer 2.99.56pre4 is not checking for existence of users.
> HELO pattern only has R (because ftve needs interactive router
> subsystem and I disabled that), but ROUTEUSER_IN_ABNORMAL_UNIX
> is empty.
>
> 2. My content filter is not working. It seems to hang, even if I
> put STDOUT->flush() calls after printing #hungry.
thanks for everyone for the tips. I finally got my content-policy
filter working. It turns out that perl's print doesn't seem to
really honour $| or even STDOUT->flush(). When I gave up and
replaced the print with a syswrite, the script started working.
(I don't know whether the patch is needed either, I found out the
syswrite solution after I applied the patch.)
Now that the filter works, it seems that I have more questions :-)
1. The example script shows that the format of the filter's output
should be CODE COMMENT. However, the comments seem to indicate
that the format can be CODE ENHANCED-STATUS-CODE COMMENT ("%i
%i.%i.%i comment"). From a not-very-thorough reading of the
code, it does seem to try to do that. However, I see strange
things in the smtpserver log such as
KEXaCBG0003# policyprogram said: rc=46 '0 2.0.0 Ok (-20/2) (2 s elapsed: 1.63818 kB/s)'
KEXaCBG0003w 250 2.6.0 .0.0 Ok (-20/2) (2 s elapsed: 1.63818 kB/s); S133502AbTFKEXb
That is, smtpserver seem to recognize that there is a enhanced
status code, but only grab part of the code. What exactly is
expected from the filter?
Actually this is not even consistently seen, I also see things
like
KEPlB6L0004# policyprogram said: rc=46 '0 2.0.0 Ok (-33/3) (1 s elapsed: 5.2
7148 kB/s)'
KEPlB6L0004w 250 2.6.0 S133498AbTFKEPn Roger, got 5037 bytes in the last chun
k, stored 5398 bytes into spool
which totally ignores the comment passed by the filter, and also
KED0BsS0006# policyprogram said: rc=89 '4 4.0.0 Looks like spam (94), Subjec
t: Valium_Get Xanax_cleft (3 s elapsed: 2.27344 kB/s)'
KED0BsS0008w 250 2.6.0 4.0.0 Looks like spam (94), Subject: Valium_Get Xanax_
cleft (3 s elapsed: 2.27344 kB/s); S133493AbTFKED3
which does not recognize (what I think should be) the enhanced
status code, but preserves the comment in smtpserver's output
to the sender.
2. Officially the filter can only order pass, freeze, or reject.
Is there a way to order "temporary fail" (4xx)?
Best regards,
--
Ambrose LI Cheuk-Wing <a.c.li@ieee.org>
http://ada.dhs.org/~acli/
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi