You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Robert Koberg <ro...@koberg.com> on 2003/07/23 21:21:18 UTC

servlet sending mail with javamail -> not -> RE: question about listserv

Whoops... copied old message to get address...

> -----Original Message-----
> From: Robert Koberg [mailto:rob@koberg.com]
> Sent: Wednesday, July 23, 2003 12:18 PM
> To: 'James Users List'
> 
> Hi,
> 
> I am trying to send an email from a servlet with javamail (on a dev
> machine
> not the james machine). I have SMTP AUTH on. I create the
> PasswordAuthentication with a plaintext username and password. When I send
> it I get an AuthenticationFailedException:
> 
> javax.mail.SendFailedException: Sending failed;
>   nested exception is:
>         class javax.mail.AuthenticationFailedException
> 
> In my james smtp log I have DEBUG on and I see two lines after the line
> saying 'Command received: AUTH LOGIN' and before a line that says 'AUTH
> method LOGIN failed' which look something like (not the actual):
> 
> Sent: 334 OIUoioefofvhfr
> Sent: 334 DrhgHEFJjkhfed
> 
> My PasswordAuthentication looks like:
> 
> public class LsbSmtpAuthenticator extends Authenticator {
> 
>   public PasswordAuthentication getPasswordAuthentication() {
>     return new PasswordAuthentication("test@domain.com", "testpasswd");
>   }
> }
> 
> The username and password that I actually use are correct because I use
> the
> same in my gui mail client.
> 
> First, I don't suppose there is a way to send an MD5 encrypted string as
> the
> password (I have a custom user/passwd list already), is there?
> 
> Second, can anybody tell me what is going wrong? Should I be sending
> encrypted strings (what kind?)?
> 
> I can't see anything from a search in google or the James docs.
> 
> Thanks for any info,
> -Rob
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org