TAC is not sending task failure notifications

Problem Description

The SMTP server is up and running, and the Configuration page is configured properly. However, TAC is not sending task failure notifications.

 

Root Cause

The mail server is not configured to relay messages, or the user is not allowed to use the given SMTP server as a relay.

 

The TAC technical.log shows the following exception:

2018-08-07 22:20:29 ERROR NotificationExec - Invalid Addresses
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1863)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1119)
at javax.mail.Transport.send0(Transport.java:195)
at javax.mail.Transport.send(Transport.java:124)
at org.talend.administrator.email.MailSender.sendHtmlMail(MailSender.java:61)
at org.talend.administrator.notification.NotificationExec.fireMail(NotificationExec.java:112)
at org.talend.administrator.notification.NotificationExec.fire(NotificationExec.java:57)
at org.talend.administrator.scheduler.jobs.RemoteTaskExecution.finalizeJobExecution(RemoteTaskExecution.java:799)
at org.talend.administrator.scheduler.jobs.RemoteTaskExecution.notifyTaskStatusEvent(RemoteTaskExecution.java:726)
at org.talend.administrator.scheduler.jobs.RemoteTaskExecution.access$000(RemoteTaskExecution.java:78)
at org.talend.administrator.scheduler.jobs.RemoteTaskExecution$1.notifyEvent(RemoteTaskExecution.java:756)
at org.talend.administrator.scheduler.business.listener.TaskListenerRegister.notifyEvent(TaskListenerRegister.java:118)
at org.talend.administrator.scheduler.business.ExecutionTaskHandler.notifyTaskUpdated(ExecutionTaskHandler.java:1984)
at org.talend.administrator.scheduler.business.ExecutionTaskHandler.onUpdateTaskOperations(ExecutionTaskHandler.java:1979)
at org.talend.administrator.scheduler.business.ExecutionTaskHandler$4.run(ExecutionTaskHandler.java:1966)
at org.talend.administrator.common.persistence.hibernate.HibernateTransactionHolder.executeFinalActions(HibernateTransactionHolder.java:287)
at org.talend.administrator.common.persistence.hibernate.HibernateTransactionHolder.commitWithFlush(HibernateTransactionHolder.java:116)
at org.talend.administrator.common.persistence.hibernate.HibernateTransactionHolder.commitWithFlushAndBeginNewTransaction(HibernateTransactionHolder.java:197)
at org.talend.administrator.scheduler.business.ExecutionTaskRefresher.checkExecutionTaskInternal(ExecutionTaskRefresher.java:636)
at org.talend.administrator.scheduler.business.ExecutionTaskRefresher.checkExecutionTask(ExecutionTaskRefresher.java:394)
at org.talend.administrator.scheduler.jobs.RemoteTaskExecution.waitForEndJob(RemoteTaskExecution.java:602)
at org.talend.administrator.scheduler.jobs.RemoteTaskExecution.executeRemoteJob(RemoteTaskExecution.java:506)
at org.talend.administrator.scheduler.jobs.RemoteTaskExecution.execute(RemoteTaskExecution.java:248)
at org.talend.administrator.scheduler.jobs.RemoteExecutionSwitcher.execute(RemoteExecutionSwitcher.java:50)
at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1716)
... 25 more

 

Solution

The following are common reasons this may occur. Check, and if necessary, fix any problems in these areas, then set up the SMTP server relay.

  • You are not authenticated (login before sending)
  • The Recipient is not in the list of domains allowed to relay to
  • The IP address from which you are connecting is not on the whitelist (also known as, mynetworks in postfix context)

For information on granting mailbox permissions in Office 365, see the Microsoft Support documentation How to grant Exchange and Outlook mailbox permissions in Office 365 dedicated page.

Version history
Revision #:
3 of 3
Last update:
‎03-21-2019 01:54 PM
Updated by:
 
Contributors