How to reply an Error if authentication fails in IdSMTPServer.CheckUser

Giganews Newsgroups
Subject: How to reply an Error if authentication fails in IdSMTPServer.CheckUser
Posted by:  Stefan Bartos (OGKarot…@gmxpro.de.net)
Date: Tue, 30 Mar 2004

Hello together,
i like to send a response to the Mailclient, if the authentication in
SMTPServer.CheckUser fails.
The msg should be a 'normal' server response like '550 - authentication
failed'.

What have I to do for implementig such a response ?

I've tried to set 'Accept' to false if the User is not in my database,
but all what was happened, is that the Client (MS OE) pops up an Login
Dialog and if the Pw is incorrect again, it's popsup again (and again
and again and again...)

I've also tried to set 'Accept' in onCommandMAIL to the same Value as
'Accept' in .CheckUser. But it is the same as described above. Only
when i set 'Accept' in .CheckUser to false (even if User/Pw is correct)
then i get an negative response over commandMAIL, but this one say's:
'500 xxx Address Error' and not 'authentication failed'.

Please help

TIA

Stefan

Replies