Opendkim

OpenDKIM:將公鑰添加到域、Debian 9、GoDaddy

  • January 22, 2019

我試圖將我的 DKIM 公鑰添加到我的域,但我不知道如何修改它這是我的整個公鑰文件

mail._domainkey IN  TXT ( "v=DKIM1; h=sha256; k=rsa; "
 "p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzYi5NvkmYqFqsnjriRnJ0jUjanxZf/+mbHdTiqD0xLX6E1d2P2ncVlMNekuLe/oglYH5XdQZtG/Ru2eXOVZ6PS+c06f6rulk08Qunr0wRZ/kX7hgICLQzgUmycDmgB2G+nwKQp0K0p8yqwQsc8mVAcfE00j9Ndmm1q8fH3ojrSlRK20h/Agj9n+Cuya1e9Dvd4viCZBUV7UA2z"
 "a87N0HPAUSSEAnNtFD/er1CrOejGndFeKceyNALk3lS1WYMC4RIW0A/0VSfWYvyifWOPmIKOue1eBByshDw/b3jDmgwZaM5Ft+vmyZpjdgv9MmOWNNNfmP9aCoDcFDSgju5O1c5wIDAQAB" )  ; ----- DKIM key mail for vxempire.xyz

當我測試它時,向 check-auth@verifier.port25.com 發送電子郵件,我得到了這些結果(我只發布了 DKIM 結果)

==========================================================
Summary of Results
==========================================================
SPF check:          pass
"iprev" check:      pass
DKIM check:         permerror
SpamAssassin check: ham

----------------------------------------------------------
DKIM check details:
----------------------------------------------------------
Result:         permerror (public key missing)
ID(s) verified:

Canonicalized Headers:
   to:<check-auth@verifier.port25.com>'0D''0A'
   subject:fsdfd'0D''0A'
   date:Tue,'20'22'20'Jan'20'2019'20'20:05:53'20'+0100'20'(CET)'0D''0A'
   from:qorg@vxempire.xyz'20'(qorg)'0D''0A'
   dkim-signature:v=1;'20'a=rsa-sha256;'20'c=relaxed/simple;'20'd=vxempire.xyz;'20's=mail;'20't=1548183953;'20'bh=3rhQvZl/qorCzillZMWP+MmcVlIsPKpHrwelGAB5i80=;'20'h=To:Subject:Date:From:Fro
+m;'20'b=

Canonicalized Body:
   sfsdhjfhsdk'0D''0A'
   fahsdkjfhds'0D''0A'


DNS record(s):
   mail._domainkey.vxempire.xyz. 60 IN TXT "v=DKIM1; h=sha256; k=rsa;""p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzYi5NvkmYqFqsnjriRnJ0jUjanxZf/+mbHdTiqD0xLX6E1d2P2ncVlMNekuLe/oglYH5XdQZ
+tG/Ru2eXOVZ6PS+c06f6rulk08Qunr0wRZ/kX7hgICLQzgUmycDmgB2G+nwKQp0K0p8yqwQsc8mVAcfE00j9Ndmm1q8fH3ojrSlRK20h/Agj9n+Cuya1e9Dvd4viCZBUV7UA2z""a87N0HPAUSSEAnNtFD/er1CrOejGndFeKceyNALk3lS1WYMC4RIW0
+A/0VSfWYvyifWOPmIKOue1eBByshDw/b3jDmgwZaM5Ft+vmyZpjdgv9MmOWNNNfmP9aCoDcFDSgju5O1c5wIDAQAB"

NOTE: DKIM checking has been performed based on the latest DKIM specs
(RFC 4871 or draft-ietf-dkim-base-10) and verification may fail for
older versions.  If you are using Port25's PowerMTA, you need to use
version 3.2r11 or later to get a compatible version of DKIM.

我已經搜尋瞭如何添加記錄,但我沒有找到任何好的結果

謝謝

已修復,我必須編寫整個密鑰

v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzYi5NvkmYqFqsnjriRnJ0jUjanxZf/+mbHdTiqD0xLX6E1d2P2ncVlMNekuLe/oglYH5XdQZtG/Ru2eXOVZ6PS+c06f6rulk08Qunr0wRZ/kX7hgICLQzgUmycDmgB2G+nwKQp0K0p8yqwQsc8mVAcfE00j9Ndmm1q8fH3ojrSlRK20h/Agj9n+Cuya1e9Dvd4viCZBUV7UA2za87N0HPAUSSEAnNtFD/er1CrOejGndFeKceyNALk3lS1WYMC4RIW0A/0VSfWYvyifWOPmIKOue1eBByshDw/b3jDmgwZaM5Ft+vmyZpjdgv9MmOWNNNfmP9aCoDcFDSgju5O1c5wIDAQAB

引用自:https://serverfault.com/questions/950258