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

MBCLA

Verified User
Joined
Sep 7, 2013
Messages
11
Hello,

i'm new member here, and i need some help. I've read may threads here of my problem but looks like i didnt fixed my problem.

So the problem is, that all mails sent from my server are going to spam when i send them to gmail, hotmail etc.

IP:108.61.48.20
Domain: www.1st.si

I've checked blacklist and dns but didn't found some problem, maybe you will. I'll also attach image of my domain settings, so maybe there is some problem.Untitled.png

Thanks
 
Send an email to test [at] allaboutspam [dot] com and after a few minutes you will receive a bounced (non-delivery) notification from them.

In that bounced notification email, you will find a unique link to a website that will give you a report on your server's spam score. If you have items marked in Yellow or Red in the report, then try and work towards fixing those issues so that your server appears to be clean and trusted to other mail networks, such as Gmail, Hotmail, etc.

That should help significantly.
 
@czotos

That helped me a lot :) a saw what i must fix and did it, so now emails are not marked as spam :)

Thank you for help
 
Could you share what this fix was? I presume you have to put your spf record on 1 line but I could be wrong.
 
Richard, how long should the bounce take? I've run the test and I've been waiting about fifteen minutes now.

Thanks.

Jeff
 
Heej Jeff.
It wasn't me who was talking about [email protected] that was czotos, unless he's also called Richard.:)

However, I've tested this in the past. Normally it does not take more then 15 minutes.
But it could be the return-mail is rejected by your spam protection or is placed in a spam folder.
 
Hello Jeff.

Just tested again to see if I get the same problem, and ideed. Probably the mx of allaboutspam.com is on some RBL list we are using. I check the Exim mainlog and found this on sending the email:
Code:
1VJ6pM-0000Sa-FM == [email protected] R=lookuphost T=remote_smtp defer (-46): SMTP error from remote mail server after end of data: host mx.allaboutspam.com [96.126.107.60]: 452 Greylisted. Please try again after some time.
It's says "greylisted".

However, if you mail is gone out (mine is still in the Exim mailqueue at the moment) and you don't receive the bounce mail, you can always check here (click) and enter the email address you have used for testing.

But I would check first your log and maybe mailqueue to see if it was send or also was greylisted.
 
Sorry about the error, Richard, and thanks for your helpful reply. The error finally came about fifteen minutes after I posted.

My report looks fairly good, giving only yellow on two issues:

BATV

and

DKIM

So the only questions left are:

Do we really need DKIM? Do we really need BATV?

Should we try to get these implemented for DirectAdmin servers?

The reason I wanted to check is because I recently began using Roundcube for my local email instead of desktop client, and I want to make certain everyone is getting my emails.

What do you think about BATV and DKIM? Anyone? References to other threads appreciated if relevant. Should we open a discussion somewhere on these forums?

Jeff
 
Hello Jeff.

You're welcome.
Mine also went out and just came in, so took also a bit longer as last time.:)
It had the same output as yours. Everything green and only BATV and DKIM yellow.

IMHO I don't think we really need BATV or DKIM. However, as far as I know, more and more users trying DKIM.
Maybe a seperate discussion could be nice, but personally I think it won't help a lot. BATV is mostly against bounce floods. So mainly DKIM could have some benefit.
But just as with SPF, it would be best if everyone would use it. I would be nice to implement DKIM into DA though.
And as far as I could see, they are already busy implimenting it if I'm correct:
http://www.directadmin.com/features.php?id=1189
 
The question is, 'is anyone using it?

Comments anyone? Should I start a separate thread to ask?

I hope we're not the only people reading this thread.

Jeff
 
I used DKIM for aa while now, and it seems to work fine.

Although I have issues with other things (external forwarders for one), but still.
 
Last edited:
@nobaloney, I would recommend using DKIM, it is going to be something everyone uses in the future, I think. For example, create a free Gmail account and test it, and you will see that Gmail also uses DKIM. I am using DKIM on all my shared hosting servers, and there has not been any problem. DirectAdmin has a very good DKIM support with 2048 bit keys. Here is a translation of my internal notes about setup DKIM on an existing server wich already has domains without DKIM:

#1: Add dkim=1 to /usr/local/directadmin/conf/directadmin.conf and restart DirectAdmin.

#2: Run the following command to create dkim in dns on all domains on the server:
Code:
echo "action=rewrite&value=dkim" >> /usr/local/directadmin/data/task.queue

#3: Add dkim in dns for your servers hostname (change server.hostname.com in example below):
Code:
cd /usr/local/directadmin/scripts/
./dkim_create.sh server.hostname.com

#4: Edit /etc/exim.conf, search for and find this code:
Code:
remote_smtp:
  driver = smtp

Change it to be this:
Code:
remote_smtp:
  driver = smtp
  dkim_domain = $sender_address_domain
  dkim_selector = x
  dkim_private_key = ${if exists{/etc/virtual/$sender_address_domain/dkim.private.key}{/etc/virtual/$sender_address_domain/dkim.private.key}{0}}
  dkim_canon = relaxed
  dkim_strict = 0

Then restart exim, and you will now have dkim headers to your outbound emails. Now you can do test: http://dkimcore.org/tools/dkimrecordcheck.html More reading:

DKIM keys to be 2048-bit and multi-line TXT records: http://www.directadmin.com/features.php?id=1387

Basic DKIM back-end for outbound emails: http://www.directadmin.com/features.php?id=1189

DA's DKIM script needs to be updated http://www.directadmin.com/forum/showthread.php?t=44891
 
Thanks. Would you please be so kind as to create a How-To and post it in the appropriate section of these forums? Otherwise I could create one based on what you wrote, but the credit should go to you.

Jeff
 
Hello,

i though that my problem is fixed, but looks like my problem is still here, because my costumers are still getting my emails to spam on gmail.

So when my report at allaboutspam.com is showing me some problems with SPF record, my currently SPF records are:

1st.si. TXT "v=spf1 mx -all"

and

1st.si. TXT v=spf1 include:_spf.google.com ~all

So, is there any problem with my SPF or what is going on, this makes me crazy, beacuse i have tried a lot of things and still the same problem :/

Thanks for helping me
 
Hello,

i though that my problem is fixed, but looks like my problem is still here, because my costumers are still getting my emails to spam on gmail.

So when my report at allaboutspam.com is showing me some problems with SPF record, my currently SPF records are:

1st.si. TXT "v=spf1 mx -all"

and

1st.si. TXT v=spf1 include:_spf.google.com ~all

So, is there any problem with my SPF or what is going on, this makes me crazy, beacuse i have tried a lot of things and still the same problem :/

Thanks for helping me

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"
 
Back
Top