Mails sent from my server to gmail are marked always as spam

Both of your spf records is wrong. Also you should not have two spf records, you should only have ONE. The first record is missing your server ip, the second is missing " and "

Anyway, here is a spf record made for both your server email and GoogleApps/Gmail, so delete both of your existing spf records and add this:

Code:
1st.si.	TXT	"v=spf1 a mx ip4:123.123.123.123 include:_spf.google.com ?all"

You must replace 123.123.123.123 with your actual server IP!

If you do not use GoogleApps for email, then use this spf record instead (it is the default created by DirectAdmin):

Code:
1st.si.	TXT	"v=spf1 a mx ip4:123.123.123.123 ~all"

Is now okay?

vp84xu.png
 
Yes, your spf record is now valid and does not have any problems.

However I notice you have two DKIM keys, that is not correct unless you know why you did it, and have a good reason for it? If not, look at my screenshot and delete the DKIM key I have marked in red.

dkim.gif
 
Yes, your spf record is now valid and does not have any problems.

However I notice you have two DKIM keys, that is not correct unless you know why you did it, and have a good reason for it? If not, look at my screenshot and delete the DKIM key I have marked in red.

View attachment 1659

Thanks, I've deleted what you marked..

After i changed my SPF i sent test mail again to [email protected] and i'm still geting some problems with spf:
SPF records for <1st.si> do not specifically authorize Email server <108.61.48.20> to send emails for <1st.si>. This means that there is some chance of your Emails being rejected or being classified as SPAM. Ideally, the SPF records for <1st.si> must return 'pass' for your Email server IP <108.61.48.20>. For more details on checking SPF records for your domain, please refer to http://old.openspf.org/why.html ?!

Thanks for helping me
 
The result in the test you did is wrong. Try instead http://www.kitterman.com/spf/validate.html type in 1st.si in the first text field and click on "Get SPF record", in the result you will see this at the bottom of the page:

Code:
Checking to see if there is a valid SPF record. 

Found v=spf1 record for 1st.si: 
v=spf1 a mx ip4:108.61.48.20 ~all 

evaluating...
SPF record passed validation test with pySPF (Python SPF library)!

Edit: Your test against [email protected] might use cached dns. You could wait a few hours, or until next day, and try again. But it does not matter. Your SPF IS valid.
 
Last edited:
The result in the test you did is wrong. Try instead http://www.kitterman.com/spf/validate.html type in 1st.si in the first text field and click on "Get SPF record", in the result you will see this at the bottom of the page:

Code:
Checking to see if there is a valid SPF record. 

Found v=spf1 record for 1st.si: 
v=spf1 a mx ip4:108.61.48.20 ~all 

evaluating...
SPF record passed validation test with pySPF (Python SPF library)!

Edit: Your test against [email protected] might use cached dns. You could wait a few hours, or until next day, and try again. But it does not matter. Your SPF IS valid.

OK thanks. But why i'm still getting mails sent from @1st.si to gmail users to spam folder on gmail?? :(
 
Without your RDNS set properly Gmail and a lot of other major email providers will assume anything from your server is spam. You want to have your RDNS set to match your FQDN.
 
Tell your hosting provider to point reverse dns of server.1st.si to your ip 108.61.48.20.
 
I have VPS hosting, so i think that i would need to do it myself, can u tell me how can i do that?
 
Just because you have a VPS (or a physical computer) doesn't mean you are able to change the rdns. Occasionally your ISP will have a way to change it on their control panel, but typically you need to open a ticket with them to have it changed.
 
Hello,

We have changed your IP reverse.

It may take a few hours for changes to take effect.

Thank you.

So, how can i test if now its okay? my domain is 1st.si
 
But my mails, are still marked as spam on gmail, what can be the other problem for that?
 
But my mails, are still marked as spam on gmail, what can be the other problem for that?
If you have spf set correctly and your RDNS set properly (and it appears you do), then that is pretty much all you can configure. Google might tell you why. Is you email being rejected or just classified as Spam in their filters?

Have you done any other searches to see what else might cause this? For e

http://www.google.com/webhp?nord=1#nord=1&q=gmail%20marking%20email%20as%20spam
 
From an account on your server send an email to: [email protected]

It will check all the DNS, DKIM etc settings for your mail and domain and then email you back an HTML report showing you where you need to improve things.
 
I added my IPv6 address in the SPF record, now Gmail doesn't mark it as spam.
Make sure that IPv6 is OK.
 
Back
Top