Skip to main content
Solved

FME Server SMTP on EC2

  • June 21, 2018
  • 6 replies
  • 52 views

redgeographics
Celebrity
Forum|alt.badge.img+60

I'm trying to use the built-in SMTP of an FME Server running on EC2 but I can't seem to get it to work. I've opened port 25 in the EC2 security group and there's, as far as I can tell, nothing else using that port. Any ideas?

Best answer by david_r

Hi Hans, it's probably way too late for you, but I'll post this here for anybody else stumbling upon the same issue.

In addition to opening port 25 in the AWS security group, you'll have to manually add an inbound rule in the Windows firewall on your EC2 instance. Here's from Windows 10:

Tested with EC2 instances running Windows and FME Server 2018.1.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

david_r
Celebrity
  • 8394 replies
  • Best Answer
  • October 3, 2018

Hi Hans, it's probably way too late for you, but I'll post this here for anybody else stumbling upon the same issue.

In addition to opening port 25 in the AWS security group, you'll have to manually add an inbound rule in the Windows firewall on your EC2 instance. Here's from Windows 10:

Tested with EC2 instances running Windows and FME Server 2018.1.


david_r
Celebrity
  • 8394 replies
  • October 3, 2018

Hi Hans, it's probably way too late for you, but I'll post this here for anybody else stumbling upon the same issue.

In addition to opening port 25 in the AWS security group, you'll have to manually add an inbound rule in the Windows firewall on your EC2 instance. Here's from Windows 10:

Tested with EC2 instances running Windows and FME Server 2018.1.

I'll just add that for production purposes you may want to be a bit more specific who and how you'll allow access to port 25, but for e.g. training and test purposes the above should be ok.

redgeographics
Celebrity
Forum|alt.badge.img+60
  • Author
  • Celebrity
  • 3704 replies
  • October 4, 2018

Hi Hans, it's probably way too late for you, but I'll post this here for anybody else stumbling upon the same issue.

In addition to opening port 25 in the AWS security group, you'll have to manually add an inbound rule in the Windows firewall on your EC2 instance. Here's from Windows 10:

Tested with EC2 instances running Windows and FME Server 2018.1.

Thanks David, yes, a bit too late for that course back in june but good to know for future reference.

 

 


takashi
Celebrity
  • 7843 replies
  • January 3, 2019

Hello,

I encountered a similar problem.

I have installed FME Server 2018.1.1.1 into Linux (CentOS 7) managed by AWS EC2.

The FME Server is working fine but the built-in SMTP - an Email (SMTP) Publisher won't receive mails.

According to relevant documentation, the port number for receiving mails is 7125 on Linux, so I have opened it through AWS settings. "telnet" from other machine reaches the SMTP server via 7125 port, so I think the port is opened definitely. 

# telnet <domain> 7125
Trying **.***.***.***...
Connected to <domain>.
Escape character is '^]'.
220 ip-***-**-**-**.ap-northeast-1.compute.internal ESMTP SubEthaSMTP 3.1.7
...

Is there any other settings required to get the built-in SMTP work?


takashi
Celebrity
  • 7843 replies
  • January 5, 2019

Hello,

I encountered a similar problem.

I have installed FME Server 2018.1.1.1 into Linux (CentOS 7) managed by AWS EC2.

The FME Server is working fine but the built-in SMTP - an Email (SMTP) Publisher won't receive mails.

According to relevant documentation, the port number for receiving mails is 7125 on Linux, so I have opened it through AWS settings. "telnet" from other machine reaches the SMTP server via 7125 port, so I think the port is opened definitely. 

# telnet <domain> 7125
Trying **.***.***.***...
Connected to <domain>.
Escape character is '^]'.
220 ip-***-**-**-**.ap-northeast-1.compute.internal ESMTP SubEthaSMTP 3.1.7
...

Is there any other settings required to get the built-in SMTP work?

I found a solution.

  1. Open port 25 (AWS setting).
  2. Edit the "postfix" configuration file (/exc/postfix/main.cf) to relay mails incoming via port 25 to localhost:1725.
  3. Restart postfix.

Since the built-in SMTP server of FME Server is listening port 1725 by default on Linux, emails incoming via port 25 will be transferred to the built-in SMTP server by postfix with the configuration above.

Please inform me if you know a more sophisticated way.

 


  • 8 replies
  • February 8, 2022

Just in case someone searches on this topic in the future. AWS blocks SMTP traffic by default now (started 2020) and you have to apply for an exemption. In our case it took about 15 minutes to get it. https://aws.amazon.com/ec2/faqs/#Are_there_any_limitations_in_sending_email_from_EC2_instances