Configuring FME Server to Receive Email

FME Server can receive email via Simple Mail Transfer Protocol (SMTP) or Internet Message Access Protocol (IMAP). Using Automations, you can publish emails to Notification Service topics using either the Email - SMTP or the Email - IMAP trigger.

SMTP or IMAP?

When deciding between SMTP or IMAP, keep in mind the following:

  • IMAP is a pull-based mechanism. The Email (IMAP) Trigger polls an existing IMAP server (such as imap.gmail.com) for messages. As long as IMAP access is enabled on the email account, no additional configuration is needed. However, because polling is conducted at intervals, FME Server may not receive email messages as immediately as those sent over SMTP.
  • SMTP is a push-based mechanism. FME Server acts as is its own lightweight SMTP server, and receives emails directly, rather than polling for them. As a result, emails may be sent to FME Server topics (and their subscribed workspaces) more immediately than emails delivered over IMAP.
  • SMTP functions only on an instance of FME Server with a proper DNS record (that is, the server is accessible over the internet). If your instance of FME Server runs locally or on an intranet, you must use IMAP.
  • SMTP is not supported in a fault tolerant installation of FME Server.

Changing the Default SMTP Port (Optional)

By default, SMTP operates over port 25 on Windows and port 7125 on Linux. If you want to change the default port (non-FME Cloud installations only), follow these steps:

Note: Be sure to configure your network firewall settings to allow transmission of emails to FME Server on the applicable port.

  1. Determine the port on the FME Server Core host that will be used to receive emails.
  2. Note: Be sure to configure your network firewall settings to allow transmission of emails to FME Server on this port.

  3. Open the SMTP publisher configuration file:
  4. <FMEServerDir>\Server\config\publishers\email.properties

  5. Locate parameter SMTP_PORT, and update the setting to the desired port. By default, this parameter is set to port 25 on Windows installations, and 7125 on Linux.
  6. Note: To specify a port under 1024 on Linux, configure either of the following:

    Elevated privilege on the FME Server System Services (run as root). For more information, see Starting and Stopping FME Server Manually.

    Port forwarding: Configure the FME Server Core to route and forward from a source port to a destination port. For example, route traffic on port 25 to port 7125.

  7. Restart the FME Server Core service.