1

Topic: Multi-domain setup mail gets marked as SPAM

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Used the multi-domain setup.  Main domain/hostname is fine and everything goes through.  I setup two other domains before doing the rest and both of those go to SPAM. Not on any blacklist and I setup individual DKIM and SPF per documentation I found here.  MX records point back to main mail domain and SPF allows IP to send on behalf of the domain.  Not sure what I am doing wrong or missing but its not liking me for some reason.

Here is the headers of the mail
Delivered-To: someuser12@gmail.com
Received: by 10.55.44.196 with SMTP id s187csp167006qkh;
        Thu, 19 Nov 2015 14:03:44 -0800 (PST)
X-Received: by 10.50.129.98 with SMTP id nv2mr49287igb.97.1447970624390;
        Thu, 19 Nov 2015 14:03:44 -0800 (PST)
Return-Path: <info@domain1.com>
Received: from mail.domain.com (mail.domain.com. [100.200.30.300])
        by mx.google.com with ESMTPS id qf9si14523730igb.61.2015.11.19.14.03.44
        for <someuser12@gmail.com>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 19 Nov 2015 14:03:44 -0800 (PST)
Received-SPF: pass (google.com: domain of info@domain1.com designates 100.200.30.300 as permitted sender) client-ip=100.200.30.300;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of info@domain1.com designates 100.200.30.300 as permitted sender) smtp.mailfrom=info@domain1.com;
       dkim=pass header.i=@domain1.com
Received: from mail.domain.com (localhost [127.0.0.1])
    by mail.domain.com (Postfix) with ESMTP id 8B862143276
    for <someuser12@gmail.com>; Thu, 19 Nov 2015 17:03:43 -0500 (EST)
Authentication-Results: mail.domain.com (amavisd-new);
    dkim=pass (1024-bit key) reason="pass (just generated, assumed good)"
    header.d=domain1.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=domain1.com;
     h=user-agent:message-id:subject:subject:to:from:from:date:date
    :content-transfer-encoding:content-type:content-type
    :mime-version; s=dkim; t=1447970623; x=1448834624; bh=MIQy/pFAFs
    z1HbnmLEk2Rpv4NTyfn6o92CiEyKo4wLI=; b=Eq5tI0Mf8/AGqaGWR9zZQ8Fxyp
    xFrVgvlO0qp9wd0IXwC/XdktdqvD9UgSGhh/lt96cuY66d7VZbsdtXS6NhDl2liK
    UIWWTmd+3lAC9jwzdKC6iO9l/f5qNBYOgQIodPJxcrR30PyG/OzcNTTfUhxdIqFL
    P5vTi/Vpu5OW7r0lM=
X-Virus-Scanned: Debian amavisd-new at mail.domain.com
Received: from mail.domain.com ([127.0.0.1])
    by mail.domain.com (mail.domain.com [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id tMCsp2irvyl5 for <someuser12@gmail.com>;
    Thu, 19 Nov 2015 17:03:43 -0500 (EST)
Received: from _ (localhost [127.0.0.1])
    by mail.domain.com (Postfix) with ESMTPSA id 2AB7014326C
    for <someuser12@gmail.com>; Thu, 19 Nov 2015 17:03:42 -0500 (EST)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
format=flowed
Content-Transfer-Encoding: 7bit
Date: Thu, 19 Nov 2015 17:03:42 -0500
From: info@domain1.com
To: someuser12@gmail.com
Subject: Good evening
Message-ID: <6b67cc8a779bf8b422252f2e63d7d6f1@domain1.com>
X-Sender: info@domain1.com
User-Agent: Roundcube Webmail

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Multi-domain setup mail gets marked as SPAM

It just happens. It's hard to know how Google and other ISPs detect spams, so there's no many things we can do to avoid this.

3 (edited by rafaelr 2015-11-24 14:50:55)

Re: Multi-domain setup mail gets marked as SPAM

It is in fact worrisome. I have experienced the same issue with some of the domains I host when communicating with gmail users, comcast and hotmail. I have SPF, DKIM, DMARC, and every other record I can think of to make the service as effective as possible.  Every now and then Gmail will deliver messages to the user's Junk folder (specially those that have never received a previous communication from our servers. I have dedicated SMTP IPs for specific domains, all possible records that mailservers check, clean (never blacklisted IPs) clean netblock and the list just go and go.

I believe major service providers are playing fair ONLY between them. There is pretty much very little one can do... just engage the receiver to mark the message as NOT SPAM and your communication will flow.

I have checked the source of many of these "Junk" delivered messages in GMAIL and all records passed. I have strict records  for each SMTP IP in DNS telling exactly which IP is permitted to send for each domain... like I said, I've done everything I possibly can and nothing seems to do the trick 100%.

You're not alone on this boat... and I refuse to pay third-party services like senderscore or any of that bs when I have 100% changes of deliveries based on good track and DNS records alone. Google, although you can contact them to whitelist your domains, I don't think they care or do much about it. I have contacted them few times already and not I have received no response but the situation hasn't improved one bit.

Here is a link to try to get in contact with them: https://support.google.com/mail/contact … d_new?rd=1

Note that none of my domains do bulk sending so maybe your case is different.

Read here and you may have better luck with them than me:

https://support.google.com/mail/answer/81126?hl=en

Good luck.

4

Re: Multi-domain setup mail gets marked as SPAM

Have you tried signing up for Google's postmaster tools? You can sign up with google provided that you have an account with Google, at https://postmaster.google.com. You can register all of your sending domains with google, and they'll give you a text record for your DNS so that they can validate the ownership of the domains. I have all of my mail domains hosted on one box, and I use their postmaster tools. It's pretty valuable, as it gives you feedback loop access, as well as statistics, and what not. If you register your domains with Google's postmaster tools, it may give you a bit of an edge over not having anything registered with them. It might also help to get you out of the "junk" mailbox. I don't know exactly how they weigh their feedback loop registered members, and their domains, but it certainly couldn't hurt. Also getting yourself whitelisted with a free organization like dnswl.org can't hurt either. Scrollout's whitelisting is free, so is Host Karma. I'm also whitelisted on senderscore as well, but I haven't paid them for anything. I only signed up for a free account with them. They auto-whitelisted me when I signed up for the account. The more whitelistings that you can get, the better off you'll be.

5

Re: Multi-domain setup mail gets marked as SPAM

Dear Rafaelr, SteveLuxe,

Thanks for sharing your experience, i updated document to mention both Postmaster Tools and the web forms:
http://www.iredmail.org/docs/setup.dns. … ster-tools

Hope it helps.