Re: Authentication errors SMTP

2011-10-21 Thread Garvice Eakins
I had already done all those. ended up having to create an SMTPTransport object and getting the SMTP session instance form the session. Then opening a new connection using the host, user, and password. then I could send the msg, Now to figure out how to use James with MYSQL MTPTransport t = (SMT

Re: Authentication errors SMTP

2011-10-20 Thread Eric Charles
Yes, the settings are in smtpserver.xml, with default being: 127.0.0.0/8 true true You change those settings (e.g. verifyIdentity to false, that will be an answer to what Patrick said). With default settings, ensure the from used in msg.setFrom(new InternetAddress(from)); is the

Re: Authentication errors SMTP

2011-10-20 Thread Patrick Pyette
The only time that I've seen this issue (multiple times) is if the account that you authenticate with is not the same as the MAIL FROM command (and I think obtained from the "From" header on the email message). If you authenticate as jsm...@domain.com, the only mail that you can legitimately

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.

Re: Authentication errors SMTP

2011-10-18 Thread Eric Charles
Glad it is now OK. Thx, Eric On 19/10/11 01:30, Garvice Eakins wrote: Eric, Ok I have attached an email client to the James Server (Apple Mail) I can send emails to internal addresses on the same domain, and I can send external emails as well. Using the Java Program I submitted earlier I can se

Re: Authentication errors SMTP

2011-10-18 Thread Garvice Eakins
Eric, Ok I have attached an email client to the James Server (Apple Mail) I can send emails to internal addresses on the same domain, and I can send external emails as well. Using the Java Program I submitted earlier I can send internal emails, retrieve and print them to console. I can also view t

Re: Authentication errors SMTP

2011-10-18 Thread Norman Maurer
The problem is that you try to send to "blue" and not "b...@smo.tld". If you want to have "smo.tld" used if there is not domainpart in the recipient then you need to specify it as default domain in the domainlist.xml. Bye, Norman 2011/10/17 Garvice Eakins : > I am using James 3 Beta 3. The user

Re: Authentication errors SMTP

2011-10-18 Thread Eric Charles
You simply have to define a new email account in your favorite mail client with the username/password/host you have in James. Eric On 17/10/11 21:58, Garvice Eakins wrote: no I have not used thunderbird or any other standard mail client, not really sure even how to do that. I will search the

Re: Authentication errors SMTP

2011-10-17 Thread Garvice Eakins
no I have not used thunderbird or any other standard mail client, not really sure even how to do that. I will search the site and see if I can find an example. If you could provide a link to one that would be great! I really am going blindly into this as I have almost zero knowledge about mail serv

Re: Authentication errors SMTP

2011-10-17 Thread Garvice Eakins
I am using James 3 Beta 3. The users do exist, (except not the recipient of one, that is an external email with google as the provider) bash james-cli.sh -h localhost -p listusers b...@smo.tld gr...@smo.tld r...@smo.tld t...@smo.tld listusers command executed sucessfully in 539 ms. I am able

Re: Authentication errors SMTP

2011-10-17 Thread Eric Charles
Hi, What Norman says + did you try from a standard mail client such as thunderbird to test the server conf? thx, Eric On 15/10/11 09:27, Norman Maurer wrote: Hi there, what exact version you are using? also are you sure the recipients exist at the james server or do you try to deliver the mai

Re: Authentication errors SMTP

2011-10-15 Thread Norman Maurer
Hi there, what exact version you are using? also are you sure the recipients exist at the james server or do you try to deliver the mailmto a remote smtpserver? bye norman Am Freitag, 14. Oktober 2011 schrieb Garvice Eakins : > I am having problems sending SMTP messages from James3.0 using a sim