ISmtpInCommandSink Rules? - Custom Authentication problem

Tech-Archive recommends: Speed Up your PC by fixing your registry



I'm trying to write a custom authentication scheme for the Windows 2003 SMTP Service (with or without Exchange attached) and although I have my Sink working for the most part, I can't figure out how to deal with a challenge response since it isn't prefixed with a command that I can specify in a rule.

Right now I've bound to the rule "AUTH" which gets me the initial command and I can send back a custom challenge and consume the event but the next line from the client will just be a base64 encoded string which gets a 500 Unrecognized Command error.

Is there a way to implement an ISmtpCommandSink so that it receives the next command entered no matter what it is? This would be ideal since I wouldn't want the sink to be called for EVERY command.

Is there a Rule for catching all unrecognized commands?

Failing that, is there a way to catch all commands? "*" doesn't work and "" or a non-existant rule causes connections to be dropped as soon as a command is entered.

The documentation is so thin it gives me no clue how to proceed. I've tried playing around with some of the statuses and return values but nothing seems to help.

There's a SetCallback on the command context which looks intriguing (I can't think what it might be used for except possibly handling command continuations) but I'm at a loss how to signal that I'm expecting more from the client.

I've also looked at ISmtpServerResponseSink but I can't get it to fire no matter what so I'm assuming there's a Rule that needs to be added but nothing I've tried works.

Any insight would be greatly appreciated.

Jason S. Clary

.



Relevant Pages

  • RE: combo box...then multi select list box
    ... it does not matter where the code is within the module. ... "Kevin" wrote: ... >> Private Function BuildWhereCondition(strControl As String) As String ... >>> the selections in each box, then click a command button for various available ...
    (microsoft.public.access.forms)
  • Re: Simplify the Linux commands
    ... > have the same format for sending output to the screen, ... Now you suggest that people use a different command just ... If less total code is always better, no matter what, then we wouldn't ... The problem with the world is stupidity. ...
    (comp.os.linux)
  • Invalid Boot ini File
    ... >Having done a Google search on the matter I found the ... >Press any key to boot from CD ... message....The command is ... Type help for a list of supported ...
    (microsoft.public.windowsxp.basics)
  • URL error message
    ... It didn't matter where the damn URL was, ... didn't matter, the action would not call a browser, just returned the ... written so that when a URL was clicked on it would issue a command like ... Yes I'd forgotten Reporter, however, it doesn't add much to the plot. ...
    (comp.sys.acorn.apps)
  • RE: combo box...then multi select list box
    ... Does it matter that the code for the command buttons ... > Private Function BuildWhereCondition(strControl As String) As String ... >> I set up this code in the OnClick Event. ...
    (microsoft.public.access.forms)