Skip to main content
Topic: FYI - mails in spam (Read 3695 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

FYI - mails in spam

Today I noticed all the emails from elkarte.net are going straight to gmail's spam folder.
Maybe it's just a problem with my account, but if you stop receiving them, have a look around, it may be a wider issue...
Bugs creator.
Features destroyer.
Template killer.

Re: FYI - mails in spam

Reply #1

Thats not to surprising.  The number of anti spam things involved in email make it more and more difficult to send mail from your own server.  Not sure if the server has SPF enabled but that may be required to keep google happy and its not difficult (If I recall we would just need to enter a line in the nameserver mx area)  or  maybe even DKIM which is more involved.

Re: FYI - mails in spam

Reply #2

Maybe this could be useful
https://www.mail-tester.com
sorry for my bad english

Re: FYI - mails in spam

Reply #3

I added a test SPF record to the dns record, lets see if that helpsl ... if not please look at the gmail headers and see why its being classified as spam.

Re: FYI - mails in spam

Reply #4

I didn't know gmail added headers about spamminess...

I guess this may be the problem?
Code: [Select]
Received-SPF: none (google.com: www-data@mail.elkarte.net does not designate permitted sender hosts) client-ip=85.214.104.5;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: www-data@mail.elkarte.net does not designate permitted sender hosts) smtp.mail=www-data@mail.elkarte.net
Bugs creator.
Features destroyer.
Template killer.

Re: FYI - mails in spam

Reply #5

Yes its flagged that we don't have an SPF record ...  I set one yesterday so it should stop complaining about that aspect of the email.  I'll double check the ip address as well (its right)

Re: FYI - mails in spam

Reply #6

hmm... still going to the spam folder.
Maybe let's wait for another one.

I can't see anything spammy in the header... :-\
Code: [Select]
From - Mon Oct 27 17:36:18 2014
X-Account-Key: account6
Delivered-To: myemailaddress@gmail.com
Received: by 10.64.19.200 with SMTP id h8csp311935iee;
        Mon, 27 Oct 2014 09:19:39 -0700 (PDT)
X-Received: by 10.180.20.162 with SMTP id o2mr11783455wie.57.1414426778670;
        Mon, 27 Oct 2014 09:19:38 -0700 (PDT)
Return-Path: <www-data@mail.elkarte.net>
Received: from mail.elkarte.net (s2.eurich.de. [85.214.104.5])
        by mx.google.com with ESMTP id ew3si11041456wib.48.2014.10.27.09.19.37
        for <myemailaddress@gmail.com>;
        Mon, 27 Oct 2014 09:19:37 -0700 (PDT)
Received-SPF: pass (google.com: domain of www-data@mail.elkarte.net designates 85.214.104.5 as permitted sender) client-ip=85.214.104.5;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of www-data@mail.elkarte.net designates 85.214.104.5 as permitted sender) smtp.mail=www-data@mail.elkarte.net
Received: from localhost (localhost [127.0.0.1])
by mail.elkarte.net (Postfix) with ESMTP id 56DBC4CE06EB
for <myemailaddress@gmail.com>; Mon, 27 Oct 2014 17:19:37 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at s2.eurich.de
Received: from mail.elkarte.net ([127.0.0.1])
by localhost (h2294877.stratoserver.net [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 1lEMg7BCSTTB for <myemailaddress@gmail.com>;
Mon, 27 Oct 2014 17:19:12 +0100 (CET)
Received: by mail.elkarte.net (Postfix, from userid 33)
id CD15D4CE06CE; Mon, 27 Oct 2014 17:19:12 +0100 (CET)
To: myemailaddress@gmail.com
Subject: New Personal Message: Re: the subject
X-PHP-Originating-Script: 10000:Mail.subs.php
From: "ElkArte Community" <noreply@elkarte.net>
Date: Mon, 27 Oct 2014 16:16:32 -0000
X-Mailer: ELK
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="ELK-2b732a5ab25edd27f35cab8223c19c08"
Content-Transfer-Encoding: 7bit
Message-ID: <e1dfc4055601983b1f0e6b8b175c96f1-0@elkarte.net>
Bugs creator.
Features destroyer.
Template killer.

Re: FYI - mails in spam

Reply #7

Well its not failing the SPF check any longer so that's good :D

Two other things that can PO the spam filters:
1) the Return-Path and From are not the same, I'm not sure if that is the case here
2) The rDNS not matching, here the IP address rDNS is s2.eurich.de but the mail is from mail.elkarte.net that has to be fixed at the host or we update the DNS to use s2.eurich.de for the mx record (I'm not sure I can do that though)

@TE any other thoughts on this one, email is such a pain.

Re: FYI - mails in spam

Reply #8

Changed the settings from PHP to SMTP. Hope that helps.. All settings seem to be correct.
Code: [Select]
Return-Path: <noreply@elkarte.net>
X-Original-To: mymail@eurich.de
Delivered-To: mymail@eurich.de
Received: from localhost (localhost.localdomain [127.0.0.1])
    by s1.eurich.de (Postfix) with ESMTP id 8EB984F4C06F
    for <mymail@eurich.de>; Mon, 27 Oct 2014 20:54:41 +0100 (CET)
X-Virus-Scanned: amavisd-new at s1.eurich.de
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
Received: from s1.eurich.de ([127.0.0.1])
    by localhost (h1475995.stratoserver.net [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id 4aUAeUUxbN3t for <thorsten@eurich.de>;
    Mon, 27 Oct 2014 20:54:36 +0100 (CET)
Received: from mail.elkarte.net (s2.eurich.de [85.214.104.5])
    by s1.eurich.de (Postfix) with ESMTP id A801B4F4C06E
    for <mymail@eurich.de>; Mon, 27 Oct 2014 20:54:34 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
    by mail.elkarte.net (Postfix) with ESMTP id 178A84CE06EB
    for <mymail@eurich.de>; Mon, 27 Oct 2014 20:54:34 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at s2.eurich.de
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
Received: from mail.elkarte.net ([127.0.0.1])
    by localhost (h2294877.stratoserver.net [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id 5Hos4gkc0-HL for <thorsten@eurich.de>;
    Mon, 27 Oct 2014 20:54:09 +0100 (CET)
Received: from mail.elkarte.net (h2294877.stratoserver.net [85.214.104.5])
    by mail.elkarte.net (Postfix) with ESMTPA id EFAC44CE06CE
    for <mymail@eurich.de>; Mon, 27 Oct 2014 20:54:08 +0100 (CET)
Subject: New Personal Message: stesfsd
To: <mymail@eurich.de>
Mime-Version: 1.0
From: "ElkArte Community" <noreply@elkarte.net>
Date: Mon, 27 Oct 2014 19:52:46 -0000
X-Mailer: ELK
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="ELK-7511c67bc0c2ae33a437c11b7fb01103"
Content-Transfer-Encoding: 7bit
Message-Id: <20141027195408.EFAC44CE06CE@mail.elkarte.net>

Mime-Version: 1.0 is duplicate.. Bug?
Last Edit: October 27, 2014, 04:00:09 pm by TE
Thorsten "TE" Eurich
------------------------

Re: FYI - mails in spam

Reply #9

Reading quickly the code seems like a bug, Elk is attaching a MIME field when calling smtp_mail.

To check.
Bugs creator.
Features destroyer.
Template killer.