Javax.mail.MessagingException: 505 Client was not authenticated
Hi!,
I got the following error:
Exception in thread "main" javax.mail.MessagingException: 505 Client was not authenticated
at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:507)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:312)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:168)
at HelloMail.main(HelloMail.java:35)
This is the code:
To send an email I need authentification, and I include the mail.smtp.auth propertie and
"message.saveChanges();
Transport transport = session.getTransport("smtp");
transport.connect("mail.xxx.com.mx","harriaga",passw);
transport.sendMessage(message,message.getAllRecipients());
transport.close();"
Do you know if I am skip something.
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
public class HelloMail {
public static void main(String args[]) throws Exception {
String host="mail.xxx.com.mx"; //obviously doesn't work
String from="[email protected]"; //sender's email
String to ="[email protected]" ; //receiver's email
Properties props = System.getProperties();
props.put("mail.smtp.host", host);
props.put("mail.smtp.auth", "true");
Session session=Session.getInstance(props,null);
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.addRecipient(Message.RecipientType.TO, new
InternetAddress(to));
message.setSubject(" My Test HTML email ");
message.setText(" Here is the content ");
message.saveChanges();
Transport transport = session.getTransport("smtp");
transport.connect("mail.xxx.com.mx","harriaga",passw);
transport.sendMessage(message,message.getAllRecipients());
transport.close();
Thanks for all,
HAG.
HAG,
you need to create a session object passing a valid authenticator. In other words,
MyAuthenticator auth = new MyAuthenticator ();
Session session = Session.getInstance(props, auth);where MyAuthenticator is something like
public class MyAuthenticator extends Authenticator{
public PasswordAuthentication getPasswordAutentication(){
return new PasswordAuthentication( "user", "password");
}You obviously need to replace username and password with data valid for your e-mail account.
Hope this helps,
gulfi
Similar Messages
-
While trying to run a program to sent sms to mobile(with airtel connection)it shows the Error:
"javax.mail.MessagingException: 505 5.7.3 Client was not Authenticated.
If anyone knows how to resolve this problem please reply.
The Code is as follows:
import java.io.*;
import java.net.InetAddress;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class EmailSMS
String TO;
String FROM;
String SUBJECT,TEXT,MAILHOST,LASTERROR;
public static void main(String [] args) throws Exception
EmailSMS SMS=new EmailSMS();
SMS.setMailHost("kcsl.com");
SMS.setTo("[email protected]");
SMS.setFrom("[email protected]");
SMS.setSubject("");
SMS.setText("Hello World");
boolean ret = SMS.send();
if(ret){
System.out.println("SMS was sent");
else
System.out.println("SMS was not sent"+SMS.getLastError());
public EmailSMS()
TO=null;
FROM=null;
SUBJECT=null;
TEXT=null;
LASTERROR="No methods calls";
public void setTo(String to){TO=to;}
public String getTo(){return TO;}
public void setFrom (String from){FROM=from;}
public String getFrom(){ return FROM;}
public void setSubject(String subject){SUBJECT=subject;}
public String getSubject(){return SUBJECT;}
public void setText(String text){TEXT=text;}
public void setMailHost(String host){MAILHOST=host;}
public String getMailHost(){return MAILHOST;}
public String getLastError(){return LASTERROR;}
public boolean send()
int maxLength;
int msgLength;
//Check to make sure that the parameters are correct
if(TO.indexOf("mobile.att.net")>0)
maxLength=140;
else if(TO.indexOf("messaging.nextel.com")>0)
{maxLength=280;}
else if(TO.indexOf("messaging.sprintpcs.com")>0)
{maxLength=100;}
else maxLength=160;
msgLength=FROM.length()+1+SUBJECT.length()+1+TEXT.length();
if(msgLength>maxLength)
LASTERROR="SMS length too long";
return false;
//set email properties
Properties props=System.getProperties();
if(MAILHOST!=null){props.put("mail.smtp.host",MAILHOST);}
Session session=Session.getDefaultInstance(props,null);
try{
Message msg=new MimeMessage(session);
if(FROM!=null){msg.setFrom(new InternetAddress(FROM));}
else{msg.setFrom();}
msg.setSubject(SUBJECT);
msg.setText(TEXT);
msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(TO,false));
msg.setSentDate(new Date());
Transport.send(msg);
LASTERROR="Success";
return true;
catch(MessagingException max ){LASTERROR=max.getMessage();
return false;}
thankuHi,
it seems to me that you must authenticate with your smtp host. In order to do so, try following:
While trying to run a program to sent sms to
mobile(with airtel connection)it shows the Error:
"javax.mail.MessagingException: 505 5.7.3 Client was
not Authenticated.
If anyone knows how to resolve this problem please
reply.
The Code is as follows:
import java.io.*;
import java.net.InetAddress;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class EmailSMS
String TO;
String FROM;
String SUBJECT,TEXT,MAILHOST,LASTERROR;
public static void main(String [] args) throws
Exception
EmailSMS SMS=new EmailSMS();
SMS.setMailHost("kcsl.com");
SMS.setTo("[email protected]");
SMS.setFrom("[email protected]");
SMS.setSubject("");
SMS.setText("Hello World");
boolean ret = SMS.send();
if(ret){
System.out.println("SMS was sent");
else
System.out.println("SMS was not
t sent"+SMS.getLastError());
public EmailSMS()
TO=null;
FROM=null;
SUBJECT=null;
TEXT=null;
LASTERROR="No methods calls";
public void setTo(String to){TO=to;}
public String getTo(){return TO;}
public void setFrom (String from){FROM=from;}
public String getFrom(){ return FROM;}
public void setSubject(String
subject){SUBJECT=subject;}
public String getSubject(){return SUBJECT;}
public void setText(String text){TEXT=text;}
public void setMailHost(String host){MAILHOST=host;}
public String getMailHost(){return MAILHOST;}
public String getLastError(){return LASTERROR;}
public boolean send()
int maxLength;
int msgLength;
//Check to make sure that the parameters are correct
if(TO.indexOf("mobile.att.net")>0)
maxLength=140;
else if(TO.indexOf("messaging.nextel.com")>0)
{maxLength=280;}
else if(TO.indexOf("messaging.sprintpcs.com")>0)
{maxLength=100;}
else maxLength=160;
msgLength=FROM.length()+1+SUBJECT.length()+1+TEXT.leng
h();
if(msgLength>maxLength)
LASTERROR="SMS length too long";
return false;
//set email properties
Properties props=System.getProperties();
if(MAILHOST!=null){props.put("mail.smtp.host",MAILHOST
Session
session=Session.getDefaultInstance(props,null);
try{ // Get a Transport object to send e-mail
Transport bus = session.getTransport("smtp");
// Connect only once here
// Transport.send() disconnects after each send
bus.connect(host, username, password);
Message msg=new MimeMessage(session);
if(FROM!=null){msg.setFrom(new
w InternetAddress(FROM));}
else{msg.setFrom();}
msg.setSubject(SUBJECT);
msg.setText(TEXT);
msg.setRecipients(Message.RecipientType.TO,InternetAd
ress.parse(TO,false));
msg.setSentDate(new Date());// Send message
bus.send(msg);
bus.close();
LASTERROR="Success";
return true;
catch(MessagingException max
){LASTERROR=max.getMessage();
return false;}
thankuGood luck -
Error in receiver Mail adapter: Client was not authenticated
Hi.
My requirement is to send email via PI to an extermal mail address. I am trying to use the following configuation for the same.
Tramsport Protocol: SMTP
Message Protocol: XIPAYLOAD
URL: To get the value of URL, execute transaction SCOT in PI system. Double click on SMTP and get the Mail host from there (name). So the URL has been specified as smtp://name
Comfigure User authentication - Checked
User: My outlook email address
Password: My outlook email password
From: My outlook email address
To: External address to which the email needs to be sent
Content encoding: base64
But the email is not getting sent. when I check the adapter engine I see the errors:
Mail: error occured: java.io.IOException: server not responding OK to MAIL FROM; 530 5.7.1 Client was not authenticated
Mail: error occured: com.sap.aii.af.lib.mp.module.ModuleException
MP: exception caught with cause com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.io.IOException: server not responding OK to MAIL FROM; 530 5.7.1 Client was not authenticated
Adapter Framework caught exception: Failed to call the endpoint
Delivering the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.io.IOException: server not responding OK to MAIL FROM; 530 5.7.1 Client was not authenticated.
Can anyone please suggest what changes are needed to make this work?
Any help is greatly appreciated.
Thanks.
Anuradha.HI Anuradha,
Check the below link for receiver mail configuration and follow the steps accordingly.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0a27c01-26b0-2c10-bd8a-94498efa7ff6?quicklink=index&overridelayout=true
Regards,
Naveen -
"530 5.7.1 Client was not authenticated" Error with mail service
Hi,
I have some problem with Mail service with the Webspaces application. I have configured the Service (with MS Exchange server) with WebSpaces Application with the required IMAP, SMTP, External Application and LDAP Settings correctly. I opened the Mail Page and Logged in with the
user credentials. I am able to see the incoming mails , But when I try to send a mail I am getting the following exception. For some reason, SMTP send is failing. I did the same IMAP and SMTP settings in MS Outlook and successfully sent the mail. what could be the problem? Please repond.
oracle.webcenter.collab.mail.MailException: Failed to send the message with subject "Test". Further information: 530 5.7.1 Client was not authenticated
at oracle.webcenter.collab.mail.MailSession.sendMessage(MailSession.java:864)
at oracle.webcenter.collab.mail.view.backing.MessageHandler.sendMessage(MessageHandler.java:528)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1245)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:87)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:91)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:87)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:87)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:91)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:81)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:673)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellPageRedirectionFilter.doFilter(WebCenterShellPageRedirectionFilter.java:210)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellFilter.doFilter(WebCenterShellFilter.java:603)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.view.page.editor.webapp.WebCenterComposerFilter.doFilter(WebCenterComposerFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:65)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.processFilters(WebCenterLocaleWrapperFilter.java:256)
at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.doFilter(WebCenterLocaleWrapperFilter.java:215)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
at oracle.webcenter.collab.mail.MailSession.sendMessage(MailSession.java:850)
Edited by: indra_owc on Jan 9, 2010 6:14 PMThe server probably wants you to use the STARTTLS command before you authenticate.
See the com.sun.mail.smtp package javadocs for the property to set to enable that. -
Error in sending mail : SMTPSendFailedExcept Client was not authenticated
Hello all,
I am new to the forum,
I have a small program to send mail to Microsoft exchange server.
Now the server is enabled with https option.
Now i am getting error :
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1668)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1207)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:735)
at javax.mail.Transport.send0(Transport.java:191)
at javax.mail.Transport.send(Transport.java:120)
at SendEmail.main(SendEmail.java:55)
there are two things:
As the program sends mail from a webpage, a user password used for login to the webpage is different from his mail server password, it is not possible to give a username and password to send mail / read mail from the exchange server.
Please give any other option without passing user name and password to the exchange server.1. Reconfigure the Exchange server to allow sending without authentication.
2. Authenticate to the Exchange server using credentials specific to the web application itself.
Configure the Exchange server to allow the user with those credentials to send mail that appears
to be from any other user.
No, I don't know how to do any of that with Exchange; ask Microsoft. -
Javax.mail.MessagingException: 505 Authentication required
Could any one provide ,what would be the reasons for the following error information.
[5/7/07 0:16:21:853 EDT] 11ba7fef SystemOut O DEBUG SMTP RCVD: 505 Authentication required
[5/7/07 0:16:21:853 EDT] 11ba7fef SystemOut O DEBUG SMTP SENT: QUIT
[5/7/07 0:16:21:853 EDT] 11ba7fef SystemOut O javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 505 Authentication requiredit was working until few days.we dont understand what woud be problem.
There is log informatiuon in websphere systemerr.log also.
0:102 EDT] 740d8b8d SystemErr R javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 505 Authentication required
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at javax.mail.Transport.send0(Transport.java:219)
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at javax.mail.Transport.send(Transport.java:81)
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at com.det.core.jenmail.JENMailSender.sendEmail(JENMailSender.java:250)
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at com.det.core.jenmail.JENMailSender.sendEmail(JENMailSender.java:165)
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at com.det.jenadmin.registration.ModifyUserAction.process(ModifyUserAction.java:171)
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at org.apache.jsp._PendingAction._jspService(_PendingAction.java:824)
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code))
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code))
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code))
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
[5/4/07 10:06:10:102 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
[5/4/07 10:06:10:118 EDT] 740d8b8d SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code)) -
Hi,
We have configured SMTP server details in OBIEE 11g OEM to send mail from Agent. When we run Agents, we are getting the error
[nQSError:75006] Unable to send MAIL Command.5.7.1 Client was not authenticated
Did anyone face the issue? In that Case, Please give some inputs on that.Hi Satya,
I would like to few more which I have done today.
I wanted to test telnet SMTP on the OBIEE Installed Machine and I was able to succeed also. Please find below what I did
C:\>telnet mail.smtp.com 25
220 internal.mail.smtp.com Microsoft ESMTP MAIL Service Readt at Fri,
25 May 2012 00:51:00 -0400
ehlo
250-internal.mail.smtp.com Hello [162.44.76.47]
250-SIZE
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-X-ANONYMOUSTLS
250-AUTH NTLM LOGIN
250-X-EXPS GSSAPI NILM
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250-XEXCH50
250 XRDST
AUTH LOGIN
334 VXN1cm5hbWU6
Uy5SY-------------- Mail User Name
334 UGFzc3dvcmWU6
U2hfpd------------- Mail Password
235 2.7.0 Authentication Successful
mail from:[email protected]
250 2.1.0 Sender OK
rcpt to:[email protected]
250 2.1.5 Recipient OK
data
354 start mail input; end with <CRLF>.<CRLF>
This is a Test Mail
250 2.6.0 <internal.mail.smtp.com>
Queue Mail for Delivery
Mail Received in Inbox
So, My Question is that, I am able to receive the Mail if I directly access SMTP via Telnet then , Why it is not working in OBIEE and it throws error
[nQSError:75006] Failed to send MAIL Command.5.7.1 Client was not authenticated
Please help on resolving the issue? -
Email Notification - ERROR: 530 5.7.1 Client was not authenticated
Hi People!
I am receiving the follows error when I run scheduled task. Also, I used Javamail and I have the same problem. The problem: MAIL FROM isn´t authenticating. How can I solve it?
Other question: How can I configure Email Notification in debug?
Thanks!
API Code (Schedule task)
this.dataProvider = getDataBase();
tcEmailNotificationUtil emaildef = new tcEmailNotificationUtil(dataProvider);
emaildef.setSubject("User: " + s2);
emaildef.setFromAddress(fromaddr);
emaildef.setBody("OIM has detected a modify in Active Directory. " );
emaildef.sendEmail(toaddr);
System Configuration->XL.MailServer=Email Server
IT Resource 'Email server'
Name Email Server
Auth : true
Server name : exchange server name
User name : <domain name>\User name
Password :: Password of that user
ERROR
ERROR,11 Jan 2011 18:18:00,375,[XELLERATE.REQUESTS],Class/Method: tcEmailNotificationUtil/sendEmail encounter some problems: 530 5.7.1 Client was not authenticated
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)
at com.thortech.xl.dataobj.util.tcEmailNotificationUtil.sendEmail(Unknown Source)
at com.thortech.xl.schedule.tasks.ActiveDirectoryReconTask.processUserChange(ActiveDirectoryReconTask.java:657)
at com.thortech.xl.schedule.tasks.ActiveDirectoryReconTask.processBatch(ActiveDirectoryReconTask.java:341)
at com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController.searchResultPageEnum(Unknown Source)
at com.thortech.xl.schedule.tasks.ActiveDirectoryReconTask.performReconciliation(ActiveDirectoryReconTask.java:248)
at com.thortech.xl.schedule.tasks.ActiveDirectoryReconTask.execute(ActiveDirectoryReconTask.java:97)
at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
at org.quartz.core.JobRunShell.run(JobRunShell.java:178)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:477)
--------------------------------------------------------------------------------Thanks Justin,
for all your help and support.
there was some settings to be done in the exchange server. and today the system admin co-operated with me and did the changes in the exchange.
now the messaging is working fine.
Thanks,
Rashed -
try
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
mail.From = new MailAddress("[email protected]");
mail.To.Add("[email protected]");
mail.Subject = "Test Mail..!!!!";
mail.Body = "mail with attachment";
System.Net.Mail.Attachment attachment;
attachment = new System.Net.Mail.Attachment(@"C:\Attachment.txt");
mail.Attachments.Add(attachment);
SmtpServer.Port = 587;
SmtpServer.UseDefaultCredentials = true;
SmtpServer.Credentials = new System.Net.NetworkCredential("userid", "Password");
SmtpServer.EnableSsl = true;
SmtpServer.Send(mail);
Catch(Exception exception)
When i m run this part of code it throw an Ecxeption
Given Below is the Error..
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
Bikky Kumartry
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
mail.From = new MailAddress("[email protected]");
mail.To.Add("[email protected]");
mail.Subject = "Test Mail..!!!!";
mail.Body = "mail with attachment";
System.Net.Mail.Attachment attachment;
attachment = new System.Net.Mail.Attachment(@"C:\Attachment.txt");
mail.Attachments.Add(attachment);
SmtpServer.Port = 587;
SmtpServer.UseDefaultCredentials = true; ///Set it to false, or remove this line
SmtpServer.Credentials = new System.Net.NetworkCredential("userid", "Password");
SmtpServer.EnableSsl = true;
SmtpServer.Send(mail);
Catch(Exception exception)
Given Below is the Error.. The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
Solution:
The error might occur due to following cases.
case 1: when the password is wrong
case 2: when you try to login from some App
case 3: when you try to login from the domain other than your time zone/domain/computer (This
is the case in most of scenarios when sending mail from code)
There is a solution for each
solution for case 1: Enter the correct password.
Recomended: solution for case 2: go to
security settings at the following link https://www.google.com/settings/security/lesssecureapps and
enable less secure apps . So that you will be able to login from all apps.
solution 1 for case 3: (This might be helpful) you need to review the activity. but reviewing the activity will not be helpful due to latest security
standards the link will not be useful. So try the below case.
solution 2 for case 3: If you have hosted your code somewhere on production server and if you have access to the production server, than take remote
desktop connection to the production server and try to login once from the browser of the production server. This will add exception for login to google and you will be allowed to login from code.
But what if you don't have access to the production server. try
the solution 3
solution 3 for case 3: You have to enable
login from other timezone / ip for your google account.
to do this follow the link https://g.co/allowaccess and
allow access by clicking the continue button.
And that's it. Here you go. Now you will be able to login from any of the computer and by any means of app to your google account.
Regards,
Nabeel Arif -
530 5.7.1 client was not authenticated
OK, I am not in control of an exchange server. My company uses GoDaddy for our exchange server. I am an employee. We use a software for contact management. When I try to send emails to say a group of customers, it gives me the error
530 5.7.1 client was not authenticated. I have talked to GoDaddy until I am blue in the face to no avail. Everything I find says it is something on their end. By the way, we just switched to them, we have absolutely no problem with our previous
company that we had exchange with. ANY help would be appreciated. OF course our outlook works.
The only information our software (called RPMS) requires is the SMTP server which I enter smtp.ex3.secureserver.net
my email address (*****@alliedsm.com
user name which they say is the same as email address (*****@alliedsm.com) and password. My old exchange service had me use port 27, but new company says I have to use 587.In the outbound smtp setting did you set outgoing smtp requires authentication?
Microsoft Outlook® 2007 (PC)
From the Tools menu, select "Account Settings"
Select your Network Solutions Email account and click the "Change" button above..
Click the "More Settings" button in the bottom-right corner of the E-Mail Accounts window.
In the Internet Email Settings window, click the "Outgoing Server" tab. Ensure that the box next to "My outgoing server (SMTP) requires authentication" is checked and "use same settings as my incoming mail server" is selected.
Click the "Advanced" tab and make sure that "Use the following type of encrypted connection" is set to "None" for the incoming (POP3) and the outgoing (SMTP) port settings. Change the outgoing server port to 587.
James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com -
530 5.7.1 Client was not authenticated - Exchange 2013 to external domains
Hi all,
I have an Exchange server 2013 on windows 2012 R2 and do all the configuration for sending and receiving the mail according to the document provided by Microsoft.
But whenever I am trying to send mails from external domains to my exchange server domain I got the following error:
530 5.7.1 Client was not authenticated
Same thing I am getting If I am sending mail through outlook from my Exchange domains to external domain.
But if I am selecting the
<label for="ResultPanePlaceHolder_ReceiveConnector_Security_contentContainer_chkPermissionGroupAnonymousUsers" id="ResultPanePlaceHolder_ReceiveConnector_Security_contentContainer_chkPermissionGroupAnonymousUsers_label">Anonymous
users in the security option of Default Frontend XXXX, I am able to send the mails through outlook.</label>
<label for="ResultPanePlaceHolder_ReceiveConnector_Security_contentContainer_chkPermissionGroupAnonymousUsers" id="ResultPanePlaceHolder_ReceiveConnector_Security_contentContainer_chkPermissionGroupAnonymousUsers_label">But I don't
want to use this option as it will enable to send the mails without validating the Exchange server user name and password.</label>
SO can anyone please suggest some solutions to resolve this as using Anonymous users fro sending and receiving mails is not secure.
Regards
Pankaj Raman.
<label for="ResultPanePlaceHolder_ReceiveConnector_Security_contentContainer_chkPermissionGroupAnonymousUsers" id="ResultPanePlaceHolder_ReceiveConnector_Security_contentContainer_chkPermissionGroupAnonymousUsers_label">
</label>I have a java code for sending mails using the SMTP address of the servers. For sending a mail it required a valid user name and password. For all other SMTP servers if I have used invalid user name and password then I am getting the 530
5.7.1 Client was not authenticated error, but
if I am using my SMTP address and invalid user name and password then also I am able to send the mails.
So I just want to know what I have to configure in the exchange 2013 server so that it will validate the user name and password.
Regards
Pankaj Raman.
Hi Pankaj,
Thank you for your question.
Was invalid user name and password included in Java code?
Did outlook send emails?
If this issue happen on Java code instead of outlook?
In fact, Exchange server didn’t validate user account and password, user account and password will be validated on domain controller,
I suggest we create a new dedicated receive connector and enable “anonymous” permission for java code
If there are any questions regarding this issue, please be free to let me know.
Best Regard,
Jim
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Jim Xu
TechNet Community Support -
5.7.1 Client was not authenticated
hey,
I need to send mail over "daily tasks, and i get the following exception :
System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
I check the user to see if he not a locked, and he doesn't .
I check the smtp mail server ans he is ok.
what else can i check? how can i fix this? this is super urgent.
this is my code :
MailMessage mess = null;
Attachment attach = null;
SmtpClient smtp = null;
try
mess = new MailMessage();
smtp = new SmtpClient("smtp.office365.com");
smtp.Port = 587;
smtp.EnableSsl = true;
System.Net.NetworkCredential cred = new System.Net.NetworkCredential("[email protected]", "Pass");
smtp.Credentials = cred;
mess.From = new MailAddress("[email protected]");
mess.Subject = fileName;
smtp.Timeout = 300000;
smtp.Send(mess);
catch (SmtpFailedRecipientException exp)
Console.WriteLine(exp.FailedRecipient);
log.Error(exp);
elog.WriteEntry(exp.ToString(),EventLogEntryType.Error, 0);
catch (Exception e)
Console.WriteLine(e.ToString());
log.Error(e);
elog.WriteEntry(e.ToString(), EventLogEntryType.Error, 0);
finally
attach.Dispose();
mess.Dispose();
smtp.Dispose();Check if the client connector used to connect with the 587 port is allowed to accept authentication on Plain Text.
Try a relay connector if you want to send the email without the authentication.
http://technet.microsoft.com/en-us/library/bb232021(v=exchg.141).aspx
Syed MM Messaging SME - IBM || MCTS || MCSE || MCSA || VCP5 || VCA || -
Remote Server returned '530 5.7.1 Client was not authenticated'
Hello,
I migrating from Exchange 2007 to Exchange 2013.
The Exchange 2007 infrastructure look like:
-2 CAS ( Hub1 and Hub2)
-2 MBX ( mbx1 and mbx2)
We add Exchange 2013 in the mix
2 CAS ( CAS-2K13-1 and CAS-2K13-2)
2 MBX ( MBX-2K13-1 and MBX-2K13-2)
All mailbox are curently on Exchange 2007. All inbound email pass by a SMTP Relay who forward the email to a NLB of Exchange 2013.
The send connector (internet) forward email to the SMTP relay, and the source server are only 2K7 server.
My problems is : if I replace the two 2K7 server from the source server for the 2K13 MBX, I receive this message:
The following organization refuse your message: MBX-2K13-1.contoso.com
Generation server : MBX-2K13-2.contoso.com
[email protected]
MBX-2K13-1.contoso.com
Remote Server returned '530 5.7.1 Client was not authenticated'
idea?Do you smarthost from the send connector to another SMTP gateway?
Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied. -
Hello Excperts,
I have a problem with sending Email throught Guided Procedure.I have set the SMTP configurations but when i test my Process using the Interactive Form through GP i get the error as below:
Result: Technical exception
Details: Unexpected internal exception during background execution: 530 5.7.1 Client was not authenticated
though my BAPI through GP gets executed properly but I still get this error.What can be done to resolve this error please help urgently.
Regards
IshitaHi Yahya,
According to you description, the issue is that cannot receive email from a specific outside user.
Before going further, I'd like to ask the following questions to help troubleshoot the issue:
1. Could you receive emails from other outside domains? like Hotmail.com, gmail.com?
2. Is it from the specific user, or from the specific domain?
In addition , If your domain is in their blacklist, it will prevent the email to your domain .
I recommend you contact the sender to confirm that if your domain in their blacklist.
Best regards,
Niko Cheng
TechNet Community Support -
The SMTP server requires a secure connection or the client was not authenticated. -.
Hello
I wrote this code. I searched but could not find a solution for my problem.
private void button_sendemail_Click(object sender, EventArgs e)
string temp = "mygmailpassword";
System.Security.SecureString password = new System.Security.SecureString();
temp.ToCharArray().ToList().ForEach(p => password.AppendChar(p));
string mailfrom = "…@gmail.com";
string mailto = "…@yahoo.com";
string subject = "Hello";
string body = "Hello, I'm just writing this to say Hi!";
using (MailMessage mail = new MailMessage())
mail.From = new MailAddress(mailfrom);
mail.To.Add(mailto);
mail.Subject = subject;
mail.Body = body;
mail.IsBodyHtml = true;
// Can set to false, if you are sending pure text.
using (SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587))
smtp.UseDefaultCredentials = false;
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.Credentials = new NetworkCredential(mailfrom, password);
smtp.EnableSsl = true;
smtp.Send(mail);Hi ARZARE,
After some research and i have tested your code, it works fine on my side. But i used Hotmail
using (SmtpClient smtp = new SmtpClient("smtp.live.com", 587))
Per my understanding, you're trying to send from an @gmail.com address and they will require authentication, but you don't have credentials specified. Try sending from @hotmail.com or change smtp.EnableSsl
= false to see what happens.
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Why is the display on my MacBook Pro 2.2 when greyed out unreadable?
Such as when filling out forms (as for this forum) I can barely see the letters and nothing of the box outline What I type is readable I have tried adjusting the cohtrast but that does not seem to work Is this a sign of old age? Can it be fixed?
-
How do I edit a video in the middle on iPhone 5s?
I have an iPhone 5s. I have the iMovie app downloaded on it. How do I edit a video in the middle to delete some scenes using either iMovie to otherwise on the phone itself? All instructions I have researched tell me only how to trim the video from th
-
I start the Microsoft Remote Desktop app on the MAC. A verify Certificate comes up - I click continue. An alert pops up "End of file". I have allowed remote access on the Windows 8.1 PC. I have also allowed the Remote Desktop to work through the
-
[svn] 4814: Feature: Client side load balancing.
Revision: 4814 Author: [email protected] Date: 2009-02-03 10:44:03 -0800 (Tue, 03 Feb 2009) Log Message: Feature: Client side load balancing. QA: Yes Doc: Yes Checkintests: Pass Details: Added server side code for client side load balancing as descri
-
On our development database someone changed set administrator=no for my admin account. How do I set it back to admin? Its not letting me in. Thank you for your help! pakya