libmilter.a for Windows?
am 25.10.2007 13:21:43 von Phil L
As the communication between Sendmail and a milter is via a socket I
have been asked if there is any reason why a milter could not be
hosted on a Windows box?
Apart from the fact that libmilter would need to be built on Windows I
couldn't immediately think why this couldn't be made to work. However,
if it was that easy I'm sure someone would have done it by now and I
can't find any indication that it has.
So does anyone know if this is possible and if not why not?
Thanks
Re: libmilter.a for Windows?
am 25.10.2007 13:50:06 von DFS
Phil L wrote:
> As the communication between Sendmail and a milter is via a socket I
> have been asked if there is any reason why a milter could not be
> hosted on a Windows box?
I have no idea why anyone would want to do such a silly thing, but
I suppose there are two options:
1) Port libmilter to Windows. Libmilter uses POSIX threads, so it may be
a bit challenging unless there's a POSIX threads implementation for Windows.
2) (harder) Write your own library to speak the Milter protocol. This
protocol is undocumented and subject to change, but there are third-party
milter-speakers such as http://sourceforge.net/projects/sendmail-milter/
although that appears not to have been updated since 2001.
http://sourceforge.net/projects/sendmail-jilter is in Java and its last
release was July 2005.
--
David.
Re: libmilter.a for Windows?
am 25.10.2007 15:25:32 von Phil L
David,
Thanks for your reply.
The reasoning behind the question is that the mail data intercepted by
the milter needs to be passed to existing Windows hosted programs for
processing. If the milter is installed on a Unix/Linux box then it
requires another connection to pass it to the Windows machine. If the
milter was running remotely on the Windows box the milter connection
itself would handle the data transfer.