skip to Main Content

In our Magento website, it is not sending email to the outside domain. For example, a website is ads.com, and if a customer order a product & customer mail id is [email protected], but he didn’t get email. But I am getting a copy of the email [[email protected]]

If the customer’s mail id is [email protected] then the customer is getting an email. That means the only @ads.com only getting the email. Why this happens. Our website is hosted on an AWS server.

I just create a sample PHP file in domain root and write the mail function. But still, no email is going outside ads.com. Then I added

"-f ".$from in the code then the mail is sending to any email id without any issue.

$from='[email protected]';
$headers .= 'From: <[email protected]>' . "rn";
mail($to,$subject,$message,$headers, "-f ".$from);

Please help to solve the issue.

When I am sending emails to another email example gmail.com or yahoo.com or anyotherdomain.com I am getting the following error.

Jan 29 11:50:20 ip-232-11-99-372 sendmail[19122]: 10TBoIjU019120:
[email protected],
[email protected]
(500/500), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=171765,
relay=gmail-smtp-in.l.google.com. [74.125.24.27], dsn=5.0.0,
stat=Service unavailable

2

Answers


  1. 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/

    Login or Signup to reply.
  2. You could be on a DNS blacklist. This sounds very similar to an issue at an organization I volunteered at.

    This is basically like "marked as spam" but at the server level, so Gmail (et al) would prevent the email from even going into the recipient’s spam folder.

    You can verify this by looking at the bounce details for the emails you send. If this is the case, then you would have to contact the email providers (eg Google) to get you removed from the blacklist.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search