Outgoing mail from ec2

0

Hello everyone

I have a problem, mail server that I installed on ec2 cannot send email using the SMTP port, 465,587 can anyone help

Ahmadge
asked a year ago243 views
3 Answers
0
Accepted Answer

Do you get any errors when you try to send an email?
If you see an error, please share the message.

Are the required ports and IP addresses allowed in security groups and network ACLs?

profile picture
EXPERT
answered a year ago
  • my message error "delayed, Status: 4.4.1 Cannot connect to remote host", i try to telnet port 465 or 587 from my windows on ec2, not connecting

  • Are the required ports and IP addresses allowed in security groups and network ACLs? Port 465,587 already allow in scurity group & network ACLs

  • Thank you for sharing your message.
    We want to make sure that we can communicate with the mail server, so try running the telnet command with the global IP address of the EC2 instead of the domain.
    If you are able to communicate with the EC2 IP address, it is possible that the DNS settings are incorrect, so check that the MX record is registered correctly by using "nslookup" or similar. Check that EC2 is listening on port 465. If your EC2 is Linux, you can check the port number with the following command.

    lsof -i -P
    
0

Enter image description here

Ahmadge
answered a year ago
  • Thank you for sharing your message.
    We want to make sure that we can communicate with the mail server, so try running the telnet command with the global IP address of the EC2 instead of the domain.
    If you are able to communicate with the EC2 IP address, it is possible that the DNS settings are incorrect, so check that the MX record is registered correctly by using "nslookup" or similar. Check that EC2 is listening on port 465. If your EC2 is Linux, you can check the port number with the following command.

    lsof -i -P
    
0

For others who are reading along, there is an article about this: https://repost.aws/knowledge-center/ec2-windows-email-server-issues

profile pictureAWS
EXPERT
answered a year 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.

Guidelines for Answering Questions