Re: Authentication errors SMTP

2011-10-19 Thread Eric Charles
... but if I understand well, you can send to external email addresses with your Apple Mail client. Which configuration did you use in Apple Mail client to achieve this (smtp auth?). Try reusing that username/password. Thx, Eric On 19/10/11 20:39, Garvice Eakins wrote: As far as I can tell

Re: Authentication errors SMTP

2011-10-19 Thread Garvice Eakins
As far as I can tell it is all correct. I'm able to send internal emails, view and delete messages, I just can't seem to be able to send emails to external addresses. u...@gmail.com On Wed, Oct 19, 2011 at 11:35 AM, Eric Charles wrote: > Ok, so you need to double check that the username/password

Re: Authentication errors SMTP

2011-10-19 Thread Eric Charles
Ok, so you need to double check that the username/password combination you use in your java mail program is defined in james server. The username must be of the form u...@domain.tld (its in fact the email address). Thx, Eric On 19/10/11 18:53, Garvice Eakins wrote: If I uncomment the line

Re: Authentication errors SMTP

2011-10-19 Thread Garvice Eakins
If I uncomment the line //props.put("mail.smtp.auth", "true"); I get this error message: Exception in thread "main" javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 503 5.7.1 Incorrect Authentication for Specified Email Add

Re: Authentication errors SMTP

2011-10-19 Thread Eric Charles
H Garvice, If you can send from your mail client to external mails, you must ensure your java client sends the needed credentials. From the initial mail, I see that you have commented the mail.smtp.auth line: //props.put("mail.smtp.auth", "true"); Can you try after uncommenting that line.

Re: Authentication errors SMTP

2011-10-19 Thread Garvice Eakins
But my original question still stands. Why am I getting an authentication error from James when I try and send emails to an external email from my Java app? What part am I missing, I authenticated before I checked for message, and that works fine but not send as it does when I send internal emails.