org.sonatype.micromailer.MailCompositionMessagingException

tip

Check if all the configurations are right. Double check if the email protocol you're using is the right one for your email service, and if the port, host address, username and password are all correct.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Our Nexus installation cannot send e-mails through SMTP if the username and password fields are empty. When I try to send a test message, I get the following exceptions in file wrapper.log: INFO | jvm 1 | 2009/12/03 08:14:49 | 2009-12-03 08:14:49,690 INFO [org.sonatype.micromailer.EMailer:default] - Handling mail request Nexus INFO | jvm 1 | 2009/12/03 08:14:49 | 2009-12-03 08:14:49,790 ERROR [org.sonatype.nexus.email.SmtpSettingsValidator:default] - Unable to send e-mail INFO | jvm 1 | 2009/12/03 08:14:49 | org.sonatype.micromailer.MailCompositionMessagingException: MessagingException occured! INFO | jvm 1 | 2009/12/03 08:14:49 | at org.sonatype.micromailer.imp.DefaultMailSender.sendMail(DefaultMailSender.java:64) INFO | jvm 1 | 2009/12/03 08:14:49 | at org.sonatype.micromailer.imp.DefaultEMailer$RunnableMailer.run(DefaultEMailer.java:188) INFO | jvm 1 | 2009/12/03 08:14:49 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) INFO | jvm 1 | 2009/12/03 08:14:49 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) INFO | jvm 1 | 2009/12/03 08:14:49 | at java.lang.Thread.run(Thread.java:619) INFO | jvm 1 | 2009/12/03 08:14:49 | Caused by: javax.mail.AuthenticationFailedException INFO | jvm 1 | 2009/12/03 08:14:49 | at javax.mail.Service.connect(Service.java:306) INFO | jvm 1 | 2009/12/03 08:14:49 | at javax.mail.Service.connect(Service.java:156) INFO | jvm 1 | 2009/12/03 08:14:49 | at javax.mail.Service.connect(Service.java:105) INFO | jvm 1 | 2009/12/03 08:14:49 | at org.sonatype.micromailer.imp.DefaultMailSender.sendMail(DefaultMailSender.java:53) INFO | jvm 1 | 2009/12/03 08:14:49 | ... 4 more If I enter a valid username and the corresponding password, Nexus sends the test message successfully. However, the host running Nexus is a "trusted host" and is allowed to relay mails through our SMTP server. Thus, no authentication is required. I double checked the system configuration with a telnet session. From the machine running Nexus, I connected as the user who runs Nexus to our mail server. I could send a test mail without any authentication.
    via by Martin Burger,
  • Our Nexus installation cannot send e-mails through SMTP if the username and password fields are empty. When I try to send a test message, I get the following exceptions in file wrapper.log: INFO | jvm 1 | 2009/12/03 08:14:49 | 2009-12-03 08:14:49,690 INFO [org.sonatype.micromailer.EMailer:default] - Handling mail request Nexus INFO | jvm 1 | 2009/12/03 08:14:49 | 2009-12-03 08:14:49,790 ERROR [org.sonatype.nexus.email.SmtpSettingsValidator:default] - Unable to send e-mail INFO | jvm 1 | 2009/12/03 08:14:49 | org.sonatype.micromailer.MailCompositionMessagingException: MessagingException occured! INFO | jvm 1 | 2009/12/03 08:14:49 | at org.sonatype.micromailer.imp.DefaultMailSender.sendMail(DefaultMailSender.java:64) INFO | jvm 1 | 2009/12/03 08:14:49 | at org.sonatype.micromailer.imp.DefaultEMailer$RunnableMailer.run(DefaultEMailer.java:188) INFO | jvm 1 | 2009/12/03 08:14:49 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) INFO | jvm 1 | 2009/12/03 08:14:49 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) INFO | jvm 1 | 2009/12/03 08:14:49 | at java.lang.Thread.run(Thread.java:619) INFO | jvm 1 | 2009/12/03 08:14:49 | Caused by: javax.mail.AuthenticationFailedException INFO | jvm 1 | 2009/12/03 08:14:49 | at javax.mail.Service.connect(Service.java:306) INFO | jvm 1 | 2009/12/03 08:14:49 | at javax.mail.Service.connect(Service.java:156) INFO | jvm 1 | 2009/12/03 08:14:49 | at javax.mail.Service.connect(Service.java:105) INFO | jvm 1 | 2009/12/03 08:14:49 | at org.sonatype.micromailer.imp.DefaultMailSender.sendMail(DefaultMailSender.java:53) INFO | jvm 1 | 2009/12/03 08:14:49 | ... 4 more If I enter a valid username and the corresponding password, Nexus sends the test message successfully. However, the host running Nexus is a "trusted host" and is allowed to relay mails through our SMTP server. Thus, no authentication is required. I double checked the system configuration with a telnet session. From the machine running Nexus, I connected as the user who runs Nexus to our mail server. I could send a test mail without any authentication.
    via by Martin Burger,
  • mail configuration in SpagoBI v3.3 is not working
    via by Unknown author,
    • org.sonatype.micromailer.MailCompositionMessagingException: MessagingException occured! at org.sonatype.micromailer.imp.DefaultMailSender.sendMail(DefaultMailSender.java:64) at org.sonatype.micromailer.imp.DefaultEMailer$RunnableMailer.run(DefaultEMailer.java:188) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: javax.mail.AuthenticationFailedException at javax.mail.Service.connect(Service.java:306) at javax.mail.Service.connect(Service.java:156) at javax.mail.Service.connect(Service.java:105) at org.sonatype.micromailer.imp.DefaultMailSender.sendMail(DefaultMailSender.java:53) ... 4 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    AxeloAxelo
    1 times, last one,
    mauritiusmauritius
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    15 more bugmates