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

Email server check is not perfect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.4, 4.7.17, 4.9.0
    • 4.1.0
    • None
    • None
    • 4.1RC1

      In my case, I tried to configure my mail server to be mail.ametys.org, port 25, and the test button told me it was OK.

      I was not in the local network, so the port 25 should not be available for me.

      After testing to send some mails, none of them were sent and I have the following error

      2018-02-16 18:06:29,875 ERROR [org.ametys.core.schedule.AmetysJob$org.ametys.core.schedule.SendMail] (AmetysRuntimeScheduler_Worker-8;) An exception occured during the execution of the Schedulable 'org.ametys.core.schedule.SendMail'
      javax.mail.SendFailedException: Invalid Addresses;
        nested exception is:
          com.sun.mail.smtp.SMTPAddressFailedException: 504 5.5.2 <maui>: Helo command rejected: need fully-qualified hostname
      
          at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1862)
          at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1118)
          at org.ametys.core.util.mail.SendMailHelper$MailSender.sendMail(SendMailHelper.java:669)
          at org.ametys.core.util.mail.SendMailHelper.sendMail(SendMailHelper.java:284)
          at org.ametys.core.util.mail.SendMailHelper.sendMail(SendMailHelper.java:163)
          at org.ametys.core.util.mail.SendMailHelper.sendMail(SendMailHelper.java:139)
          at org.ametys.core.util.mail.SendMailHelper.sendMail(SendMailHelper.java:121)
          at org.ametys.core.util.mail.SendMailHelper.sendMail(SendMailHelper.java:102)
          at org.ametys.plugins.core.impl.schedule.SendMailSchedulable.execute(SendMailSchedulable.java:63)
          at org.ametys.core.schedule.AmetysJob.execute(AmetysJob.java:144)
          at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
          at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
      Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 504 5.5.2 <maui>: Helo command rejected: need fully-qualified hostname
      
          at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1762)
          ... 11 more
      
      

            Unassigned Unassigned
            pgros Pierre Gros (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: