I set up a server on Digital Ocean to run a mail-in-a-box server. I’ve managed to set up everything successfully and the status page shows everything is green. Nonetheless, all emails sent to Gmail accounts are marked as SPAM.
I’ve been checking the DNS records, but they all seem to be fine. mail-tester.com also shows a score of 10/10. I’ve been looking at all sorts of threads, but I can’t quite figure out whats wrong. Some people have been complaining about Digital Ocean IPs but the IP isn’t blacklisted anywhere…
Here are the headers from one of the emails that was marked as spam:
Delivered-To: firstname.lastname@example.org Received: by 10.129.175.8 with SMTP id n8csp472281ywh; Fri, 16 Dec 2016 06:02:55 -0800 (PST) X-Received: by 10.28.21.1 with SMTP id 1mr3584102wmv.133.1481896975022; Fri, 16 Dec 2016 06:02:55 -0800 (PST) Return-Path: <carl******@***.ch> Received: from box.***.ch (box.***.ch. [22.214.171.124]) by mx.google.com with ESMTPS id x130si3478127wmg.27.2016.12.16.06.02.54 for <email@example.com> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Dec 2016 06:02:54 -0800 (PST) Received-SPF: pass (google.com: domain of carl*******@***.ch designates 126.96.36.199 as permitted sender) client-ip=188.8.131.52; Authentication-Results: mx.google.com; dkim=pass header.i=@***.ch; spf=pass (google.com: domain of carl********@***.ch designates 184.108.40.206 as permitted sender) smtp.mailfrom=carl*****@***.ch; dmarc=pass (p=QUARANTINE dis=NONE) header.from=***.ch Received: from [IPv6:2001:67c:10ec:52c6:8000::e2c] (unknown [IPv6:2001:67c:10ec:52c6:8000::e2c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by box.***.ch (Postfix) with ESMTPSA id 291E6DFEF9 for <firstname.lastname@example.org>; Fri, 16 Dec 2016 15:02:54 +0100 (CET) Authentication-Results: box.***.ch; dmarc=fail header.from=***.ch DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=***.ch; s=mail; t=1481896974; bh=BVnEAHWeMq5NbsEKqWiu7T3IhFCt5tdX2hF5hxtImpU=; h=From:Subject:Date:References:To:In-Reply-To:From; b=iBznR1wvvcQ3Z5YWibrrw3yAYEkVpz2R7ME1c7tu8ZEPlIACJHkgKBE33Qsu5yYrt tlyadpRb+8dJiXko0HtTpox62+7vtkq01c0/s+4w2azp84eJcF6j+t8n2YkG+btJOw M/GL8H7EzbpI/3ONNGl/faCGh8p6DlfMwk7dEOYFcvHhZW6uKeSY51ypWuR104WKGk BmYxYoXt3D41YrFN72nr+xtkZ4T1Z+K3BA5J2plXE9DLA6qlIae5A6LVG6RziWrqoS +sAEJIh0PxXSLG9an4HiWEh8JFcoIYG95pXOe8QF3herJo6h94tLVine/XY9ubj05r isIx6bihDePgw==
If you are not using the MIAB DNS then putting in the SPF and DMARC data in TXT records. That got me out of the spam bucket with Gmail.
Maybe you also have to do it on domains that are using MIAB DNS. I only host the required (admin user) email box on MIAB. All my other domains I use External DNS records at the registry or the web host level. Since I never send email out of my admin email I don’t know if you need to do it or not for the admin user.
Hi! Thanks for the replies. Unfortunately nothing worked. I’ve now solved the issue using a workaround. I tried hosting the server on Digital Ocean, Amazon EC2 and Vultr. It does seem to be the case, that the IPs from all these services are banned by Google. So I’ve decided to host the Mail-in-a-box server on an Amazon EC2 instance and relay all outgoing mail through Amazon SES. Now all emails get accepted by Google! In case anybody wants to do the same, this is what I did:
Verify add and verify the domain to Amazon SES, by adding the TXT record they give you in the Mail-in-a-Box admin panel under System > Custom DNS.
Add the CNAME records to enable DKIM as well. Do not forget to put a . at the end of the domains that Amazon give you to use as the values.
Override the SPF record by adding a TXT record for the domain with the value “v=spf1 mx include:amazonses.com -all”. This allows Amazon SES to send emails from your domain.
Are you sure? I sincerely doubt that Gmail has ‘banned’ all of the IPs from the major cloud server companies. There has to be something else going on here. But I’m new to this ‘game’ so maybe you are right. But if you are, there would be zillions of posts about it both here and on other boards/sites.