Through "Pipeline Alerts" in Data Fusion, not able to send Emails

Hi All,
For Sending Email Alerts, upon completion of the data fusion pipeline, We have tried to setup Pipeline Alerts → (using) Email option.

with below parameters:

Run Condition: Completion
Sender: xyz@example.com (a sample email ID)
Recipients: xyz@example.com (a sample email ID)

Protocol: smtp
Host: localhost
port: 587

The Error we are getting is:
Error while running post action Email-1.

Can you please help, if there are any workarounds, which can help us resolve this ?

Thank you,
Ketul

Hi kpatadia,

Here are some suggestions that may help resolve the issue:

  • The error usually suggests an SMTP configuration issue. When configuring email alerts, please note the following, as quoted from the documentation:

    For email alerts, if your pipeline doesn’t have a long-running Dataproc cluster with Simple Mail Transfer Protocol (SMTP) server, enter the mail server or service’s information, such as its host and port requirements.

  • Try using a valid external SMTP host (public or enterprise) instead of localhost. For example, if you are using Gmail, you can use smtp.gmail.com as your host with port 587 for TLS or port 465 for SSL, along with an app password for authentication. You can refer to this documentation for complete details on how to send email using the Gmail SMTP server.

  • Ensure you don’t have any firewall or network restrictions.

  • Ensure you are using the latest supported version of Cloud Data Fusion.

  • Check your Data Fusion pipeline logs for detailed log analysis to further diagnose the issue.

  • Alternatively, instead of using native email alerts on Cloud Data Fusion Pipelines, you might want to consider Log-Based Alerting in Cloud Monitoring to trigger an alert based on a specific log event appearing in Cloud Logging.

1 Like