Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emails go to spam folder in gmail #16

Closed
rabichawila opened this issue Mar 25, 2020 · 5 comments
Closed

Emails go to spam folder in gmail #16

rabichawila opened this issue Mar 25, 2020 · 5 comments

Comments

@rabichawila
Copy link

rabichawila commented Mar 25, 2020

Thanks to all contributors of this repository, really appreciate great effort you put in this project.

Now i have Installed my Mail server by following this guide: linuxbabe. , i've installed everything as suggested.

But i have a problem though.
Every time i send my emails to gmail they go to spam folder.

I tried to search online but i cannot see any clear way of fixing the problem.

[ EDIT ]

I have also heard people saying the problem is related to localhost [127.0.0.1] in the mail header, and they suggest that the problem can be fixed by removing it ( Even though they do not tell how)

And some are against removing localhost [127.0.0.1] in mail header

[ EDIT 2 ]

Mail header:

Message ID	<0eab655da201cf5cc2cc638ce88546c0@EXAMPLE.COM>
Created at:	Thu, Mar 26, 2020 at 11:39 AM (Delivered after 44 seconds)
From:	chawila rabi <chawila@EXAMPLE.COM>
To:	chawila@gmail.com
Subject:	chawila
SPF:	PASS with IP MY-IP-ADDRESS Learn more
DKIM:	'PASS' with domain EXAMPLE.COM Learn more
DMARC:	'PASS' Learn more
Delivered-To: chawila@gmail.com
Received: by 2002:a50:c048:0:0:0:0:0 with SMTP id u8csp1705124edd;
        Thu, 26 Mar 2020 02:40:21 -0700 (PDT)
X-Google-Smtp-Source: ADFU+vv+BznGXYytLoijEGsdq5W4+Run9RcLOy7RybWle5h8Pu6UUekokGby04FOpRCW7/g+Vbww
X-Received: by 2002:ac8:38eb:: with SMTP id g40mr6788062qtc.98.1585215621202;
        Thu, 26 Mar 2020 02:40:21 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1585215621; cv=none;
        d=google.com; s=arc-20160816;
        b=DNY0c3R5994pxMpueQHWhcN2WPbY7a+PaUrza3I5LvVt5kowXNKxCBhwqWc404mWtv
         ydzli5EqOdwUX2RWFpfgkSuVzOCwdj2CNNNHYICsb0+EEH3pJPr2XsBM5Cxe7YQhqmlU
         Kpp6ayUTWCnOTp/CfMIfwSoihjjKJA7ePb898RDMkkXH9nI9OyY7YNqxy9pffatf+MiM
         iJ5xiW80U2CNfbU+AUn54xcPyDIA/mF4GsikU7EKnyvcr9o8zWbBeG9cD5QFpu22z707
         WNki3UfutFSxsS3JAXRydl7k+jpsJloSh90RsW0nabTdF6npk05IRQ5Quy8VxKKL1jSV
         yJBg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=organization:message-id:user-agent:subject:to:from:date
         :mime-version:dkim-signature;
        bh=Mh2Xz0f85PtVRMU0mEZwchI365UMckbn7RlTXBEfCMw=;
        b=JHXQqFCCiWt7jAm7vlA8UhVfrVDc9opNDfj1/zxs0e/loGydYeJMETXnHXP9q/6JSy
         FPxT4v7/C3gqnYMzjTffIfMX/TVGCoQiUarLjHEQUJkNIKMf3JIDatwN8uZI5Plb3BA3
         MnUz/eUHnBC3wy2r6lwOzwwtYzAgwSpJqzBAfDW2Z8IVAHyHIv+su9grs1sY5YsQrNtP
         mIt1VhS/1g3HuWu3wnrrBquO9zWe3TP/BF4GQHoln5bFbCydXzhwakihCncAds2M0o0F
         dJv2tDWTu7PHHzpYkP74oZLwTgiKUoL4vXY9oz7UQZFXFL3MVB/q784BAAn7deD588Ks
         MwLQ==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@EXAMPLE.COM header.s=dkim header.b=JrJ75wMs;
       spf=pass (google.com: domain of chawila@EXAMPLE.COM designates MY-IP-ADDRESS-HERE as permitted sender) smtp.mailfrom=chawila@EXAMPLE.COM;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=EXAMPLE.COM
Return-Path: <chawila@EXAMPLE.COM>
Received: from mail.EXAMPLE.COM (mail.EXAMPLE.COM. [MY-IP-ADDRESS-HERE])
        by mx.google.com with ESMTPS id d17si840171qtj.176.2020.03.26.02.40.20
        for <chawila@gmail.com>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Thu, 26 Mar 2020 02:40:21 -0700 (PDT)
Received-SPF: pass (google.com: domain of chawila@EXAMPLE.COM designates MY-IP-ADDRESS-HERE as permitted sender) client-ip=MY-IP-ADDRESS-HERE;
Authentication-Results: mx.google.com;
       dkim=pass header.i=@EXAMPLE.COM header.s=dkim header.b=JrJ75wMs;
       spf=pass (google.com: domain of chawila@EXAMPLE.COM designates MY-IP-ADDRESS-HERE as permitted sender) smtp.mailfrom=chawila@EXAMPLE.COM;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=EXAMPLE.COM
Received: from mail.EXAMPLE.COM (mail.EXAMPLE.COM [127.0.0.1]) by mail.EXAMPLE.COM (Postfix) with ESMTP id 48p0MB4fMMz5tGV for <chawila@gmail.com>; Thu, 26 Mar 2020 09:39:50 +0000 (UTC)
Authentication-Results: mail.EXAMPLE.COM (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=EXAMPLE.COM
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= EXAMPLE.COM; h=content-type:organization:message-id :user-agent:subject:to:from:date:mime-version; s=dkim; t= 1585215577; x=1587807578; bh=I0N0s3nLspBejS4QlWMImSU6LZisdTsa2uC TW2kCClw=; b=JrJ75wMsfEr5SufnqE7wb892rYlUCC6egaUkcDOHyWikCNo1tGl KPh3GOcMuIvNbIczS+y8RznmSaKu3QhB02jxdgHqJpl4MGoensGShy7t0eApeoE7 vHXHJBinBpGO64HvFptokxULacb8emBZvyvpn+eXCNvUF66TzPClKui8=
X-Virus-Scanned: Debian amavisd-new at mail.EXAMPLE.COM
Received: from mail.EXAMPLE.COM ([127.0.0.1]) by mail.EXAMPLE.COM (mail.EXAMPLE.COM [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HhIO7_uvqxFy for <chawila@gmail.com>; Thu, 26 Mar 2020 09:39:37 +0000 (UTC)
Received: from localhost (mail.EXAMPLE.COM [127.0.0.1]) by mail.EXAMPLE.COM (Postfix) with ESMTPSA id 48p0Lx1hDpz5tGT for <chawila@gmail.com>; Thu, 26 Mar 2020 09:39:37 +0000 (UTC)
MIME-Version: 1.0
Date: Thu, 26 Mar 2020 11:39:37 +0200
From: Oarabile Chawilani <chawila@EXAMPLE.COM>
To: chawila@gmail.com
Subject: chawila
User-Agent: Roundcube Webmail
Message-ID: <0eab655da201cf5cc2cc638ce88546c0@EXAMPLE.COM>
X-Sender: chawila@EXAMPLE.COM
Organization: Amplified Crafts
Content-Type: multipart/mixed; boundary="=_00037a52c7447a75f844dac708875dff"

--=_00037a52c7447a75f844dac708875dff
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed

So the question i'll like to ask is: How do we fix this problem?

@TitanFighter
Copy link

What is your score: https://www.mail-tester.com/ ? Also in the report you may found info about possible problems due to which your emails may go to spam.

@rabichawila
Copy link
Author

rabichawila commented Mar 26, 2020

2020-03-26

I am not sending bulk/mass emails though..

@TitanFighter
Copy link

TitanFighter commented Mar 26, 2020

I had the same issue about 5 years ago when I bought a new domain. At that time I found info that I simply need to wait a bit and google then will recognize mails from my domain as ok, and indeed within 2-4 weeks this problem was solved automatically. Have you sent any emails from your domain before or is it a brand new domain?

@rabichawila
Copy link
Author

rabichawila commented Mar 26, 2020

I only sent less than 5 email then they went to spam, so i stop and reinstalled the mail server with iredmail.

The domain is old, it got couple of months..
even yahoo is blocking them, they are not been delivered..

[ Edit ]
My server droplet was created yesterday, and my ip is not blacklisted anywhere

@TitanFighter
Copy link

As I understand, Google does not check when your domain was created, but what they do check is when your domain appeared in their system at the first time.

@iredmail iredmail closed this as completed Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants