Hi,
I searched for a similar topic but the only one I found from 2011 has been closed without any solution..
It’s probably nothing to do with VirtualMin but I spent some much time to find a solution about this issue that I don’t know where to search..
From my domain name, when I want to send a message to Gmail, I get this error:
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
xxxxxxxx@gmail.com: host
gmail-smtp-in.l.google.com[2607:f8b0:4023:1004::1b] said: 550-5.7.1
[2a02:4780:10:fa1b::1] The IP you’re using to send mail is not 550-5.7.1
authorized to send email directly to our servers. Please use the SMTP
550-5.7.1 relay at your service provider instead. For more information, go
to 550 5.7.1 'The IP you're using to send email is not authorized...' - Gmail Help
5614622812f47-401bf055475si847387b6e.169 - gsmtp (in reply to end of DATA
command)
I’ve checked the “help” from Google but no luck.. In the Postmaster tools, my domain is verified with the txt value added to my DNS, same with DMARK, SPF and DKIM. Everything is fine.
But I still can’t send an email from my domain name.
Note: in Wordpress, I’m using MailPoet to send email from the forms and I added the SMTP from Google by connecting my account and it works (of course, because it’s from Gmail to Gmail).
I know it’s probably outside of VirtualMin, but it’s a way to fix this from it? Is it the IP of my VPS?Or anything else..?
Of course, no help is possible from Google except follow their pages. I’m sure I’m not the only one having this problem.
I’m really lost with this since so many time.. help. Thank you very much.
The error is all to do with the IP address as it says in the error. Its a IPv6 address as that’s whats gmail is complaining of, do you have a IPv4 address and does that get blocked?
Is the ipv6 address in the spf?
hum no, my IP server is an IPv4. If I check the lookup of the IPv6, it’s the one from Google. I guess their smtp server.
not by the error, check your mail log file and see if you see it being used.
They use a IPv4 if you use IPv4.
This ip, do you recognize the reverse domain?
that’s the domain of the VPS. Is there a configuration in Virtualmin to use the IP instead? if the issue comes from here..
I’ve checked for this setting in Mail options: Send outgoing email for domain from IP and it’s set to the IP in IPv4.
You should see that IP in virtualmin, it should pick it up automatically.
If you edit the virtual server do you see that IP normally.
yes, there is the IPv4, IPv6 and it says (xx.xx.xx.xx externally)
I wonder if this is a bug, I don’t have a ipv6 address so I can’t test.
by the way, I’ve tested with another domain name to Gmail and it works. So there is something with this domain name/virtual server..
Yeah but did it connect with that IP address. Gmail is complaining about this IP.
Found this
you can find it here
I’ve tested with 3 others domains and only one is working, a .com. Other like .ca or .app don’t send email to Gmail. The one I’m using for this error is a .store. I don’t know if there is related to the domain name. All are on the same VPS.
What I have to do with the Postfix config?
I use to have a Ipv6 and the connections to gmail use to circle between ipv4 and ipv6, so you probably finding some emails will connect and some will be rejected.
Like the article says change inet_protocols = all
to inet_protocols = ipv4
once changed restart postfix and see if the email to gmail works.
Else you may find adding the ipv6 address into the SPF setting may resolve the issue as well. The error doesn’t seem to indicate that though.
but this change is for one specific Virtual Server or general to all of the domains? because like I said, one domain in .com is working, but not the others.
Just trying to help you, if your stuck on to domain being the issue I will leave you to it.
I just try to understand why a domain is working and not another one. I’m checking the settings about emails and everything seems the same as the .com
I will try to change the Postfix setting for testing.
this solution seems to work! Thanks a lot! 
Is there a different to leave this setting like this instead of “all”? I never changed this setting before I think, it was by default when I have installed Webmin.
The Send outgoing email for domain from IP and it’s set to the IP in IPv4
I thought would of overridden the global rules, that why I think it maybe a bug.
Great fixed
I was giving up on you then. Any thought @staff ? Maybe I got that setting wrong.
It’s weird because on the .com domain, this setting is set on “System’s default address” and the domain with the issue (but also the other ones.. ??), are set on Virtual server’s address xx.xxx.xx.xx
Probably a bug like you said. I’ve tested other domains with the same error, and it seems working too. I will doing more tests to be sure before sending emails to my mailing list.
thanks again!
1 Like