Skip to main content

I am trying to find out how to route email to FME Server so Publications can pick it up and process accordingly. The problem is that I cannot find anything in any tutorial or piece of documentation. Here's a scenario:

  1. We use Office 365 and use email in the form <first.lastname@company.com>
  2. I would like to set up a subdomain so email sent to @fme.company.com is routed to the fme server at fme.company.com

My understanding is that an MX record needs to be set up on the firewall. The primary email server receives all email addressed to @company.com. It would then need to know what to do with email addressed to a subdomain, so if an MX record exists, it knows to forward/route to a different SMTP server. If the subdomain is unknown, it would bounce back with an error message to the sender. Hope I'm getting this right and it makes sense.

However I'm not sure what else needs to be set up in order to route SMTP traffic to FME Server. Any help would be greatly appreciated, especially from the FME experts team ex: @GerhardAtSafe. Thanks in advance!

Sincerely,

 

Dave B

Hi @dbaldacchino, would you mind elaborating a little more on this?

 


Hi @dbaldacchino, would you mind elaborating a little more on this?

 

 

Sure @MattAtSafe. I want to send email so FME Server receives it and a Publication processes it via Email lSMTP]. How can I get email routed to the FME server's SMTP server? That's the gist of the problem and as far as I can tell, it's not an FME server setup exercise, but something that has to be done outside of FME Server. For example right now if I simply send a message to test@fme.company.com, it bounces back immediately.


Hi @dbaldacchino,

 

I would suggest that the easiest way to receive emails would be to use an IMAP publication rather than SMTP. Could that an option for you? Problem with IMAP is that FME Server will need to Poll and it might not be immediate unlike SMTP.

 

For SMTP - I think this guide should be useful for you to set up the subdomain in Outlook 365 for setting up the relay: https://technet.microsoft.com/en-us/library/dn736027(v=exchg.150).aspx

 

This forum thread might also be useful: https://community.spiceworks.com/topic/668539-office-365-mail-routing-to-a-subdomain

For the FME Server side you need to ensure that port 25 is opened (you can change the port if you need to) and the publication is listening for the correct username.


Hi @dbaldacchino,

 

I would suggest that the easiest way to receive emails would be to use an IMAP publication rather than SMTP. Could that an option for you? Problem with IMAP is that FME Server will need to Poll and it might not be immediate unlike SMTP.

 

For SMTP - I think this guide should be useful for you to set up the subdomain in Outlook 365 for setting up the relay: https://technet.microsoft.com/en-us/library/dn736027(v=exchg.150).aspx

 

This forum thread might also be useful: https://community.spiceworks.com/topic/668539-office-365-mail-routing-to-a-subdomain

For the FME Server side you need to ensure that port 25 is opened (you can change the port if you need to) and the publication is listening for the correct username.

Thanks @MattAtSafe, I'll review the info.

 

 

As to IMAP vs. SMTP, the reason I'm thinking SMTP is more flexible is that the admin can set up publications looking at various email addresses on the fly. I'm thinking of each unique email address as a unique task/command I want to process. Each can post a unique topic that workspaces subscribe to and run whatever automation they are designed to execute.

 

 

With IMAP, I would need to manage separate mailboxes externally in order to do the same thing, correct? My only other thought with IMAP is that in order to avoid having to manage multiple mailboxes, I could monitor just one mailbox, post a topic and thus run a workspace that parses out the subject line (the subject line would host the "command" or task that needs to be run...Ex: Rename database, Delete project, etc.). Based on that subject line then I would call a secondary workspace via the workspace runner to execute the relevant automation.

 

 

Any thoughts about the above? It would help us determine the best and easiest way forward. Currently I feel SMTP would be the way to go, even though it might be a bit harder to initially set up to have relevant emails sent to the FME server. Thanks.

 


Hi @dbaldacchino, There are definitely lots of considerations when thinking about how to set up your email notifications. I'd like to mention two more if you are using a newer version of FME.

1) You can use Automations to filter the subject and then process the email from there. We have a tutorial that looks for files being dropped in a folder, but it could work similarly with IMAP Publications.

https://knowledge.safe.com/articles/91589/run-a-workspace-when-data-arrives-in-a-directory.html

2) SMTP is not supported in our Fault Tolerant Installations.

https://knowledge.safe.com/questions/86142/in-fme-server-2018-can-the-smtp-publisher-be-used.html


Hi @dbaldacchino, There are definitely lots of considerations when thinking about how to set up your email notifications. I'd like to mention two more if you are using a newer version of FME.

1) You can use Automations to filter the subject and then process the email from there. We have a tutorial that looks for files being dropped in a folder, but it could work similarly with IMAP Publications.

https://knowledge.safe.com/articles/91589/run-a-workspace-when-data-arrives-in-a-directory.html

2) SMTP is not supported in our Fault Tolerant Installations.

https://knowledge.safe.com/questions/86142/in-fme-server-2018-can-the-smtp-publisher-be-used.html

Hi @richardatsafe, the two links you posted are both the same. Do you have more info about fault tolerant installations?


Hi @richardatsafe, the two links you posted are both the same. Do you have more info about fault tolerant installations?

Thanks for letting me know @drc43. The proper link has been updated. The below article is an overview, and our documentation has the details.

Fault Tolerant Overview

Fault Tolerant Documentation


Thanks for letting me know @drc43. The proper link has been updated. The below article is an overview, and our documentation has the details.

Fault Tolerant Overview

Fault Tolerant Documentation

Thanks a lot @richardatsafe. Yes I'm planning on utilizing these features on FME Cloud, which should be on the latest stable build. Subject line parsing would work as long as the email is inistiated from some sort of template or the users are disciplined with consistency 🙂 I will definietly read through and understand the Fault tolerant articles as it relates to both options.


Reply