MD Nasirul Islam
MD Nasirul Islam

Reputation: 543

AWS EC2 linux 2 ami postfix mailserver error connection timed out

i've configured a mail server on my was ec2 which is linux 2 ami. But unfortunately whenever I try to send a mail from my server to a gmail account or yahoo account the maillog show me that connection timed out. I've created the following steps

  1. created a subdomain named mail.domain.com pointed to my AWS Elastic Load Balancer on route 53
  2. installed postfix
  3. added my_domain = domain.com and hostname = mail.domain.com inet_protocol = ipv4
  4. created my hostname as mail.domain.com
  5. I have checked the ports 25 is running and it is also allowed on my aws security groups.
  6. mail status on log is deferred

Now I really need to setup the mail server but I am not being able to create it. Can anyone help me?

Upvotes: 1

Views: 1170

Answers (1)

Azize
Azize

Reputation: 4476

Try to remove SMTP throttling. You can learn more about it below.

AWS blocks outbound traffic on port 25 (SMTP) of all EC2 instances and Lambda functions by default. If you want to send outbound traffic on port 25, you can request for this restriction to be removed.

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

Upvotes: 1

Related Questions