Link to home
Start Free TrialLog in
Avatar of Malik Hourani
Malik Hourani

asked on

Exchange server send mail as spam

Hello,

i don't know why my mail server is marked as spam , i create a dmarc record , spf record and DKIM record

when i try to send to outlook it's going to spam
this is the original message.

Received: from AM5EUR03HT008.eop-EUR03.prod.protection.outlook.com
(2603:10a6:209:14::19) by AM6PR03MB3960.eurprd03.prod.outlook.com with HTTPS
via AM6PR0102CA0006.EURPRD01.PROD.EXCHANGELABS.COM; Mon, 16 Sep 2019 18:03:53
+0000
Received: from AM5EUR03FT056.eop-EUR03.prod.protection.outlook.com
(10.152.16.53) by AM5EUR03HT008.eop-EUR03.prod.protection.outlook.com
(10.152.16.102) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2263.14; Mon, 16 Sep
2019 18:03:53 +0000
Authentication-Results: spf=pass (sender IP is 5.9.186.138)
smtp.mailfrom=del-kfu.com; outlook.com; dkim=pass (signature was verified)
header.d=del-kfu.com;outlook.com; dmarc=pass action=none
header.from=del-kfu.com;
Received-SPF: Pass (protection.outlook.com: domain of del-kfu.com designates
5.9.186.138 as permitted sender) receiver=protection.outlook.com;
client-ip=5.9.186.138; helo=mail.del-kfu.com;
Received: from mail.del-kfu.com (5.9.186.138) by
AM5EUR03FT056.mail.protection.outlook.com (10.152.17.224) with Microsoft SMTP
Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id
15.20.2263.14 via Frontend Transport; Mon, 16 Sep 2019 18:03:53 +0000
X-IncomingTopHeaderMarker:
OriginalChecksum:2DE3E93961B70109DD16E834ACF566A6249500DADC4D50058B2A4D8583F29628;UpperCasedChecksum:76A430ED53EC357DF610C25671EE45DA04F597DA942585D6C13D8E0E0E338933;SizeAsReceived:1300;Count:17
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_42f1845e669e4e66b5dd2c8f6945701bdelkfucom_"
DKIM-Signature: v=1; a=rsa-sha256; d=del-kfu.com; s=mail; c=relaxed/relaxed;
t=1568656913; h=from:subject:to:date:message-id;
bh=UX/dh7KMepCw0YhHcu+nZpqwN3jxIQbVA5sbHqjZ8sY=;
b=IY6tMRAN9lRAMn5w+Pls2D/19OlX/sfLod1zj1H8bylLieIe8U0dmoIoDDINLJnYdyA3laT1ZYm
7ykHnH6wwVo2hthjl9s/nkRlmxsPOkZkqpKlW44rFh9qQABf+svL6Iolezv+c2yCJ+8KrIcqTjLe4
8HeK3gib9g6ZIYVApj0=
Received: from mail.del-kfu.com (5.9.186.138) by mail.del-kfu.com
(5.9.186.138) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1779.2; Mon, 16
Sep 2019 11:01:52 -0700
Received: from mail.del-kfu.com ([::1]) by mail.del-kfu.com ([5.9.186.138])
with mapi id 15.01.1779.002; Mon, 16 Sep 2019 11:01:52 -0700
From: Administrator <Administrator@del-kfu.com>
To: "malik.hourani@outlook.com" <malik.hourani@outlook.com>
Subject: Hello MAlik Hourani
Thread-Topic: Hello MAlik Hourani
Thread-Index: AQHVbLjRh4jaaBPBkU2S8HFR0P5ivQ==
Date: Mon, 16 Sep 2019 18:01:52 +0000
Message-ID: <42f1845e669e4e66b5dd2c8f6945701b@del-kfu.com>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [51.253.41.225]
X-IncomingHeaderCount: 17
Return-Path: Administrator@del-kfu.com
X-MS-Exchange-Organization-ExpirationStartTime: 16 Sep 2019 18:03:53.4816
(UTC)
X-MS-Exchange-Organization-ExpirationStartTimeReason: OriginalSubmit
X-MS-Exchange-Organization-ExpirationInterval: 1:00:00:00.0000000
X-MS-Exchange-Organization-ExpirationIntervalReason: OriginalSubmit
X-MS-Exchange-Organization-Network-Message-Id:
dda9e2d8-9c97-4a87-b074-08d73ad03c42
X-EOPAttributedMessage: 0
X-EOPTenantAttributedMessage: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa:0
X-MS-Exchange-Organization-MessageDirectionality: Incoming
X-Forefront-Antispam-Report: EFV:NLI;
X-MS-Exchange-Organization-AuthSource:
AM5EUR03FT056.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-PublicTrafficType: Email
X-MS-UserLastLogonTime: 9/16/2019 6:01:55 PM
X-MS-Office365-Filtering-Correlation-Id: dda9e2d8-9c97-4a87-b074-08d73ad03c42
X-Microsoft-Antispam:
BCL:0;PCL:0;RULEID:(2390118)(5000188)(711020)(4605104)(610169)(650170)(651021)(8291501072);SRVR:AM5EUR03HT008;
X-MS-TrafficTypeDiagnostic: AM5EUR03HT008:
X-MS-Exchange-EOPDirect: true
X-Sender-IP: 5.9.186.138
X-SID-PRA: ADMINISTRATOR@DEL-KFU.COM
X-SID-Result: PASS
X-MS-Exchange-Organization-PCL: 2
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2019 18:03:53.4636
(UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: dda9e2d8-9c97-4a87-b074-08d73ad03c42
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg:
00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT008
X-MS-Exchange-Transport-EndToEndLatency: 00:00:00.5026980
X-MS-Exchange-Processed-By-BccFoldering: 15.20.2263.022
X-Microsoft-Antispam-Mailbox-Delivery:
abwl:0;wl:0;pcwl:0;kl:0;iwl:0;dwl:0;dkl:0;rwl:0;ucf:0;jmr:0;ex:0;auth:1;dest:J;OFR:SpamFilterAuthJ;ENG:(5062000261)(5061607266)(5061608174)(4900115)(8390120)(8383139)(4920090)(6350004)(4950130)(4990090)(9140004);RF:JunkEmail;
X-Message-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eJXCE3C9bcZCZO7rxDoajJDlfk//AiEdSvWkH6T2PN5T98J7WWgCb6+yZkBtwvp3wW+sOqubyA5+YQoDujv9X1/YW5VukuYzjGRoWAXLK8btJ
MIME-Version: 1.0

--_000_42f1845e669e4e66b5dd2c8f6945701bdelkfucom_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello MAlik Hourani

--_000_42f1845e669e4e66b5dd2c8f6945701bdelkfucom_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html><head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Helvetica,sans-serif;" dir=3D"ltr">
<p><span>Hello MAlik Hourani</span><br>
</p>
</div>
</body>
</html>

--_000_42f1845e669e4e66b5dd2c8f6945701bdelkfucom_--

Open in new window

Avatar of Malik Hourani
Malik Hourani

ASKER

and this is the SPF record and _dmarc record.

Please any suggest or any help to me to handle the issue.

SPF : v=spf1 a mx a:mail.del-kfu.com mx:mail.del-kfu.com ip4:5.9.186.138 ~all
v=DMARC1;p=reject;pct=100;ruf=mailto:postmaster@del-kfu.com;fo=0:d:s;aspf=r;adkim=r;
Avatar of Amit
When i checked your domain del-kfu.com on mxtoolbox. It says: SPF Alignment Failed

That is the reason, going to spam.
Is the above header is from a mail sent from your server (mail.del-kfu.com)?
It seems your SPF is wrong and DKIM is not aligned.
how can we handle this issue please ?!
yes it's from my mail server mail.del-kfu.com
You need to set your SPF as below
v=spf1 mx:mail.del-kfu.com ip4:5.9.186.138 ~all

Open in new window

replace 5.9.186.138 with your sending server Public IP if it is not correct.
Hi Malik,

Please find attached error with your dns

For more detail, refer to:

https://mxtoolbox.com/domain/del-kfu.com/

Thank you
Capture.JPG
Hi Malik,

try this

v=spf1 mx ip4:5.9.186.138 ~all

If when you send email, your are using another IP address different to 5.9.186.138, please use "include" to add that other IP
Guys why are you all recommending "~" Soft fail.
Please let's make the world a safer place, please use "-" instead (which it's strict).

