div class=ts-pagebuttonPage 1button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page1jpg target=_blank amp-img class=ts-thumb alt=Page 1: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails1jpg width=142 height=106 layout=responsive amp-imga divpAmazon SESのメール受信対応でサーバー減らせた話JAWS-UG長岡 #NDS44 @civicpdivdiv class=ts-pagebuttonPage 2button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page2jpg target=_blank amp-img class=ts-thumb alt=Page 2: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails2jpg width=142 height=106 layout=responsive amp-imga divpおまえ、誰よ?p pTwitter: @civicp pNDS 主催p pPython Javap pTODO: ここに輝かしい実績を入れるpdivdiv class=ts-pagebuttonPage 3button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page3jpg target=_blank amp-img class=ts-thumb alt=Page 3: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails3jpg width=142 height=106 layout=responsive amp-imga divp以前の話の続編なのでおさらいpdivdiv class=ts-pagebuttonPage 4button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page4jpg target=_blank amp-img class=ts-thumb alt=Page 4: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails4jpg width=142 height=106 layout=responsive amp-imga divpキッズ用みまもりケータイ向けサービスpdivdiv class=ts-pagebuttonPage 5button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page5jpg target=_blank amp-img class=ts-thumb alt=Page 5: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails5jpg width=142 height=106 layout=responsive amp-imga divpブザー・速度検知p pみまもりケータイの元々の機能pdivdiv class=ts-pagebuttonPage 6button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page6jpg target=_blank amp-img class=ts-thumb alt=Page 6: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails6jpg width=142 height=106 layout=responsive amp-imga divpリンククリックp pみまもりケータイの元々の機能pdivdiv class=ts-pagebuttonPage 7button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page7jpg target=_blank amp-img class=ts-thumb alt=Page 7: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails7jpg width=142 height=106 layout=responsive amp-imga divpプッシュ通知・マップアプリメール受信 サーバp pプログラムp pAWS SNSp pプッシュ通知p ppostfixpdivdiv class=ts-pagebuttonPage 8button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page8jpg target=_blank amp-img class=ts-thumb alt=Page 8: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails8jpg width=142 height=106 layout=responsive amp-imga divpここまで以前の内容pdivdiv class=ts-pagebuttonPage 9button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page9jpg target=_blank amp-img class=ts-thumb alt=Page 9: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails9jpg width=142 height=106 layout=responsive amp-imga divpAmazon Simple Email Service SESでメール受信対応28 SEP 2015pdivdiv class=ts-pagebuttonPage 10button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page10jpg target=_blank amp-img class=ts-thumb alt=Page 10: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails10jpg width=142 height=106 layout=responsive amp-imga divp改善案p pAWS SNSp pプッシュ通知p pAWS SES AWS lambdap pメール受信 今回はnodejspdivdiv class=ts-pagebuttonPage 11button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page11jpg target=_blank amp-img class=ts-thumb alt=Page 11: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails11jpg width=142 height=106 layout=responsive amp-imga divpSES LambdaS3p p受信p pメール保存実行p p本文取得p pSNSp p通知pdivdiv class=ts-pagebuttonPage 12button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page12jpg target=_blank amp-img class=ts-thumb alt=Page 12: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails12jpg width=142 height=106 layout=responsive amp-imga divpコードおよび大事なところpdivdiv class=ts-pagebuttonPage 13button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page13jpg target=_blank amp-img class=ts-thumb alt=Page 13: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails13jpg width=142 height=106 layout=responsive amp-imga divp全部クラスメソッドさんの記事にありますpdivdiv class=ts-pagebuttonPage 14button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page14jpg target=_blank amp-img class=ts-thumb alt=Page 14: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails14jpg width=142 height=106 layout=responsive amp-imga divp考慮した点p pSESからLambdaへ直接メール本文が渡せない→S3へ保存してからp pLambdaからAWSのAPIを使うためにアクセスキーなど不要→IAMでロール作成・ポリシー割当てpdivdiv class=ts-pagebuttonPage 15button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page15jpg target=_blank amp-img class=ts-thumb alt=Page 15: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails15jpg width=142 height=106 layout=responsive amp-imga divp問題点pdivdiv class=ts-pagebuttonPage 16button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page16jpg target=_blank amp-img class=ts-thumb alt=Page 16: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails16jpg width=142 height=106 layout=responsive amp-imga divpみまもりケータイメールのVerifyp p送信元アドレスをSESに登録p pSESからVerifyメール送信p p対象端末で受信p pリンクをクリックして完了pdivdiv class=ts-pagebuttonPage 17button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page17jpg target=_blank amp-img class=ts-thumb alt=Page 17: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails17jpg width=142 height=106 layout=responsive amp-imga divp転送もコピペもできない!ブラウザもない!p pツラい!!! リンクを手打ちしなければならない!!pdivdiv class=ts-pagebuttonPage 18button div class=ts-image a href=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5page18jpg target=_blank amp-img class=ts-thumb alt=Page 18: Amazon SESのメール受信対応でサーバー減らせた話 #nds44 src=https:reader030vdocumentspubreader030viewer2022021922589bc6f11a28ab082b8b63d5html5thumbnails18jpg width=142 height=106 layout=responsive amp-imga divpまとめp p自前メールサーバーを停止できた!安心!p p全部AWSで統一できた!すっきり!pdiv