Skip to content

Mail Manager and problems relaying emails

0

Hi,

I'm trying to use the new Mail Manager feature to relay received emails to an email server I set up on an EC2 instance as a test. However, it seems Mail Manager is unable to do so and I just receive "4.4.2 Connection timed out" as the response. I have verified I'm able to connect to the mail server from an external address so I'm wondering why Mail Manager is timing out.

asked 2 years ago517 views
2 Answers
1

Hello.

Are the required communications allowed in the EC2 security group?
By the way, what port number are you communicating with?
If you are trying to use port 25, you will need to remove the restriction as described in the document below.
https://repost.aws/knowledge-center/ec2-port-25-throttle

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
  • Hi! I'm using port 2525 and I've confirmed that I'm able to establish connection with this setup, so all should be in place.

  • Can you check the EC2 email log to find out if the communication is interrupted before reaching EC2, or if it reaches EC2 and cannot be processed and an error occurs? If you look at the email log and find that it has not reached EC2, there may be a possibility that communication is being blocked somewhere in AWS.

  • The EC2 port 25 restriction is required for outbound network connections on port 25. Based on how this question is worded, the EC2 instance will be receiving inbound network connections on port 25. I do not think EC2 has a restriction on incoming connections on port 25, but it would require that the appropriate security group be configured.

1

At this time, SMTP Relay action with no-authentication is only supported for Google Workspaces and Microsoft 356. For all other SMTP Relay destinations, SMTP Authentication is required in order to relay mail to an arbitrary destination.

Apologies, this statement was based on a restriction that was in place prior to Mail Manager being available. The SMTP Relay action with no-authentication requires recipients to be verified identities. The SMTP host that you can connect to has no restrictions.

AWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.