The SMTP Mail Writer fails with an error that the SMTP server need a fully qualified hostname

It can happen that your SMTP Server is configured to only accept calls from clients that provide their fully qualified domain name (FQDN). In those cases, you might get an error from the SMTP Mail Writer component that looks like:

An unexpected RCPT response was received: 504 5.5.2 : Helo command rejected: need fully-qualified hostname, expected 250

Such an error message comes from the SMTP server when it is configured to only accept calls from clients that provide their FQDN.

The HELO command is the initial command that an SMTP client sends to the SMTP server to establish a connection. In this case, the SMTP Mail Writer component send this HELO command to the SMTP server:

HELO pipeline-pilot-server-name

But the SMTP server is configured to require the FQDN like:

HELO pipeline-pilot-server-name.domain.com

Since it is not possible to modify the name the SMTP Mail Writer component sends, we have to use another method.

Starting with Pipeline Pilot 2024, there is a Python example protocol originally developed to support sending emails using TLS which is not supported by the standard SMTP Mail Writer component. This example protocol is located as:

"Protocols\\Examples\\Integration\\Programming\\Python\\Useful Basics\\Writers\\Python (on Server) Send Emails Example".

Should you have a Pipeline Pilot version older than 2024 which does not contain this protocol by default, you can download the same protocol from this Community Post:

https://r1132100503382-eu1-3dswym.3dexperience.3ds.com/community/swym:prd:R1132100503382:community:FV3_L4yySoKZ4k2DYvnQ6Q?content=swym:prd:R1132100503382:qnaquestion:k9wvQmOnTDqufbAICq2OXQ

In addition to providing the FQDN to the SMTP Server, this also support TLS and allows you to use a non-default port for the SMTP Server.