DKIM and cloudflare

Alen

Verified User
Joined
Oct 2, 2019
Messages
12
Hello, i have dns management on CloudFlare.
So ip -> mail.domain.tld -> old server
ip -> domain.tld -> old server
on CloudFlare is also DKIM record from old server

when i do https://help.directadmin.com/item.php?id=569 and click on enable dkim it create dns record and then i copy that record to CloudFlare
then i change IP on CloudFlare for mail.domain.tld to new server (DirectAdmin) and then send email it's show there is no valid DKIM

so how to fix this?

CentOS 7.0 64-Bit
DirectAdmin 1.59.1
 
In order to get DKIM working you need to follow the guide you've already mentioned: https://help.directadmin.com/item.php?id=569

If emails are still not signed try this one:

Code:
cd /usr/local/directadmin/custombuild

./build update
./build set exim yes
./build set eximconf yes
./build set eximconf_release 4.5
./build exim
./build eximconf


and then re-create a DKIM record in DirectAdmin on a DNS page, and copy/paste public part to CF.
 
Code:
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=user-agent:to:from:subject:message-id:date:mime-version
         :dkim-signature;
        bh=MVN2luR1gi4WrcfSCZMbb92Yr3jzQbB2PyshPfTbqX8=;
        b=Xa02PwlMkgLZFLzuG1q/OvNfQ4F828DK9e3OBdAd2Zdsrx1TU32S/xPgPwuwZutRYF
         fKpC04SKKreGKikyj5LGlyY3lc2fLm3htv7u/Tm6+gvs6UkfoXCl+H47E91zYt51o4/0
         dnmZHFYzZp9F42/U2tBn1fagQKmZOo3Fiq7GgJzOej8aVjSg13au1vNyNyZUPVpyQuCh
         iXlyY8CjIiI1AfuGv11ZdwJOAdQ0WJ2l6ifndpGLJ3nh57LURJO/ONKjovPKNC/U9Y9x
         zcZMF8RL4wSHzeZ9QpceKiB9YzDERxsX8U1BUEkuY4yYTb5CylYmZ2Eyo3DyND+TYw4l
         sgAQ==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=temperror (no key for signature) [email protected] header.s=x header.b=fLaIX+aM;
       spf=pass (google.com: domain of [email protected] designates 95.95.95.95 as permitted sender) [email protected];
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=domain.tld
Return-Path: <[email protected]>
Received: from master.domain.tld (master.domain.tld. [95.95.95.95])
        by mx.google.com with ESMTPS id h22si3552531ljk.258.2019.10.03.13.59.51
        for <[email protected]>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 03 Oct 2019 13:59:51 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 95.95.95.95 as permitted sender) client-ip=95.95.95.95;
Authentication-Results: mx.google.com;
       dkim=temperror (no key for signature) [email protected] header.s=x header.b=fLaIX+aM;
       spf=pass (google.com: domain of [email protected] designates 95.95.95.95 as permitted sender) [email protected];
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=domain.tld
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=domain.tld; s=x; h=To:From:Subject:Message-ID:Date:MIME-Version: Content-Type:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MVN2luR1gi4WrcfSCZMbb92Yr3jzQbB2PyshPfTbqX8=; b=fLaIX+aMCKQ3X1rbx9V/YDyIlq dHN52MbYKdNhNqWnV+n0/noGnK5T6fJ05Kc1CW0MAFJuy8deGNxXqmKIpm7ztbAkyhMCl5bjj+Ha/ I+3xxPFfYt5tX9wcmYv7jG39AbqKiVIkwGIxQbAHbrWFSMK1JO009O/yfKklbGjxYe1zc0lbVk+MX mh5mZqwvuSlLhy6Y5yg2z6Pto1cWdjmTuIF6eZiuuVDDX2NGOKfsxg9PMEznB3Y+8sLuD4vlGPg2n yujVf09IlrpqVNM5fKiVeS71DujoaNUWZpiH/Fu/XDt70HOLZM5YpDigs8roGL/J9H8wf26Z3qqbK H2qBvaWw==;
Received: from localip ([178.223.147.247] helo=[192.168.1.6]) by master.domain.tld with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from <[email protected]>) id 1iG8CV-0006Kj-H9 for [email protected]; Thu, 03 Oct 2019 22:59:51 +0200

that is from google

from DNS DirectAdmin:

Code:
x._domainkey

v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7/F71TLySaaqPUz49ekKCK1iv3ByvnaJfS0kCS+gHqFzs81EIxQjwgaXQzNxBWHPDQENtfKxvKSP77cLot6YG/QirZp9IiHCH1aq7PcUbbzq2VAJU/L0DxX+fNW18BiAXGuRPEhzwiTGpFrsQpsBxqkE8MEagDMAi3395I2HEpI6pZ2hX86P/EyCCGxxrO+edKj8VnMPZifwt31nn3EAEUBVD0YihyKh+9ujgNx39VZTDtgJe2uLJZLMaGBNFe7kKsh9YESPHseCjgOYwTAFYDzsvK9aYipZ1NmQR0LoMhZBRtWVtqYUISSBEgDkWU0IVLQPxiK01zvE8SBfaCf8qwIDAQAB
 
Back
Top