Simon Kittle ha scritto:
Thank you that has fixed it, at least I can now get it working in Outlook
just fine.
I'm still having great trouble with JavaMail though. Does anyone have any
examples of getting JavaMail to SMTP AUTH properly with JAMES?
In my client code I've setup the property "mail.smtp.auth". I've written an
Authenticator, SmtpAuthenticator which extends javax.mail.Authenticator and
returns the username and password, and Session.getInstance() is called with
this as a second parameter.
I've tried this with the static method Transport.send, and I've also tried
doing the tr.connect manually so I can supply the username and password
(should that be necessary if you've given Session.getInstance the
authenticator object?).
Either way, both methods are failing with authentication failed. I saw one
example on the web where someone was also setting the "mail.smtp.submitter"
property to be the result of authenticator.getPasswordAuthentication(), I've
tried that too but still no work.
So I now have SMTP AUTH working on JAMES via telnet, and with Outlook, but
in JavaMail it still throws authentication errors, it seems like JavaMail
isn't actually doing the authentication, but I can't find any other method
than the one described above.
Any help much appreciated,
This is a question for javamail-interest list.
BTW there is a property to see what javamail does: "mail.debug" or
session.setDebug(true).
You can also check the smtpserver logs to see if anything is logged by
james. You can enable "DEBUG" logging for the smtpserver component
(Enable the debug level in your environment.xml file wit log-level="DEBUG").
Stefano
Simon
-----Original Message-----
From: Stefano Bagnara [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2008 7:10 PM
To: James Users List
Subject: Re: SMTP AUTH and JAMES (with Outlook, JavaMail)
Simon Kittle ha scritto:
hey,
I was wondering if anyone could give me a list of known pitfalls
getting MS
Outlook to work with JAMES and SMTP AUTH.
I have JAMES all setup with SMTP AUTH.
I can successfully run an SMTP session via telnet, and it
authenticates okay
and sends the mail which gets delivered fine.
However, when I try to use MS Outlook as the client, I get problems.
Basically, Outlook just throws error after error. Outlook can
successfully
connect to the JAMES POP3 server and fetch the messages, but it just
won't
send stuff using SMTP AUTH.
I get the same problem with JavaMail, it will not send using JAMES
and SMTP
AUTH. Throws authentication error. (Yes I've double checked all
passwords,
etc.)
Any ideas?
Did you enable smtp auth in the config.xml?
<!-- Uncomment this if you want to require SMTP authentication.
supported values:
true: required but announced only to not authorizedAddresses
false: don't use AUTH
announce: like true, but always announce AUTH capability to clients
The correct behaviour per RFC value would be false or announce
but we still support true for backward compatibility and because
some webmail client fails when AUTH is announced but no authentication
information has been provided
-->
<!--
<authRequired>true</authRequired>
-->
You should use
<authRequired>announce</authRequired>
If you already did this then start looking at logs created by james
when
it refuse to authenticate you.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]