2017-04-12 10 views
0

私は、DKIMで自分のhmailserverをセットアップしようとしています。DKIM hmailserverとNameCheap Setup

私は、このガイド以下だった

- >https://www.hmailserver.com/forum/viewtopic.php?t=29402

そして、私はこのサイトで、私のキーを作成 - >https://www.port25.com/dkim-wizard/

ドメイン名:DKIM

キー:

DomainKeyセレクターlinnabary.usサイズ:1024

私はpemファイルを作成しました。

-----BEGIN RSA PRIVATE KEY----- 
<key> 
-----END RSA PRIVATE KEY----- 

、それを保存し、私はTXTレコードの選択NameCheapにこれを設定すると、@のように私のホストを設定し、このラインを入れhmailserver

にそれをロードし、マイナスもちろんのキー。

v=DKIM1; k=rsa; p=<KEY> 

私はでテスト - >http://www.isnotspam.com

それは次のように私のDKIMキーがあると言います。

---------------------------------------------------------- 
DKIM check details: 
---------------------------------------------------------- 

Result: invalid 
ID(s) verified: [email protected] 
Selector= 
domain= 
DomainKeys DNS Record=._domainkey. 

私の記録に明らかな誤りがあるかどうかは疑問でした。

編集;

このメールには次の行が含まれています。

dkim-signature: v=1; a=rsa-sha256; d=linnabary.us; s=dkim; 

これは、設定がNameCheapのようになります。

enter image description here

そして、ここから次のテストメールです。あなたのTXTエントリの

This message is an automatic response from isNOTspam's authentication verifier service. The service allows email senders to perform a simple check of various sender authentication mechanisms. It is provided free of charge, in the hope that it is useful to the email community. While it is not officially supported, we welcome any feedback you may have at . 

Thank you for using isNOTspam. 

The isNOTspam team 

========================================================== 
Summary of Results 
========================================================== 

SPF Check : pass 
Sender-ID Check : pass 
DKIM Check : invalid 
SpamAssassin Check : ham (non-spam) 
========================================================== 
Details: 
========================================================== 

HELO hostname: [69.61.241.46] 
Source IP: 69.61.241.46 
mail-from: [email protected] 
Anonymous To: [email protected] 
--------------------------------------------------------- 
SPF check details: 
---------------------------------------------------------- 

Result: pass 
ID(s) verified: [email protected] 
DNS record(s): 
linnabary.us. 1799 IN TXT "v=spf1 a mx ip4:69.61.241.46 ~all" 


---------------------------------------------------------- 
Sender-ID check details: 
---------------------------------------------------------- 

Result: pass 

ID(s) verified: [email protected] 
DNS record(s): 
linnabary.us. 1799 IN TXT "v=spf1 a mx ip4:69.61.241.46 ~all" 


---------------------------------------------------------- 
DKIM check details: 
---------------------------------------------------------- 

Result: invalid 
ID(s) verified: [email protected] 
Selector= 
domain= 
DomainKeys DNS Record=._domainkey. 

---------------------------------------------------------- 
SpamAssassin check details: 
---------------------------------------------------------- 
SpamAssassin 3.4.1 (2015-04-28) 

Result: ham (non-spam) (04.6points, 10.0 required) 

pts rule name description 
---- ---------------------- ------------------------------- 


* 3.5 BAYES_99 BODY: Bayes spam probability is 99 to 100% 
* [score: 1.0000] 
* -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 
* -0.0 SPF_PASS SPF: sender matches SPF record 
* 0.2 BAYES_999 BODY: Bayes spam probability is 99.9 to 100% 
* [score: 1.0000] 
* 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily 
* valid 
* 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS 
* 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 
X-Spam-Status: Yes, hits=4.6 required=-20.0 tests=BAYES_99,BAYES_999, 
DKIM_SIGNED,RDNS_NONE,SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID autolearn=no 
autolearn_force=no version=3.4.0 
X-Spam-Score: 4.6 

To learn more about the terms used in the SpamAssassin report, please search 
here: http://wiki.apache.org/spamassassin/ 

========================================================== 
Explanation of the possible results (adapted from 
draft-kucherawy-sender-auth-header-04.txt): 
========================================================== 

"pass" 
the message passed the authentication test. 

"fail" 
the message failed the authentication test. 

"softfail" 
the message failed the authentication test, and the authentication 
method has either an explicit or implicit policy which doesn't require 
successful authentication of all messages from that domain. 

