Hello everyone,

I decided to implement XCLIENT support (see
http://www.postfix.org/XCLIENT_README.html)

What got me going is that ASSP is basically useless to me, as I require the
remote users to use SSL or TLS before authenticating.
What I'm going to do is put ASSP behind Postfix and use is as smtpd_proxy_filter
(before queue filter).

Since the protocol is quite simple, I'll be finished soon, but there's a few
questions I have:

* I catch server's XCLIENT greeting and store the supported attributes in
$Con{$server}->{xclient}
* I catch the final line of the server's 250-reply to EHLO and insert own
XCLIENT line before it (even if the server doesn't support it).
This is needed because the server might not support XFORWARD but we have to.

The problem I had here was that there is no way to know when the server is
sending reply to an EHLO command, so I created a workaround - in getline() i'm
setting $Con{$client}->{smtpstate}='EHLO' and undef-ing it in reply() when the
reply to that command is returned to the client. Is there a better way to do
that?

I also finished the parser for the XCLIENT command in getline(), and can set
$Con{$client}->{ip} and {helo}. Other attributes do not seem to be useful in
this context. Currently, I send the line unchanged to the server, but I'll
change that tomorrow, as I want to send XCLIENT even when the client is not
allowed to set it, so the backend postfix gets the real client info (when using
ASSP as a frontend to a SMTP server - the default configuration).

Any thoughts? If not, I'll have the patch against 1.3.3.8 ready tomorrow so
somenone else can try it.

regards,
Borut Mrak.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to