Internet Direct (Indy) Version 9.0.2 Beta
TIdSMTPServer.OnCommandAUTH
Event handler signalled to allow authentication using custom protocols and methods.

property OnCommandAUTH: TBasicHandler;
Description
OnCommandAUTH is a TBasicHandler property that represents the command event handler used to implement the SMTP AUTH command verb, and allows the server to perform custom authentication methods or protocols not found in the default server implementation in CommandHandlers.

OnCommandAUTH is used in the AUTH Command event handler when the client connection has provided identication using the EHLO command. Applications must assign a procedure to the OnCommandAUTH event handler to allow responding to the event notification. When OnCommandAUTH is not assigned, the server uses the internal authorization mechanism, equivalent to AUTH LOGIN, and the CheckUser event handler.

Note: When the client connection uses the HELO command, authentication is not performed according to the SMTP protocol.