httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: mod_smtpd design - protocol
Date Mon, 18 Jul 2005 03:06:35 GMT
"Jem Berkes" <> writes:

> The competing technology seems to be Sendmail's milter
> interface which allows developers to hook their custom
> filters into various stages of SMTP transactions. 

If you follow the design of httpd, then you want to create
an smtp_in filter that removes any extra '.'s.  Upon seeing
DATA, create a request_rec and parse the headers into 
r->headers_in.  Then add the smtp_in filter and add
request filters just like ap_invoke_handler does it.
Then process the rest of the input stream using AP_MODE_READBYTES,
letting smtp_in translate the final ".CRLF" into an eos

That should give you enough flexibility that someone
else could write a mod_milter and provide most (if not
all) of the milter api.

Joe Schaefer

View raw message