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
已提問 1 年前檢視次數 249 次
3 個答案
0
已接受的答案

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
專家
已回答 1 年前
  • 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
已回答 1 年前
  • 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
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南