-1

I have an EC2 running Ubuntu with Kafka installed, I've installed mailutils on the server because I have a script monitoring diskspace on the box and to email me when it reaches a certain threshold eg: 80%.

The Kafka server I've locked down to internal use, if I open all the ports on my outbound security group I can receive the warning from the script to my email.

I would like to lock this down to a port number on my outbound security group but can't seem to do it, I've tried ports 465 and 587. I have looked around online but nothing I found to do what I need, does anyone know what port it is?

Gman
  • 107

1 Answers1

1

You're probably looking for TCP port 25.

https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol

SMTP by default uses TCP port 25. The protocol for mail submission is the same, but uses port 587. SMTP connections secured by SSL, known as SMTPS, default to port 465 (nonstandard, but sometimes used for legacy reasons).