1

Topic: Mail delivery failure to gmail and other mail servers

I have configured iredmail server locally on our office server.
Configuration was successful and all service is running properly.
But when I am trying to send mails to gmail or any other mail server; it reverts back saying : The IP is not authorized to send mails to our server.
I have created TXT and A record on domain hosting dns server and verification is also successful by google postmaster tools.
But, still same 550 error.
It is saying to get SMTP relays.

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version:  CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  PostgreSQL
- Web server (Apache or Nginx): Nginx
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Mail delivery failure to gmail and other mail servers

What's the original error message?

3

Re: Mail delivery failure to gmail and other mail servers

This is the mail system at host mail.local.powerguru.co.in.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<raju10281@gmail.com>: host gmail-smtp-in.l.google.com[74.125.68.27] said:
550-5.7.1 [103.251.220.53] 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
s190si1466766pgc.510 - gsmtp (in reply to end of DATA command)

4

Re: Mail delivery failure to gmail and other mail servers

How can I use SMTP relay so that my mails can be delivered to other mail server?

5

Re: Mail delivery failure to gmail and other mail servers

I had that problem, too. You have to make the _dmarc line in the DNS entry. Some instructions are available on the Internet in various languages. I used one in german.

Uli

6

Re: Mail delivery failure to gmail and other mail servers

Now I have fixed some issues, so i can send mails to any domain-based mail id's but not to Gmail as it saying to use SMTP relays.
But I cannot receive mails from any mail id,, host unreachable error occurs.

7

Re: Mail delivery failure to gmail and other mail servers

Please add your server IP in the SPF DNS record of your mail domain.

8

Re: Mail delivery failure to gmail and other mail servers

I have configured spf record and verified my domain via google postmaster tool.
But when I am sending mail to my mail server from anywhere it's giving :

554 5.7.1 error
timed out

9

Re: Mail delivery failure to gmail and other mail servers

Is network port 25 blocked by your ISP?

10

Re: Mail delivery failure to gmail and other mail servers

Thanks for the support!