Amazon Simple Email Service – DKIM設定

  • 投稿者:
  • 投稿カテゴリー:aws / SES

DKIMとは

Domainkeys Identified Mail(DKIM)は、電子署名方式の送信ドメイン認証
2015-04-12_000638

メリット

・amazonses.com経由がなくなる
2015-04-12_000821
・信頼性を向上し、届く確率があがる

設定方法

2015-04-12_001352

DNS(Route 53)に以下を登録する
2015-04-12_001829

[Use Route 53]から登録可能
2015-04-12_002037

しばし待つ
2015-04-12_002651

Amazonからメールが届く
2015-04-13_003618

ステータスも変化している。[enable]から有効化する
2015-04-13_003845

2015-04-13_003937

有効化された
2015-04-13_004024

DKIM設定後メールしてみた

2015-04-13_004641

amazonses.com経由はなくなった
2015-04-13_004658

メールソースも確認する

dkim=pass header.i=@akat.info となっている(amazonses.comからのDKIMもpassしている)
メールソースを見る限りSPFも設定したほうがよさそう

Delivered-To: shimizu.r.hiroaki@gmail.com
Received: by 10.28.21.137 with SMTP id 131csp775031wmv;
        Sun, 12 Apr 2015 08:46:11 -0700 (PDT)
X-Received: by 10.140.164.66 with SMTP id k63mr13402435qhk.61.1428853571379;
        Sun, 12 Apr 2015 08:46:11 -0700 (PDT)
Return-Path: <0000014cae4f39d1-af2bf744-d0fe-47ac-bee8-eea9cfa25c04-000000@amazonses.com>
Received: from a8-56.smtp-out.amazonses.com (a8-56.smtp-out.amazonses.com. [54.240.8.56])
        by mx.google.com with ESMTPS id o186si7901472qhb.69.2015.04.12.08.46.10
        for <shimizu.r.hiroaki@gmail.com>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sun, 12 Apr 2015 08:46:11 -0700 (PDT)
Received-SPF: pass (google.com: domain of 0000014cae4f39d1-af2bf744-d0fe-47ac-bee8-eea9cfa25c04-000000@amazonses.com designates 54.240.8.56 as permitted sender) client-ip=54.240.8.56;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of 0000014cae4f39d1-af2bf744-d0fe-47ac-bee8-eea9cfa25c04-000000@amazonses.com designates 54.240.8.56 as permitted sender) smtp.mail=0000014cae4f39d1-af2bf744-d0fe-47ac-bee8-eea9cfa25c04-000000@amazonses.com;
       dkim=pass header.i=@akat.info
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
	s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1428853570;
	h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type:Feedback-ID;
	bh=IQI5y7K1pMqOSwdbEOB/0q4bGpMz2xnPdDn+tXJ/T6Q=;
	b=uloRNjgGbh4EES1BoFD4l3SZJytJ6qIPrGqnyk+LKPEOTbZYS/aGOUP9srycfRbY
	D9INrCWedSV5JF1iW3xOcH8wGBBRegumJzKP7AZhJ2UrNFZZvpDU3/bPVrPNUB2TVG9
	BLlCCit0H+NS2RhovStGnJu+HM6YQ7FijuJT7GVs=
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
	s=3sarltvmakyemy6hhlzg72nk2tutdkaz; d=akat.info; t=1428853570;
	h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type;
	bh=IQI5y7K1pMqOSwdbEOB/0q4bGpMz2xnPdDn+tXJ/T6Q=;
	b=aG3QoeC29i6TgpoWf0xvyjAFHfux69e1p9uhfbq0P6BWyn68pgud6qx8yDrPRIWw
	0SrQMcmb4qoWwujpx8ehepGMCKWhaF8/0yPAgvf6L8RS/b1RqYejgNeEvx3sOFe+1We
	cryUSaoQvYJY6UY2J1tHunmSFGbNTn4aQdgahBt4=
MIME-Version: 1.0
X-Received: by 10.112.143.137 with SMTP id se9mr2333417lbb.60.1428853567884;
 Sun, 12 Apr 2015 08:46:07 -0700 (PDT)
Date: Sun, 12 Apr 2015 15:46:10 +0000
Message-ID: <0000014cae4f39d1-af2bf744-d0fe-47ac-bee8-eea9cfa25c04-000000@email.amazonses.com>
Subject: DKIM test
From: FROM SES <dummy@akat.info>
To: =?UTF-8?B?5riF5rC06KOV5pqB?= <shimizu.r.hiroaki@gmail.com>
Content-Type: multipart/alternative; boundary=089e011836625993be051388e5e8
X-SES-Outgoing: 2015.04.12-54.240.8.56
Feedback-ID: 1.us-east-1.f1xduSffVltn8OQQqUCReNketavtBO5v2BYoNwQkrC0=:AmazonSES

--089e011836625993be051388e5e8
Content-Type: text/plain; charset=UTF-8

DKIM test

--089e011836625993be051388e5e8
Content-Type: text/html; charset=UTF-8

<div dir="ltr">DKIM test</div>

--089e011836625993be051388e5e8--

参考URL

DKIM (Domainkeys Identified Mail)
http://salt.iajapan.org/wpmu/anti_spam/admin/tech/explanation/dkim/

Amazon SESでSPFとDKIMを用いて高信頼なメールを送る
http://dev.classmethod.jp/cloud/amazon-ses-production/

Amazon SESで簡単DKIM
http://frmmpgit.blog.fc2.com/blog-entry-135.html