Skip to main content
hule
Silver ⭐️⭐️
Jun 15, 2023 3:15 PM UTC
Solved

Setup SMTP Apache Nifi mail server

Hi Everyone, 

I want to set up an outbound  Apache Nifi SMTP email server with Outlook so that It could send the outbound email. Does anybody have any suggestions for this? 

I have tried with the ListenSMTP processor but not sure how to set up the "Listening Port", and what other components it would require for that 

I have tried to follow this page: https://medium.com/@tspann/using-nifi-as-an-smtp-email-test-server-713677ac5b67

But not so sure how to configure that processor with Outlook, or even need outlook at all for that email server. 

Thank you, everyone, for reading. 

MattWho
MattWhoAnswer
Titanium ⭐️⭐️
Jun 16, 2023 4:43 PM UTC

@hule 
Welcome to the community.

I am not completely clear on your use case from your description.  What are you trying to accomplish?
Are you trying to generate emails within NiFi and send to an external outlook email address or are trying to have your NiFi receive emails?

It sounds like maybe sending an email from a NiFi dataflow to some email address.  If so, the processor you want to use is the putEmail processor.  As far as the SMTP settings, those need to come from the target SMTP server.  

For example:
Microsoft provides SMTP settings here:
https://support.microsoft.com/en-gb/office/pop-imap-and-smtp-settings-8361e398-8af4-4e97-b147-6c6c4ac95353

Google Gmail provides SMTP settings here:
https://support.google.com/a/answer/176600?hl=en


If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.

Thank you,

Matt

5 replies

DianaTorres
Community Manager
Community Manager
Jun 15, 2023 4:20 PM UTC

@hule Welcome to the Cloudera Community!

To help you get the best possible solution, I have tagged our NiFi experts @MattWho @SAMSAL  who may be able to assist you further.

Please keep us updated on your post, and we hope you find a satisfactory solution to your query.

Translate
Regards, Diana Torres, Senior Community Moderator
MattWho
Titanium ⭐️⭐️
MattWhoAnswer
Titanium ⭐️⭐️
Jun 16, 2023 4:43 PM UTC

@hule 
Welcome to the community.

I am not completely clear on your use case from your description.  What are you trying to accomplish?
Are you trying to generate emails within NiFi and send to an external outlook email address or are trying to have your NiFi receive emails?

It sounds like maybe sending an email from a NiFi dataflow to some email address.  If so, the processor you want to use is the putEmail processor.  As far as the SMTP settings, those need to come from the target SMTP server.  

For example:
Microsoft provides SMTP settings here:
https://support.microsoft.com/en-gb/office/pop-imap-and-smtp-settings-8361e398-8af4-4e97-b147-6c6c4ac95353

Google Gmail provides SMTP settings here:
https://support.google.com/a/answer/176600?hl=en


If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.

Thank you,

Matt

Translate
hule
huleAuthor
Silver ⭐️⭐️
Jun 28, 2023 4:31 PM UTC

@MattWho Thank you for your input

Translate
DianaTorres
Community Manager
Community Manager
Jun 28, 2023 1:32 AM UTC

@hule Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks

Translate
Regards, Diana Torres, Senior Community Moderator
hule
huleAuthor
Silver ⭐️⭐️
Jun 28, 2023 4:30 PM UTC

@DianaTorresI just marked resolved, Apology for my late reply. Thank you

Translate