ActionMailer::MailDeliveryJob failing with Net::SMTPSyntaxError error

Problem

The ActionMailer::MailDeliveryJob is failing repeatedly due to Net::SMTPSyntaxError, which is impacting the groupimport error budget. These failures occur when there are syntax issues in SMTP communication, likely caused by invalid recipient email addresses.

Kibana logs - internal only

Affected integrations

  • Pipeline status emails

Impact

  • Repeated job failures
  • Affecting groupimport error budget
  • Potential system resource waste from retrying invalid deliveries

Proposed solution

Update the integration to not enqueue a ActionMailer::MailDeliveryJob for invalid emails. This way, integrations already configured with an invalid email will no longer attempt to send the email.

Edited by Rodrigo Tomonari