"neutral" 
the authentication method completed without errors, but was unable 
to reach either a positive or a negative result about the message. 

"temperror" 
a temporary (recoverable) error occurred attempting to authenticate 
the sender; either the process couldn't be completed locally, or 
there was a temporary failure retrieving data required for the 
authentication. A later retry may produce a more final result. 

"permerror" 
a permanent (unrecoverable) error occurred attempting to 
authenticate the sender; either the process couldn't be completed 
locally, or there was a permanent failure retrieving data required 
for the authentication. 


========================================================== 
Original Email 
========================================================== 

From [email protected] Wed Apr 12 17:41:22 2017 
Return-path: <[email protected]> 
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on isnotspam.com 
X-Spam-Flag: YES 
X-Spam-Level: **** 
X-Spam-Report: 
* 3.5 BAYES_99 BODY: Bayes spam probability is 99 to 100% 
* [score: 1.0000] 
* -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 
* -0.0 SPF_PASS SPF: sender matches SPF record 
* 0.2 BAYES_999 BODY: Bayes spam probability is 99.9 to 100% 
* [score: 1.0000] 
* 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily 
* valid 
* 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS 
* 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 
X-Spam-Status: Yes, hits=4.6 required=-20.0 tests=BAYES_99,BAYES_999, 
DKIM_SIGNED,RDNS_NONE,SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID autolearn=no 
autolearn_force=no version=3.4.0 
Envelope-to: [email protected] 
Delivery-date: Wed, 12 Apr 2017 17:41:22 +0000 
Received: from [69.61.241.46] (helo=linnabary.us) 
by localhost.localdomain with esmtp (Exim 4.84_2) 
(envelope-from <[email protected]>) 
id 1cyMGg-0007x2-1Q 
for [email protected]; Wed, 12 Apr 2017 17:41:22 +0000 
dkim-signature: v=1; a=rsa-sha256; d=linnabary.us; s=dkim; 
c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type:Content-Transfer-Encoding; 
bh=Ns4aRUgWUtil4fiVnvitgeV+q1K/smEYtRGN497S5Ew=; 
b=Nc2Kzrzas0QqMpWM4fnF5o5wLWlWYFxlGlAipe+85H9cwGgc4hvEKUj1UvgB6I2VHUbJ0OGN/sJO9tjWgwlGypaUuW7Q8x/iI0UtC6cn7X6ZLHT+K6A2A6MdoyR1NF4xxvqPadcmcQwnrY0Tth4ycydpQMlBCZS30sc1qUjUrN0= 
Received: from [192.168.1.12] (Aurora [192.168.1.12]) 
by linnabary.us with ESMTPA 
; Wed, 12 Apr 2017 13:41:28 -0400 
To: [email protected] 
From: Admin <[email protected]> 
Subject: Welcome to Linnabary 
Message-ID: <[email protected]> 
Date: Wed, 12 Apr 2017 13:41:28 -0400 
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 
Thunderbird/45.8.0 
MIME-Version: 1.0 
Content-Type: text/plain; charset=utf-8; format=flowed 
Content-Transfer-Encoding: 7bit 
X-DKIM-Status: invalid (pubkey_unavailable) 
I honestly have no idea what I should put in here in order to protect 
myself from filters, so I'm just making it up as I go. 

- Tad 
+0

'dkim._domainkey.linnabary.us'のTXTレコードが見つかりません。テスト電子メールの署名はどのように見えるのですか?正しいドメイン( 'd = linnabary.us')とセレクタ(' s = dkim')を含んでいますか?また、**は秘密鍵**を生成するオンラインツールを使用していません**!あなたのマシンでそれらを生成するには 'openssl'などを使います。あなたがリンクしているサイトは、POST要求の応答であなたに公開鍵/秘密鍵のペアを送ります。たとえ彼らがそれを保存しないと言っても、本当にそうではないかどうかを確認する方法はないので、あなたがそれを手に入れたときに鍵が妥協しているように見えるはずです。 – mata

答えて

1

ホスト値はちょうどdkim._domainkeyでなければなりません。現在、ドメインキーはdkim._domainkey.linnabary.us.linnabary.usにありますので、ここにドメインを追加する必要はありません。

これは、テスト電子メールへの応答がX-DKIM-Status: invalid (pubkey_unavailable)と表示されているためです。公開鍵が見つかることはありません。

+0

それが問題でした。今はすべてが機能しています。 – Kayot

関連する問題