Egress Port 25 (SMTP) redirecting to itself (localhost)

0

Hi,
I'm having a strange behavior.

From my EC2 Instance, if i try to:
telnet externalhost 25
telnet anyotherexternalhost 25

It connects back to it instance's own mail server (localhost 25).

I'm using a cPanel instance at Amazon, there's nothing on iptables -L -n.

Also, if I try to use any other port, it works:
openssl s_client -starttls smtp -connect externalhost:587

It connects sucefully to externalhost:587, but not at port 25.

Does anybody can help me?

Edited by: Ramiro on Aug 18, 2021 10:31 PM
Also, theres another thing.

With root:
I cannot telnet anyhost 25

With centos (user):
I can telnet anyhost 25, but it redirects the connection to my localhost mail server.

Ramiro
已提问 3 年前331 查看次数
1 回答
0
已接受的回答

I'm kind of surprised that you see it going to itself, but AWS does have lots of restrictions on port 25. Have you gone through the process to get it unblocked?

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/

While it is possible to run your own mail server on EC2 if you go through the process, generally it's a lot easier to use SES (or a competitor's mail sending service) if all you're doing is sending emails out and don't need a full mail server.

已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则