Hello...
before anyone says "rtfm" I want to state quite clearly that I have read the
entire thing, from top to bottom (thanks to eye-catcher for providing a
readable version!!!).

I am going to quote directly from the documentation:

"You can use external modules ( executables ) to perform user authentication
instead of using XMail mailusers.tab lookups."
-- Excellent! This is what I need to do!

"Suppose We must authenticate USERNAME inside DOMAIN , XMail first try to
lookup ( inside userauth/pop3 ) a file named :
DOMAIN.tab
else :
defaultauth.tab"
-- I created a file: MAIL_ROOT/userauth/pop3/stratumllc.com.tab
-- In this file I have the following contents:
        "userauth"      "d:/MailUtilities/auth.bat"     "@@USER"        "@@PASSWD"

I "test fired" my 'auth.bat' script (which calls my JVM, which in turn
executes a Java application [non gui] I wrote which queries our Oracle
database). Everything works just as it should with the auth.bat script.

First problem... XMail appears to ignore this directive (the .tab file with
the 'userauth' command). I have enabled logging, and have found nothing out
of the ordinary (no bad login attempts with the POP3 service)... it just
appears that XMail is ignoring this. Yes... I did a stop/start of XMail.

Second (not really a problem)... in the documentation it states:

"that in success case must return zero. Any other exit code will be
interpreted as authentication operation failure, that in userauth case means
that such user will be not authenticated."

This *could* mean anything... does this mean, simply writing out to STDOUT a
'0' or something else... or does this mean: System.exit(0), or
something like:

public int foo() { return 0; } // this wouldn't mean *anything* to Xmail, as
this external authentication is not accessing xmail via some type of API.
Its just a system call... correct (or something similar)?

Using xmail .68 / win2k server

tanks! :)
./dave

Reply via email to