Skip to main content

Problems sending email on amazon server ec2

Comments

7 comments

  • cPanelMichael
    Hello @rigu, Can you share the output from /var/log/exim_mainlog when attempting to send an email? EX: exigrep "SUBJECT" /var/log/exim_mainlog
    Replace SUBJECT with the subject of an email that you attempted to send out. Ensure to replace real domain names and IP addresses with examples when you paste the log output here. Thank you.
    0
  • alfanovatech.tk
    (-54): retry time not reached for any host for 'domain.cl'
    0
  • cPRex Jurassic Moderator
    @alfanovatech.tk - I heavily edited your previous post to remove all the public information, but the root cause of the "retry time not reached for any host" error is usually a DNS resolution problem. Are you able to look up the domain from your local server? For example, can you run the following command from your server? dig mx domain.com
    and get a positive result? If so, can you then connect to that mailserver with this command? telnet result-of-previous-command 25
    You may need to install telnet first with the "yum install telnet" command in order to perform that last test.
    0
  • ServerHealers
    @alfanovatech.tk In Amazon EC2 instances, there is a restriction by default for the SMTP port 25 which could be the reason. You should open a request to them explaining the need of 25 port for your business or server to remove this restriction there. For more information, please have a look through Remove port 25 restriction from your EC2 instance Alternatively, you could use a smarthost relay in Exim to deliver the emails through it (Eg: Amazon SES, SpamExperts, MailChannels, Mail.baby, etc.)
    0
  • alfanovatech.tk
    @cPRex I followed your instruction and received this message. telnet: result-of-previous-command: Name or service not known
    can you guide me about it what is the actual issue. right now i received email in my webmail but when i send email recipient not received my emails.
    0
  • cPRex Jurassic Moderator
    That looks like a DNS issue. Can you try a basic "ping" of the domain to see if your server can connect with that?
    0
  • ServerHealers
    The one I mentioned about could be the actual reason. You should get in touch AWS support team to remove that SMTP restriction for your EC2 instance, or else use a smarthost relay in Exim to deliver the emails through it (Eg: Amazon SES, SpamExperts, MailChannels, Mail.baby, etc.)
    0

Please sign in to leave a comment.