So you defined the SPF records for a reason to be strict and not to be "soft fail" where a hacker can take advantage of your email infrastructure and send emails as you.
hi , my case is  when i send to gmail it's going to inbox , when send to hotmail, outlook , live it's going to spam folder
hello,
this is the header from Gmail :


Delivered-To: hourani8@gmail.com
Received: by 2002:a17:90a:8805:0:0:0:0 with SMTP id s5csp6974019pjn;
        Tue, 17 Sep 2019 21:55:39 -0700 (PDT)
X-Google-Smtp-Source: APXvYqx0D3ltbOjsc2rnPOndVCldurAKVLWJOfj7y9QwfcGln5C/sfHl4piGPspfwuzAD5yhKe0D
X-Received: by 2002:a1c:7919:: with SMTP id l25mr960303wme.23.1568782539768;
        Tue, 17 Sep 2019 21:55:39 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1568782539; cv=none;
        d=google.com; s=arc-20160816;
        b=muVyrFMnWKXdeZnWCf2oXoixGeuVZdZV3ip0fkmyG2P/q9rJNOiQrGtoYN8H47uxD4
         os0rsOritoqt6GSdbhAYwL/1Oe6YaJ/74m9YhkGXcCruuuPORu1przilq8OUjSftW4OL
         W/0Z5qh/dk6dDJZ/KE/N0A+eKWnjJ86Da5A/2jcMp+RnFg9rjq9bKZdZt4VozZ1Plf4V
         hxIO9GX4pzbKBMbGRZdzMFMIlVke5ymj9x/siwYZBoY/ADPsOuWxWSQmZr552BOcOmAz
         Ww6z5syf2TnSWuh617lD9t9UZb7rxPGIHcTDLA1yoSQTNIvzNevyr0GGFww5YyVdILmE
         9Q0A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=mime-version:accept-language:message-id:date:thread-index
         :thread-topic:subject:to:from:dkim-signature:content-language;
        bh=BFMYoGIlxKuTl99TtCD32nJDOQ/+dQZmuiGGs/tGSGk=;
        b=MxwTTYw8k4rihunut+TG/cltT7BlZeNnSZdR4P2ALq9LnVtpawUq87fxtRWTa25A07
         gM/lAuNVY3pEyBusBbD04zqhyUQ/1s81u3ZdBWI5ixdKIgcgJlObXfFitHA2phgOVi4U
         7Jsqcl/6r+6XZxpKHwMwNNZl4S+/N4wgZXIFv9AtAb8mxg1gHCi7mfKdPnuhMPt9NG+S
         11TpkAiK4ItAGWoEHP9Q6/sq85Hyj6BK2w7Soy2FbpF/p8hwCVgC1+LCTSXklIyOogCk
         BJ885nir+ZvBJb7GKe4Dkl8gtr/fzYdxs882h0erOOWa5QKvu70OOZZcdz6TZg35Y7vQ
         3p7A==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@del-kfu.com header.s=mail header.b=q6eO+y5k;
       spf=fail (google.com: domain of mhourani@del-kfu.com does not designate 2002:509:ba8a::509:ba8a as permitted sender) smtp.mailfrom=mhourani@del-kfu.com;
       dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=del-kfu.com
