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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