I’ve had Let’s Encrypt going for a while now and it’s going very well (securing my sites, ownCloud, and mail server). However the mail I send often ends up in spam. While I accept I can’t stop that happening completely (I’m using a .tk domain), gmail gives me the following error:
I thought I must have mis-configured postfix, but when I checked the header from gmail, it suggests it’s because my certificate clashes with my server’s name.
I have a SAN certificate for darksteve.tk, mail.darksteve.tk, and cloud.darksteve.tk, but the message arrives with the source being my server, ravage.darksteve.tk. Do I need to add “ravage” to my certificate? Will that verify my domain in the eyes of google and others? Or am I misunderstanding what’s happening here?
(The “sylvester” in the header is the Win10 desktop machine I sent the mail from, using Thunderbird.)
The domain ravage.darksteve.tk is not currently accessible from the net, that’s just the name I use internally, but I can add the domain to my cert if necessary as well as add it to the freenom DNS.
The encryption seems to be just fine (the header indicates TLS 1.2 is working). This is the TLS section of my postfix config:
I’m getting 100 percent confidence when I use checktls.com. Any thoughts or ideas how to get gmail/yahoo/etc to “verify” or trust me would be muchly appreciated!
I thought I must have mis-configured postfix, but when I checked the header from gmail, it suggests it's because my certificate clashes with my server's name.
It’s a DNS issue not a TLS one. For gmail to consider an email authenticated it must be DKIM signed or sent from a server that is an SPF pass. As darksteve.tk does not have an SPF record and you have not configured postfix to use a DKIM milter all your mail will be considered forged/spam.
I don’t think it is related to SSL. There are a few things to make Google trust your domain a bit more ;).
1.- Your domain darksteve.tk doesn’t have a MX record and it should. In this case, your mail server helo is ravage.darksteve.tk so your MX record should point to it.
2.- Ideally, your reverse ip DNS should point to ravage.darksteve.tk but it reverses to 110-175-224-69.static.tpgi.com.au (if this is a home internet connection it could be impossible to change this record).
3.- You should implement SPF on your darksteve.tk domain. A simple TXT record with this v=spf1 a mx -all should do the trick.
For sure you should implement point 1 and 3 and test what Google think about those changes. DKIM could be a bit more complex but it is worth to check how to implement it on your postfix.
Ah, I'm gonna need to do a bit more reading. I'd convinced myself I was missing a domain in my SAN. Thanks for the pointer! Sahsanu said something very similar to you, so I'm gonna read lots and make sure I understand what I'm missing before I ask any more stupid questions
There's no such thing as a stupid question. It suggests that the quest for knowledge includes failure, and that just because one person may know less than others they should not be afraid to ask rather than pretend they already know. In many cases multiple people may not know but are too afraid to ask the "stupid question"; the one who asks the question may in fact be doing a service to those around them.
Thanks for the links, I’m gonna do a lot of reading and set up the MX records like I should have.
Your second point is a bit of an issue. You’re right, it’s a home internet connection, and I don’t think I can change the reverse. I verified that I could use a personal server and that port 25 isn’t blocked, but not much more than that (I’m learning as I go).