SendGrid on Job-Hub
-
Upload
hideki-ohkubo -
Category
Documents
-
view
2.061 -
download
0
Transcript of SendGrid on Job-Hub
![Page 1: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/1.jpg)
大久保英樹(Job-Hub)
SendGridon Job-Hub
![Page 2: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/2.jpg)
自己紹介
大久保英樹
クラウドソーシングサービスJob-Hubの開発やってます。
Qiita: OakbowTwitter:@oakbow7
![Page 4: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/4.jpg)
コスプレがテーマのコンテスト(募集終了)。
Job-Hubの紹介
![Page 5: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/5.jpg)
Job-Hubの紹介
http://jobhub.jp/jobs/1144/competition_proposals/
![Page 6: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/6.jpg)
Job-Hubの紹介
エンジニアカフェという自社サービスのキャラクターも募集しました
http://jobhub.jp/jobs/1148/competition_proposals/
![Page 7: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/7.jpg)
Job-Hubの紹介
かわいいキャラクターが無事誕生(dog fooding)
https://www.facebook.com/pasonatech
![Page 8: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/8.jpg)
Job-Hubの紹介
クーちゃんといいます。
![Page 9: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/9.jpg)
Job-Hubの紹介
横浜市がテーマのアイディア/アプリ コンテスト。
http://jobhub.jp/camp/yokohama-ups/
![Page 10: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/10.jpg)
Job-Hubの紹介
実はこのコンテストのアイコンも募集してました(dog fooding)。
http://jobhub.jp/jobs/2295/competition_proposals/
![Page 11: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/11.jpg)
Job-Hubの紹介
株がテーマのアイディア/アプリ/プロモーション コンテスト
http://www.zusaar.com/event/1247003
http://jobhub.jp/jobs?かぶコン
![Page 12: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/12.jpg)
Job-HubでのSendGrid
![Page 13: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/13.jpg)
SendGrid
SendGrid
•Herokuでメール送信するための定番アドオン
•期間に限りがあるけれど、Web上で送信ログを見ることもできます。
•今のところ目立ったトラブルもなく、安定しています。
•Job-Hub では、すべてのメールをdelayed_job経由、非同期処理で送信
しています。
•無料プランでは6000通配信できるので、テスト/ステージング環境でも
大活躍(以前は一日200通だったけど、さらに優しくなったみたい)。
•Job-Hubでは今Bronze(4万通/$9.95)で、そろそろSilver(10万通
/$79.95)かなくらい。
![Page 14: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/14.jpg)
SendGrid
SendGrid
•メールサーバの構築も管理も
ほぼ不要なので、ある意味
MTA(Mail Server)as a
Service, MaaS と言ってもい
いかも。
![Page 15: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/15.jpg)
気を付けること
SendGrid
•DNSのTXTレコードの設定を行う。
dig –t TXT jobhub.jp
•平たく言うと、「俺様はこれこれのドメイン経由でメール送ることがあるよ?」って宣言。
•SendGridはリレーサーバとして機能するので、「jobhub.jp本体から送信されていない
→spamかもしれない」と判断されうる
•TXT(SPF)レコードでこういう宣言をしておくと、spamかどうかの判定材料として参照し
てくれる場合がある。
•携帯キャリアとかはSPFレコードみてるっぽい。
nslookup -type=TXT jobhub.jp
![Page 16: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/16.jpg)
SPFレコードって何?
SendGrid
https://support.google.com/a/answer/33786?hl=ja
![Page 17: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/17.jpg)
できること
SendGrid
•メールを送る
•メールを送る
•メールを送る
•メールを送る
•エラーメールを解析して、メール送信を停止する
![Page 18: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/18.jpg)
Bounces
SendGrid
•メール送信のエラーを解析する機能の実装は結構骨が折れる
⇒MTAによってエラーの返却方法は異なる。基本的に本文の文字列解析す
るしかない。存在するメールアドレスに送ってもUser Unknown返された
りとか結構カオス。
•Spam対策のため、エラー率の高い接続元からの接続を拒否するところも
ある(例:携帯キャリア)
•サービスによっては携帯キャリアへのメールは避けて通れない
•↑対策のリレーサーバサービスもあるけど結構高い。。。
![Page 19: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/19.jpg)
Bounces
SendGrid
•SendGridのエラーメール解析機能は標準で搭載
⇒エラーが2回返ってくるとBounces Listに登録され、対象メールアド
レスに送られなくなる。
⇒メール送信ログでは、「Drop」と記載されるようになる。
•できればBounces Listに登録されるエラーメール回数を変えられるとい
いな(できないよね?)
⇒2回はちょっと早い気がする。3回くらい?
![Page 20: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/20.jpg)
期待してること
SendGrid
•日本語ドキュメント!
⇒API使用して連携できるけど、手を出せていないので日本語ドキュメン
トがあればそのうち・・・
![Page 21: SendGrid on Job-Hub](https://reader034.fdocument.pub/reader034/viewer/2022052601/559478a61a28abaa388b467f/html5/thumbnails/21.jpg)
Qiita: http://qiita.com/Oakbow/
Job-Hubマガジン: http://mag.jobhub.jp/
Twitter:@oakbow7Mail:[email protected]
ご清聴ありがとうございました。