On Thu, 08 Nov 2007 11:43:26 -0800, Murray S. Kucherawy wrote:

> On Thu, 8 Nov 2007, Micah Anderson wrote:
>> The postfix MILTER-README (http://www.postfix.org/MILTER_README.html)
>> details the following macros available to the different protocol
>> levels: [...]
> 
> OK.  Just so we're all clear then, the milter version referenced by
> Postfix and that referenced by Sendmail are not the same.  What Postfix
> is calling 3 and 4 are variants of what we're calling 2.

I pointed this out on the postfix list, because it seems like having 
different protocol levels is confusing. If I may quote the response from 
Weitse Venema (the postfix author) here:

Postfix documentation refers to SMFI_VERSION. The MTA sends this
number to the Milter application as the first 32 data bits in the
initial protocol handshake.

This number is used in Sendmail 8.13 to enable some features that
do not exist in earlier Sendmail versions:

   # if SMFI_VERSION > 3
   #  define SMFIC_DATA            'T'     /* DATA */
   # endif /* SMFI_VERSION > 3 */
   # if SMFI_VERSION > 2
   #  define SMFIC_UNKNOWN         'U'     /* Any unknown command */
   # endif /* SMFI_VERSION > 2 */

Here is how SMFI_VERSION evolves across Sendmail releases:

   sendmail-8.10.0/include/libmilter/milter.h:# define SMFI_VERSION  1

   sendmail-8.11.0/include/libmilter/mfapi.h:#define SMFI_VERSION 
2               /* version number */

   sendmail-8.13.0/include/libmilter/mfapi.h:#ifndef SMFI_VERSION
   sendmail-8.13.0/include/libmilter/mfapi.h:# define SMFI_VERSION 
2               /* version number */
   sendmail-8.13.0/include/libmilter/mfapi.h:#endif /* ! SMFI_VERSION */

   sendmail-8.14.0/include/libmilter/mfapi.h:#ifndef SMFI_VERSION
   sendmail-8.14.0/include/libmilter/mfapi.h:# define SMFI_VERSION 
0x01000000      /* libmilter version number */
   sendmail-8.14.0/include/libmilter/mfapi.h:#endif /* ! SMFI_VERSION */

Postfix is at the level of Sendmail 8.13, and thus it supports the
features that Sendmail has with SMFI_VERSION==3 and SMFI_VERSION==4,
but only if you specify the milter_protocol value appropriately.

If the opinion on the dkim-filter list is that SMFI_VERSION 3 and
4 don't exist, then Sendmail 8.13 source seems to disagree with
them. Sendmail 8.13 will send the list of features that matches
the SMFI_VERSION value, and so does Postfix.

If the opinion is that Milter applications ignore SMFI_VERSION from
the MTA, then I would like to see documentation in support of this.
It sure makes me wonder why they are sending the protocol version
in the first place.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
dkim-milter-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dkim-milter-discuss

Reply via email to