-1

I've created a mail server and have setup a PTR record from the ISP to my static IP server. The mail server works well and am able to send and receive emails and send mails to many email addresses including outlook/hotmail. But I'm not able to send email to gmail accounts.

I get the following error. I've read through many posts and searched to the 3rd page of Google and am still not able to resolve it.

    host gmail-smtp-in.l.google.com[172.217.194.27] said:
    550-5.7.1 [116.90.224.43] The IP you're using to send mail is not
    authorized to 550-5.7.1 send email directly to our servers. Please use the
    SMTP relay at your 550-5.7.1 service provider instead. Learn more at 550
    5.7.1  https://support.google.com/mail/?p=NotAuthorizedError
    d18si26072098pls.58 - gsmtp (in reply to end of DATA command)
  • I searched for blacklisting of my IP and found a few and have got them removed.
  • I've configured rDns from my ISP and it resolves to my domain
  • I've a valid SPF, DKIM and DMARC
  • I have a static public IP with ports opened from my ISP
  • I'm using tls/ssl

How do I solve this issue? How do I prove to google that my IP is a valid IP and I need to be able to send mails to gmail accounts?

  • 1
    Google asks to "use the SMTP relay at your service provider".. Your question should probably mention what you did about that recommendation. – anx Jun 22 '21 at 21:09
  • 2
    What company is your ISP? Do you have a **business** service with the ISP? – Michael Hampton Jun 23 '21 at 11:14
  • @anx I've not tried the relay solution because I was trying to figure out the IP solution. Will have a look at it. – Nischit Pradhan Jun 23 '21 at 17:38
  • @MichaelHampton Yes we have a corporate internet connection with the ISP. I've raised the issue with the ISP as well and they think its because of the base IP score we have. Actually the entire IP group is marked as spam. Can I do something about this? I'm very lost here – Nischit Pradhan Jun 23 '21 at 17:39
  • 1
    Your ISP controls whether your IP address is on this blacklist. They must resolve it. – Michael Hampton Jun 23 '21 at 17:57

1 Answers1

1

I had to ask ISP to give me a new clean IP. changing the IP fixed the issue.