Release Automation

 View Only
  • 1.  Fail to send mail

    Posted Oct 04, 2018 04:50 PM

    HI: I'm trying to use send mail action, but I have the following error:




    The OS:


    [root@plrelautoapp10 logs]# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 7.3 (Maipo)


    In nolio_action_exe.log


    018-10-04 17:30:08,956 [job-65540-jobServer-65540-6:Send Email(P9402000.F9406000.E9407000):Send Email] INFO (com.nolio.platform.shared.datamodel.Action:383) - ------------------------About to execute action [Send Email(P9402000.F9406000.E9407000):Send Email]------------------------
    2018-10-04 17:30:13,964 [job-65540-jobServer-65540-6:Send Email(P9402000.F9406000.E9407000):Send Email] ERROR (com.nolio.platform.shared.datamodel.Action:129) - Failed to send mail
    javax.mail.MessagingException: [EOF]
    at com.sun.mail.smtp.SMTPTransport.issueCommand(
    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(
    at com.sun.mail.smtp.SMTPTransport.mailFrom(
    at com.sun.mail.smtp.SMTPTransport.sendMessage(
    at javax.mail.Transport.send0(
    at javax.mail.Transport.send(
    at com.nolio.platform.shared.utils.EmailUtils.send(
    at com.nolio.platform.shared.executables.actions.SendEmailAction.execute(
    at com.nolio.platform.shared.datamodel.ActionExecutionState.localExecution(
    at com.nolio.platform.shared.datamodel.ActionExecutionState.access$500(
    at com.nolio.platform.shared.datamodel.ActionExecutionState$2.execAction(
    at com.nolio.platform.shared.datamodel.ActionExecutionState.exec(
    at java.util.concurrent.Executors$
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$
    at com.nolio.platform.shared.flowcontrol.LocalFlowController$JobBoundThreadFactory$
    2018-10-04 17:30:13,965 [job-65540-jobServer-65540-6:Send Email(P9402000.F9406000.E9407000):Send Email] INFO (com.nolio.platform.shared.datamodel.Action:386) - ------------------------Finished action [Send Email(P9402000.F9406000.E9407000):Send Email] result [false, Failed to send email. Please make sure SMTP settings are correct.<br>Reason: [EOF]]------------------------



  • 2.  Re: Fail to send mail

    Broadcom Employee
    Posted Oct 04, 2018 05:30 PM



    It looks like the username field has a port number. That probably needs to be changed to a valid username field for it to authenticate with the SMTP server. If that doesn't work then another option might be to try it with a gmail account just to see it work and maybe some of the error messages if you change some values. 


    I think the problem is somewhere in the input values. And which input values are *really* required will depend on how your smtp server has been configured. I know that I use a smtp server that is configured to only allow emails sent from certain workstations. So I needed to get my specific hostname on a list in order to use that mail server. Not sure if yours is setup similarly. But things like this exist. I've also setup test smtp servers too and having access (or someone with access) to their log files to see their perspective and get their guidance in which fields should be specified is very helpful. 


    Kind regards,


  • 3.  Re: Fail to send mail

    Broadcom Employee
    Posted Oct 09, 2018 12:25 AM



    Did you review and try Gregg's suggestion?

    If you still have the problem, please share your attempt and result.




  • 4.  Re: Fail to send mail

    Posted Oct 11, 2018 11:50 AM

    Hi, I'm checking the configuration with the SMTP admin group. I'll share the results ASAP.

  • 5.  Re: Fail to send mail
    Best Answer

    Posted Oct 16, 2018 01:38 PM

    Hi, the issue was found in the smtp server configuration. Once the admin group reconfigured it, I was able to send mails.