1

Topic: Error 550-5.7.1 when trying to send emails to gmail.com

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache2
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hello dear community.

I have really strange problem. So far i used to send and receive emails without any problem, but today i have problem.

My problem is only with gmail.com. There is the error that i receive when i try to send an email to account at gmail.com.

Action: failed
Status: 5.7.1
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [77.85.204.32] The IP address sending this
    message does not have a PTR 550-5.7.1 record setup. As a policy, Gmail does
    not accept messages from IPs 550-5.7.1 with missing PTR records. Please
    visit 550-5.7.1
    https://support.google.com/mail/answer/81126#authentication for more 550
    5.7.1 information. d4si4817657wjn.111 - gsmtp

My reverse DNS is pointing to mail.vivashost.com with CNAME. Where my mistake can be ?

Thanks in advance!

----

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

2

Re: Error 550-5.7.1 when trying to send emails to gmail.com

I cannot find your PTR record either:

$ host 77.85.204.32
Host 32.204.85.77.in-addr.arpa. not found: 3(NXDOMAIN)

$ host 45.56.127.226
226.127.56.45.in-addr.arpa domain name pointer mail.iredmail.org.

3

Re: Error 550-5.7.1 when trying to send emails to gmail.com

What is this PTR and how can i set it up ?

4

Re: Error 550-5.7.1 when trying to send emails to gmail.com

I suggest contacting your DNS service vendor to get support.

5

Re: Error 550-5.7.1 when trying to send emails to gmail.com

Hi. I found this topic and I really need help. 2 months ago I started having troubles with all my clients sending e-mail to gmail. They all receive ok, with no problem, sending returns error "missing PTR record". A few details are needed, as follow:
eth0 is xxx.xxx.xxx.54 (routable IP)
eth1 is xxx.xxx.xxx.220 (public IP, not NAT)
I use IP forward from eth0 to eth1
eth1 has reverse DNS configured correctly from my ISP (goes to ns2.xxxxx.xx)
eth1 also has the mail.xxxxx.xx configured
I didn't changed anything from 2 years ago, it just started like 2 days a week, next 3, and now it doesn't work anymore from 2 weeks ago.
I have OpenDKIM, amavis, courier, postfix, debian wheezy amd64 and of course spf_policy correctly configured.
All the clients have TXT spf policy assigned in DNS.
The problem:
- gmail returns all emails from all clients including primary domain but, it returns as missing PTR record from eth0 (it should be receiving them from eth1 as eth0 is just a gateway because is the routable IP not the public one. And the most annoying thing is that I can receive them and the server receive them directly from eth1 as I can see in the /var/log/mail.log.
Of course, I'm not going to post my outputs with directly to a public forum so, instead, I can send them as private message.
PS: anyone who resolves this has 30$ instant, no questions asked in their paypal account! (THIS IS NOT A JOKE, I ONLY REQUIRE THE CORRECT SOLUTION!)

6

Re: Error 550-5.7.1 when trying to send emails to gmail.com

*) Please always create a new forum topic for your own question/issue, Do NOT hijack other's thread.
*) Cannot help without related bounce message, reject reason in Postfix log file.
*) If it complains PTR record missing, please add correct PTR record.

alex_popa_81 wrote:

Of course, I'm not going to post my outputs with directly to a public forum

You can just hide/replace sensitive info and paste here. You see so many forum posts here.