Return-Path: <mhourani@del-kfu.com>
Received: from mail.del-kfu.com ([2002:509:ba8a::509:ba8a])
        by mx.google.com with ESMTPS id 91si3352817wre.435.2019.09.17.21.55.38
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
        Tue, 17 Sep 2019 21:55:39 -0700 (PDT)
Received-SPF: fail (google.com: domain of mhourani@del-kfu.com does not designate 2002:509:ba8a::509:ba8a as permitted sender) client-ip=2002:509:ba8a::509:ba8a;
Authentication-Results: mx.google.com;
       dkim=pass header.i=@del-kfu.com header.s=mail header.b=q6eO+y5k;
       spf=fail (google.com: domain of mhourani@del-kfu.com does not designate 2002:509:ba8a::509:ba8a as permitted sender) smtp.mailfrom=mhourani@del-kfu.com;
       dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=del-kfu.com
Content-Language: en-US
Content-Type: multipart/alternative; boundary="_000_a034002426754e3791e8be7eb190b074delkfucom_"
DKIM-Signature: v=1; a=rsa-sha256; d=del-kfu.com; s=mail; c=relaxed/relaxed; t=1568782538; h=from:subject:to:date:message-id; bh=BFMYoGIlxKuTl99TtCD32nJDOQ/+dQZmuiGGs/tGSGk=; b=q6eO+y5k+kUnwKaG9Z4PVd18H2+GJePtETPm1CGq7ZG3DXjiaacJcge19ny76nvasi09E1JWxBv JrEXd2pE7YSUZ+3kaN1SKBc6GPc9RAfuXg4X23G2yVx9GaBzxBUMbH8uBe7KpdtDBgI7oAJE7FHgA WFV+OhhPRfLG80z+LNc=
Received: from mail.del-kfu.com (5.9.186.138) by mail.del-kfu.com (5.9.186.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1779.2; Tue, 17 Sep 2019 21:55:36 -0700
Received: from mail.del-kfu.com ([::1]) by mail.del-kfu.com ([5.9.186.138]) with mapi id 15.01.1779.002; Tue, 17 Sep 2019 21:55:36 -0700
From: Malik Mohammad Hourani <mhourani@del-kfu.com>
To: "malik.hourani@outlook.com" <malik.hourani@outlook.com>, "malik.hourani@live.com" <malik.hourani@live.com>, "malik.hourani@icloud.com" <malik.hourani@icloud.com>, "hourani8@gmail.com" <hourani8@gmail.com>, "malik.hourani@gmail.com" <malik.hourani@gmail.com>
Subject: Hello All Mails
Thread-Topic: Hello All Mails
Thread-Index: AQHVbd1D/3eziTq1Qk6DUQWCdpE8Rw==
Date: Wed, 18 Sep 2019 04:55:34 +0000
Message-ID: <a034002426754e3791e8be7eb190b074@del-kfu.com>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [51.253.41.225]
MIME-Version: 1.0

--_000_a034002426754e3791e8be7eb190b074delkfucom_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello All Mails

--_000_a034002426754e3791e8be7eb190b074delkfucom_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Helvetica,sans-serif;" dir=3D"ltr">
<p><span>Hello All Mails</span><br>
</p>
</div>
</body>
</html>

--_000_a034002426754e3791e8be7eb190b074delkfucom_--
spf=fail (google.com: domain of mhourani@del-kfu.com does not designate 2002:509:ba8a::509:ba8a as permitted sender) smtp.m

Well the error is that you're using ipv6 to send the email and is not on the SPF record, correct that.
i correct it and it's pass with gmail
in the attached file you will see list of address that received may email as spam , and received on inbox
User generated image
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.