Hi list,

Have anyone observed problems with servicemix trying to authenticate against SMTP server that does not support authentication? I have a case, of course it happens only on site. It fails with following exception:

javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:590)
            at javax.mail.Service.connect(Service.java:313)
at org.apache.servicemix.mail.MailSenderEndpoint.sendMail(MailSenderEndpoint.java:207) at org.apache.servicemix.mail.MailSenderEndpoint.processInOnly(MailSenderEndpoint.java:94)

Setting 'mail.smtp.auth' JavaMail property to 'false' had no effect.

Finally, I narrowed down the problem to the following line in MailSenderEndpoint:

transport.connect(config.getHost(), config.getPort(), config.getUsername(), config.getPassword());

When I changed it to just "transport.connect()" it started to work fine.
Anyone with similar experience?

--
Mikolaj Rydzewski <[email protected]>

Reply via email to