Error with SMTP setup


#1

Hi All,

We are trying to set up SMTP in Canvas but are receiving an error when trying to test the config. We have set the SMTP server, Port, etc, the same as Pulse (which is on the same server and sending emails ok), but when we test the SMTP config in Canvas we get the error below.

Any suggestions as to what may be our problem?

Thanks,
David

[org.simplejavamail.mailer.internal.mailsender.MailSenderException: Third party error]javax.mail.AuthenticationFailedException: 334 VXNlcm5hbWU6

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:932)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:843)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:748)
at javax.mail.Service.connect(Service.java:388)
at javax.mail.Service.connect(Service.java:246)
at javax.mail.Service.connect(Service.java:195)
at org.simplejavamail.mailer.internal.mailsender.MailSender.sendMailClosure(MailSender.java:190)
[wrapped] org.simplejavamail.mailer.internal.mailsender.MailSenderException: Third party error
at org.simplejavamail.mailer.internal.mailsender.MailSender.sendMailClosure(MailSender.java:203)
at org.simplejavamail.mailer.internal.mailsender.MailSender.send(MailSender.java:163)
at org.simplejavamail.mailer.Mailer.sendMail(Mailer.java:314)
at org.simplejavamail.mailer.Mailer.sendMail(Mailer.java:305)
at com.cubewise.h.run(SourceFile:155)
at com.cubewise.rest.api.o.sendProcessedEmails(SourceFile:57)
at com.cubewise.rest.api.o.batchProcessEmails(SourceFile:273)
at com.cubewise.rest.api.EmailAction.sendEmail(SourceFile:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at jodd.madvoc.ActionRequest.invokeActionMethod(ActionRequest.java:355)
at jodd.madvoc.ActionRequest$2.invoke(ActionRequest.java:241)
at jodd.madvoc.ActionRequest.invoke(ActionRequest.java:345)
at jodd.madvoc.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:71)
at jodd.madvoc.interceptor.BaseActionInterceptor.invoke(BaseActionInterceptor.java:38)
at jodd.madvoc.ActionRequest.invoke(ActionRequest.java:345)
at jodd.madvoc.ActionRequest$1.invoke(ActionRequest.java:222)
at jodd.madvoc.ActionRequest.invoke(ActionRequest.java:345)
at jodd.madvoc.component.MadvocController.invoke(MadvocController.java:164)
at com.cubewise.rest.RestServletFilter.doFilter(SourceFile:65)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.filters.RestCsrfPreventionFilter.doFilter(RestCsrfPreventionFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.filters.ExpiresFilter.doFilter(ExpiresFilter.java:1201)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.cubewise.rest.RestSecurityFilter.doFilter(SourceFile:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)


#2

Hi @anz.fin.all.mailbox,

Did you copy and paste the credentials? Could you try to manually type it in to eliminate possibly special characters from being included.

Though normally it will pick it up right away, could you try to restart the Canvas Server service and test it out again?

Let us know how it goes.


Paul


#3

Hi @plim,

I’ve tried manually typing in the details and restarting the Canvas Server service but it’s returning the same error.

It appears that we don’t require any SMTP username/password, they are blank in Pulse anyway. Could this be the issue?

Thanks,
David


#4

Hi David,

Depending on the Canvas version that you have, there was an update to allow a no username/password type of setup as long as it is on the same domain.

Which version of Canvas are you in? And if you do not need to enter any username and password in Pulse, have you tried the same with Canvas?


Paul


#5

Hi @plim,

We are on Canvas version 2.0.7. I had already removed the SMTP username and password in Canvas.

Thanks,
David


#6

Hi @anz.fin.all.mailbox,

That is a known bug on that version and older releases. This has since been fixed in the recent version.

A number of other optimizations and features have been added as well since. You can download the latest one from here:

https://forum.cubewise.com/t/release-canvas-v3-0-1/1694

I would advice to upgrade to that version instead.

Note that it has to be a full install (Canvas Application Server and applications).


Paul