1

Topic: Can't send to Gmail But Receive

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
We used iredmail since 2016. Now we can't send emails to Gmail. Most people use gmail in our country. The reply message from gmail is described as follows.
==============================================
The reason for the problem:
5.3.0 - Other mail system problem 550-'5.7.1 [103.47.184.21       1] Our system has detected an unusual rate of\n5.7.1 unsolicited mail originating from your IP address. To protect our\n5.7.1 users from spam, mail sent from your IP address has been blocked.\n5.7.1 Please visit\n5.7.1  https://support.google.com/mail/?p=UnsolicitedIPError to review our\n5.7.1 Bulk Email Senders Guidelines. 196si2624465pfz.277 - gsmtp'

2

Re: Can't send to Gmail But Receive

Inspect your logs and see which of your users are sending lots of messages in the past weeks.

You also need to resolve with Google the reputation of you IP address.

It's a lot of work and Google actually do not give feedback about this other than the Postmaster tools.

You may also warm-up another set of IP address so that your domain can send new emails. However, Gmail actually flags domain names as well wen something malicious happens to the IP address. So it may not be a guarantee to work, but you may try.

You can also use a third party sender like Mailgun or Elastic Email so you can clear the reputation of your domain name. Then once it recovers from it, you can slowly warm-up new IP addresses.

It's a lot of work. You may do this painstakingly on your own, or hire a deliverability expert who can do this more strategically.

3

Re: Can't send to Gmail But Receive

Thanks for your reply.

4

Re: Can't send to Gmail But Receive

jasongo wrote:

Inspect your logs and see which of your users are sending lots of messages in the past weeks.

You also need to resolve with Google the reputation of you IP address.

It's a lot of work and Google actually do not give feedback about this other than the Postmaster tools.

You may also warm-up another set of IP address so that your domain can send new emails. However, Gmail actually flags domain names as well wen something malicious happens to the IP address. So it may not be a guarantee to work, but you may try.

You can also use a third party sender like Mailgun or Elastic Email so you can clear the reputation of your domain name. Then once it recovers from it, you can slowly warm-up new IP addresses.

It's a lot of work. You may do this painstakingly on your own, or hire a deliverability expert who can do this more strategically.

Apologies for jumping in on this thread but for some reason any mail sent through my iRedMail server to gmail ends up in the gmail users junk folder. Are there set aspects that google look for in headers that I need to manually set up? SPF is all i've done outside of iRedMail.

5

Re: Can't send to Gmail But Receive

awol123 wrote:

Apologies for jumping in on this thread but for some reason any mail sent through my iRedMail server to gmail ends up in the gmail users junk folder. Are there set aspects that google look for in headers that I need to manually set up? SPF is all i've done outside of iRedMail.

I'm assuming you have your DNS, SPF and DKIM setup correctly. Assuming that's the case your issue is not caused by iRedMail it's on google side. Have you checked to see if your server IP address is blacklisted. A good tool to use is http://multirbl.valli.org. Also you can try to register your domain with google at https://postmaster.google.com/

6

Re: Can't send to Gmail But Receive

chaz wrote:
awol123 wrote:

Apologies for jumping in on this thread but for some reason any mail sent through my iRedMail server to gmail ends up in the gmail users junk folder. Are there set aspects that google look for in headers that I need to manually set up? SPF is all i've done outside of iRedMail.

I'm assuming you have your DNS, SPF and DKIM setup correctly. Assuming that's the case your issue is not caused by iRedMail it's on google side. Have you checked to see if your server IP address is blacklisted. A good tool to use is http://multirbl.valli.org. Also you can try to register your domain with google at https://postmaster.google.com/

Thanks Chaz, appreciate the reply - I think it's going to be down to an incorrect reverse DNS entry that I wouldn't have spotted were it not for that rbl check url.

DNS and SPF is all OK, DKIM is something very new to me and by the looks of it, i've not added it to any DNS records.
I assume you have to set this up for all domains you accept and send mail for not just the domain of the host?

amavisd-new showkeys gives me a key for the domain of the host only which is not used for email, testkeys as expected, gives an error.
TESTING#1 hostdomain.com: dkim._domainkey.hostdomain.com => invalid (public key: not available)

Thanks for you help!
Dan.

7

Re: Can't send to Gmail But Receive

awol123 wrote:
chaz wrote:
awol123 wrote:

Apologies for jumping in on this thread but for some reason any mail sent through my iRedMail server to gmail ends up in the gmail users junk folder. Are there set aspects that google look for in headers that I need to manually set up? SPF is all i've done outside of iRedMail.

I'm assuming you have your DNS, SPF and DKIM setup correctly. Assuming that's the case your issue is not caused by iRedMail it's on google side. Have you checked to see if your server IP address is blacklisted. A good tool to use is http://multirbl.valli.org. Also you can try to register your domain with google at https://postmaster.google.com/

Thanks Chaz, appreciate the reply - I think it's going to be down to an incorrect reverse DNS entry that I wouldn't have spotted were it not for that rbl check url.

DNS and SPF is all OK, DKIM is something very new to me and by the looks of it, i've not added it to any DNS records.
I assume you have to set this up for all domains you accept and send mail for not just the domain of the host?

amavisd-new showkeys gives me a key for the domain of the host only which is not used for email, testkeys as expected, gives an error.
TESTING#1 hostdomain.com: dkim._domainkey.hostdomain.com => invalid (public key: not available)

Thanks for you help!
Dan.

Dan, getting your DNS setup correctly is key. DKIM is good to have. This documentation shows you how to configure DKIM https://docs.iredmail.org/setup.dns.html#dkim

You setup SPF and DKIM for all your domains.

8

Re: Can't send to Gmail But Receive

Improper set up of SMTP and POP3 can result in such issues, however potential Gmail errors such as Error 007 can also lead to such issues, I was facing the similar issues after logging into my new account.