ListenSMTP

Deprecation notice:

This component is deprecated and will be removed in NiFi 2.x.

Please consider using one the following alternatives: No alternative components suggested.

Description:

This processor implements a lightweight SMTP server to an arbitrary port, allowing nifi to listen for incoming email. Note this server does not perform any email validation. If direct exposure to the internet is sought, it may be a better idea to use the combination of NiFi and an industrial scale MTA (e.g. Postfix). Threading for this processor is managed by the underlying smtp server used so the processor need not support more than one thread.

Tags:

listen, email, smtp

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Listening PortSMTP_PORTThe TCP port the ListenSMTP processor will bind to.NOTE that on Unix derivative operating systems this port must be higher than 1024 unless NiFi is running as with root user permissions.
Maximum number of SMTP connectionSMTP_MAXIMUM_CONNECTIONS1The maximum number of simultaneous SMTP connections.
SMTP connection timeoutSMTP_TIMEOUT60 secondsThe maximum time to wait for an action of SMTP client.
SMTP Maximum Message SizeSMTP_MAXIMUM_MSG_SIZE20 MBThe maximum number of bytes the server will accept.
SSL Context ServiceSSL_CONTEXT_SERVICEController Service API:
RestrictedSSLContextService
Implementation: StandardRestrictedSSLContextService
The Controller Service to use in order to obtain an SSL Context. If this property is set, messages will be received over a secure connection.
Client AuthCLIENT_AUTH
  • NONE
  • REQUIRED
The client authentication policy to use for the SSL Context. Only used if an SSL Context Service is provided.
SMTP hostnameSMTP_HOSTNAMEThe hostname to be embedded into the banner displayed when an SMTP client connects to the processor TCP port .

Relationships:

NameDescription
successAll new messages will be routed as FlowFiles to this relationship

Reads Attributes:

None specified.

Writes Attributes:

NameDescription
smtp.heloThe value used during HELO
smtp.certificates.*.serialThe serial numbers for each of the certificates used by an TLS peer
smtp.certificates.*.principalThe principal for each of the certificates used by an TLS peer
smtp.srcThe source IP and port of the SMTP connection
smtp.fromThe value used during MAIL FROM (i.e. envelope)
smtp.recipient.*The values used during RCPT TO (i.e. envelope)
mime.typeMime type of the message

State management:

This component does not store state.

Restricted:

This component is not restricted.

Input requirement:

This component does not allow an incoming relationship.

System Resource Considerations:

None specified.