Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

urlcheck bug ?

2008-04-04 by Benoit Branciard

Hello,

We're running recent 4.0+ milter-greylist (2008-03-19 snapshot), and 
make extensive use of "urlcheck" feature for custom tests.

Currently our URL server is an Apache 2.2 which serves small CGI script.

All is fine as long as our CGI scripts only returns the one-line 
response "milterGreylistStatus: Ok" if they pass, and nothing if they 
fail (after a "Content-type: text/plain\n\n" MIME header).

But if we try to return multi-line responses, like :

milterGreylistStatus: Ok
milterGreylistMsg: You are not allowed to connect

strange things occur. The first line (the answer itself) is generally 
honoured, but subsequent lines are ignored and generate errors in the 
log like :

milter-greylist: ignoring unepxected "nimilterGreylistMsg" => "You are 
not allowed to connect"

It looks like garbage characters seems to be inserted on beginning of 
each line.

Curiously enough, error disappear and all statements are honoured (in 
this case: reject message is used) if we insert blank lines between 
statements (ie separating them with \n\n instead of \n):

milterGreylistStatus: Ok

milterGreylistMsg: You are not allowed to connect


Sanity of the output of our scripts has been verified by testing the URL 
manually with a web browser.

So something seems wrong in milter-greylist. Bad string pointer ? memory 
corruption ?

Any idea ?




-- 
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.