Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3867

Mail system alert can be sent to nobody

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0, 4.7.3
    • None
    • None
    • None
    • 4.8.0 M3

      The RRDsFeederSchedulable send mail to the config "smtp.mail.sysadminto" that is not mandatory

      It leads to

      jakarta.mail.SendFailedException: No recipient addresses
      	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1250)
      	at org.ametys.core.util.mail.SendMailHelper$MailSender._sendMail(SendMailHelper.java:1007)
      	at org.ametys.core.util.mail.SendMailHelper$MailSender.sendMail(SendMailHelper.java:912)
      	at org.ametys.core.util.mail.SendMailHelper$MailBuilder.sendMail(SendMailHelper.java:668)
      	at org.ametys.runtime.plugins.admin.jvmstatus.monitoring.RRDsFeederSchedulable._sendAlertMail(RRDsFeederSchedulable.java:188)

      Should not try to send mail or send it to the "sender" adress : "smtp.mail.from"

            raphael Raphaël Franchet
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: