All my emails marked as spam

Discussion in 'General' started by fearoulis, Aug 27, 2018.

  1. fearoulis

    fearoulis New Member

    I recently moved to a new dedicated server,proxmox with 2 kvm for web and mail server. For both servers i follow the latest Debian guide , Securing ISPConfig 3.1 with LE and Hardering Postfix guide only for mail server . Also i am using cloudflare for dns.

    Everything works fine except my emails always went to spam(gmail,yahoo). I tried almost every recommendation and i didnt manage to find any solution :mad:

    DNS Records
    A     mail             mail-server-ip
    A        web-server-ip
    A    www            web-server-ip
    MX          mail handled by
    TXT    1535301626._domainkey   v=DKIM1; t=s; p=my-public-key
    TXT    _dmarc            v=DMARC1; p=reject; rua=mailto:email; ruf=mailto:email; fo=0:1:d:s
    TXT        v=spf1 mx a ~all
    TXT    mail            v=spf1 -all
    TXT    www            v=spf1 -all

    Message identifier    <[email protected]>
    Created on:    August 27, 2018 - 2:01 am (Delivered after 1 second)
    From:    [email protected]
    To:    [email protected]
    Theme:    test
    SPF:    PASS with IP mail-server-ip Learn more
    DKIM:    'PASS' with the domain Learn more
    DMARC:    'PASS' Learn more
    Delivered-To: [email protected]
    Received: by 2002:a5d:4ec7:0:0:0:0:0 with SMTP id s7-v6csp4834286wrv;
            Sun, 26 Aug 2018 16:01:42 -0700 (PDT)
    X-Google-Smtp-Source: ANB0VdZZ/2OT0ze5ANNsy4I6RnWiN6kecAiaxlDqYnlSdBtPyYyMcX+c9FkT3ZMIb+MVveW0K8Qa
    X-Received: by 2002:a50:9ac5:: with SMTP id p63-v6mr14155074edb.112.1535324502664;
            Sun, 26 Aug 2018 16:01:42 -0700 (PDT)
    ARC-Seal: i=1; a=rsa-sha256; t=1535324502; cv=none;
  ; s=arc-20160816;
             gos6OkM4rTK1eYmaNrrxVa0bWxpwImGa2MGx58zCbujetfMXWR5w4nLMI Uq36 + + HMp5X
    ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=arc-20160816;
            bh = g3zLYH4xKxcPrHOD18z9YfpQcnk / GaJedfustWU5uGs =;
             FYJA ==
    ARC-Authentication-Results: i=1;;
           dkim=pass [email protected] header.s=1535301626 header.b=bTKLtm5w;
           spf=pass ( domain of [email protected] designates mail-server-ip as permitted sender) [email protected];
           dmarc=pass (p=REJECT sp=REJECT dis=NONE)
    Return-Path: <[email protected]>
    Received: from ( [mail-server-ip])
            by with ESMTPS id a1-v6si1084075eds.294.2018.
            for <[email protected]>
            (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
            Sun, 26 Aug 2018 16:01:42 -0700 (PDT)
    Received-SPF: pass ( domain of [email protected] designates mail-server-ip as permitted sender) client-ip=mail-server-ip;
           dkim=pass [email protected] header.s=1535301626 header.b=bTKLtm5w;
           spf=pass ( domain of [email protected] designates mail-server-ip as permitted sender) [email protected];
           dmarc=pass (p=REJECT sp=REJECT dis=NONE)
    Received: from localhost (localhost []) by (Postfix) with ESMTP id 44F7E1781789 for <[email protected]>; Sun, 26 Aug 2018 19:01:42 -0400 (EDT)
    DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;; h= user-agent:message-id:from:from:date:date :content-transfer-encoding:content-type:content-type :mime-version:subject:subject; s=1535301626; t=1535324501; x= 1537138902; bh=g3zLYH4xKxcPrHOD18z9YfpQcnk/GaJedfustWU5uGs=; b=b TKLtm5wuy8G7MCPZ4gR4f8Uh2RX5yb5z0mTRZFCRrdAUIhoh//cju4wDMFohTMac PysuP8/l8RPvwQzY1hA9l+ToEpGUvJschOCdEQB17FyK52a1ExkVqC6VEy4g/LP9 gmMfj1LJbevPLUnpZBi3EoPjcdOYRKi1Mk3nyBQ+34=
    X-Virus-Scanned: Debian amavisd-new at
    Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id zsv_Oh49P-UU for <[email protected]>; Sun, 26 Aug 2018 19:01:41 -0400 (EDT)
    Received: by (Postfix, from userid 33) id D9E5A17847E3; Sun, 26 Aug 2018 19:01:41 -0400 (EDT)
    To: [email protected]
    Subject: test
    X-PHP-Originating-Script: 0:rcube.php
    MIME-Version: 1.0
    Content-Type: text/plain; charset=US-ASCII; format=flowed
    Content-Transfer-Encoding: 7bit
    Date: Mon, 27 Aug 2018 02:01:41 +0300
    From: [email protected]
    Message-ID: <[email protected]>
    X transmitter: [email protected]
    User-Agent: Roundcube Webmail/1.2.3

    any ideas ??
    Last edited: Aug 27, 2018
  2. Ghostdare

    Ghostdare Member

    The new setup has a new IP? Check the PTR record - you must have one
    Sometimes, for me, is insane when people ask for ideas and mask their domain name, as we start to do some hacking attempts on them. But is my opinion.
    Taleman likes this.
  3. fearoulis

    fearoulis New Member

    Hey @Ghostdare thnx for your answer and i agree with you about the masking but i am not an expert not even an experienced user .I was searching for a solution in this forum and i saw a lot ppl mask their domain name so thats what i did it :)

    Back in the subject now yeah the new setup has a new IP . Also about the PTR record tbh i dont really know about this ,i just copy all dns records from ispconfig to cloudflare and add dmrca + dkim records .
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Check if your mail server has PTR record like this.
    host mail.yourdomain.tld
    See what IP-number that returns for your mail server host. Then
    to see if it returns your mail server hostname.
    If not, you do not have a correct PTR record, and most mail servers that receive mail from your mail host will discard the mail.
    Or go to, input your domain. Then when domain is checked choose "Test email server".
  5. fearoulis

    fearoulis New Member

    host mail.yourdomain.tld returns my ip
    but host returns my reverse dns entry with a pointer to mail.yourdomain.tld
  6. Ghostdare

    Ghostdare Member

Share This Page