james-server-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Veerabhadra Rao" <ve...@smartifacts.com>
Subject RE: javax.mail.SendFailedException: 530 Authentication Required
Date Fri, 16 Jan 2004 08:27:57 GMT
Jason Lea,
Thank you. It solved the problem.
Regards,
Veeru

-----Original Message-----
From: Jason Lea [mailto:jason@kumachan.net.nz] 
Sent: Friday, January 16, 2004 11:19 AM
To: James Users List
Subject: Re: javax.mail.SendFailedException: 530 Authentication Required

I think you need this property

props.put("mail.smtp.auth", "true");


Veerabhadra Rao wrote:

>Hi Guys,
> 
>I am using James 2.1.3
>I am trying to send mail using Java Mail API with simple SMTP
>authentication.
> 
>I made the following changes to the James - config.xml
>1) Disabled the maillet with RemoteIPNotInNetwork tag
>2) set <authRequired> to true
>3) set <verifyIdentity> to true
> 
>The relevant code:
>...
>           props = new Properties();
>           props.put ( "mail.transport.protocol", "SMTP" );
>           props.put("mail.smtp.host", myhost);
> 
>           Authenticator auth = new PopupAuthenticator();
>          Session session = Session.getInstance(props, auth); ...
> 
>  I have defined the inner class called PopupAuthenticator 
> 
>  public class PopupAuthenticator extends Authenticator {
>  public PasswordAuthentication getPasswordAuthentication() {
>    return new PasswordAuthentication(myuser, mypass);
>  }
>  }
>When I send to a local account everything is ok.  If I send to an
>external account, I get an Exception:
>javax.mail.SendFailedException: Sending failed;
>  nested exception is: 
>            javax.mail.SendFailedException: 530 Authentication Required
> 
>Can anybody help me solving this problem or suggest what went wrong.
> 
>Thanks
>Veeru
> 
> 
>
>  
>


-- 
Jason Lea



---------------------------------------------------------------------
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


Mime
View raw message