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.