{"id":7439,"date":"2023-05-25T17:26:01","date_gmt":"2023-05-25T08:26:01","guid":{"rendered":"https:\/\/www.lancard.com\/blog\/?p=7439"},"modified":"2025-03-12T11:23:57","modified_gmt":"2025-03-12T02:23:57","slug":"mta-sts","status":"publish","type":"post","link":"https:\/\/www.lancard.com\/blog\/2023\/05\/25\/mta-sts\/","title":{"rendered":"MTA-STS\u306e\u53d7\u4fe1\u5074\u3092\u8a2d\u5b9a\u3059\u308b"},"content":{"rendered":"\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\nMTA-STS\u306b\u3064\u3044\u3066\u3001\u53d7\u4fe1\u5074\u3060\u3051\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3059\u3002<br>https\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001\u3053\u308c\u307e\u3067\u306e\u3088\u3046\u306a\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u306a\u304f\u3001\u30c9\u30e1\u30a4\u30f3\u3092\u53d6\u5f97\u3057\u3066\u884c\u3044\u307e\u3059\u3002<br>\u9001\u4fe1\u306b\u3064\u3044\u3066\u306f\u3088\u308a\u9762\u5012\u305d\u3046\u306a\u306e\u3067\u3001\u4fdd\u7559\u3002\n<\/div>\n<\/div>\n\n\n\n\n<!--more-->\n\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n\u4ee5\u964d\u306fexample.com\u306b\u5b9f\u88c5\u3059\u308b\u4f53\u3067\u8a18\u8f09\u3057\u307e\u3059\u3002\n<\/div>\n<\/div>\n\n\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<h2 class=\"wp-block-heading\">DNS<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A\u30ec\u30b3\u30fc\u30c9\u306f\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u3092example.com\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u3092mta-sts.example.com<\/li>\n\n\n\n<li>example.com\u306eMX\u30ec\u30b3\u30fc\u30c9\u306b\u30e1\u30fc\u30eb\u3068\u540c\u3058example.com\u3092\u767b\u9332\u3057\u307e\u3059<\/li>\n\n\n\n<li>TXT\u30ec\u30b3\u30fc\u30c9\u306f_mta-sts.[\u30e1\u30fc\u30eb\u30c9\u30e1\u30a4\u30f3]\u3068\u306a\u308b\u306e\u3067\u3001_mta-sts.example.com\u3068\u3057\u307e\u3059<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\uff08A\u30ec\u30b3\u30fc\u30c9\u3068\u9055\u3044\u3001\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\u304c\u5fc5\u8981\u3067\u3059\uff09<\/mark><\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n\n\n\nTXT\u30ec\u30b3\u30fc\u30c9_mta-sts.example.com\u306e\u4e2d\u8eab\u306f\u3001&#8221;v=STSv1; id=\u9069\u5f53\u306a1-32\u6587\u5b57\u306e\u82f1\u6570\u5b57&#8221;\u306a\u306e\u3067\u3001\u65e5\u6642\u3067\u3082\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3059\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>v=STSv1; id=20230522170000<\/code><\/pre>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Httpd<\/h2>\n\n\n\n\nTLS\u306fWeb\u3068Postfix\u5074\u3067\u5fc5\u8981\u306b\u306a\u308b\u305f\u3081\u3001Let&#8217;s Encrypt\u3092\u5229\u7528\u3057example.com\u3068mta-sts.example.com\u306e\u5206\u3092\u53d6\u308a\u307e\u3059\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>dnf install certbot httpd mod_ssl\ncertbot -d example.com -d mta-sts.example.com<\/code><\/pre>\n\n\n\n\n\n<h4 class=\"wp-block-heading\">\/etc\/httpd\/conf.d\/mta-sts.conf<\/h4>\n\n\n\n\n\u3061\u3087\u3063\u3068\u7d1b\u3089\u308f\u3057\u3044\u306e\u3067\u3059\u304c https:\/\/example.com \u3067\u306a\u304f\u3001 https:\/\/mta-sts.example.com \u306b\u30a2\u30af\u30bb\u30b9\u3055\u305b\u308b\u5fc5\u8981\u304c\u6709\u308b\u306e\u3067\u3001\u9593\u9055\u3048\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br>\u65b0\u898f\u306bconf\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u304c\u3001example.com\u3068\u5206\u3051\u308b\u5fc5\u8981\u304c\u7121\u3051\u308c\u3070\u3001ssl.conf\u5185\u306b\u8a18\u8f09\u3057\u3066\u3082\u826f\u3044\u3067\u3059\u3002DocumentRoot\u3082\u5fc5\u8981\u306a\u3089\u8ffd\u8a18\u3057\u3066\u4e0b\u3055\u3044\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:443&gt;\n        ServerName mta-sts.example.com\n        SSLEngine on\n        SSLCertificateFile \/etc\/letsencrypt\/live\/mta-sts.example.com\/cert.pem\n        SSLCertificateKeyFile \/etc\/letsencrypt\/live\/mta-sts.example.com\/privkey.pem\n        SSLCertificateChainFile \/etc\/letsencrypt\/live\/mta-sts.example.com\/chain.pem\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n\n\n\n\n\n<h4 class=\"wp-block-heading\">\/var\/www\/html\/.well-known\/mta-sts.txt<\/h4>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>version: STSv1\nmode: testing\nmax_age: 604800\nmx: example.com<\/code><\/pre>\n\n\n\n\nDocumentRoot\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\/var\/www\/html\u3068\u3057\u305f\u5834\u5408\u3067\u3059\u3002\n\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\nhttpd\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u3067https:\/\/mta-sts.example.com\/.well-known\/mta-sts.txt\u304c\u8868\u793a\u3055\u308c\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\n<\/div>\n<\/div>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Postfix<\/h2>\n\n\n\n\nSTARTTLS\u304c\u5fc5\u8981\u3067\u3059\u304c\u3001submission\u30dd\u30fc\u30c8\u3092\u958b\u3051\u308b\u5fc5\u8981\u306f\u6709\u308a\u307e\u305b\u3093\u3002<br>\u4eca\u56de\u306f\u30dd\u30fc\u30c825\u306e\u65e5\u548c\u898bTLS\u3067\u5bfe\u5fdc\u3057\u307e\u3059\u3002\n\n\n\n\n<h4 class=\"wp-block-heading\">\/etc\/postfix\/main.cf<\/h4>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>smtpd_tls_security_level = may\nsmtpd_tls_cert_file = \/etc\/letsencrypt\/live\/example.com\/fullchain.pem\nsmtpd_tls_key_file = \/etc\/letsencrypt\/live\/example.com\/privkey.pem\nsmtpd_tls_session_cache_database = btree:\/var\/lib\/postfix\/smtpd_scache\nsmtpd_tls_session_cache_timeout = 3600s\n# debug\nsmtpd_tls_received_header = yes\nsmtpd_tls_loglevel = 1<\/code><\/pre>\n\n\n\n\n\u30ea\u30b9\u30bf\u30fc\u30c8\u5f8c\u306b\u3001STARTTLS\u304c\u6709\u52b9\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart postfix\nopenssl s_client -connect example.com:25 -quiet -starttls smtp<\/code><\/pre>\n\n\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\ndepth=1 C = US, O = Let&#8217;s Encrypt, CN = R3\u306e\u3088\u3046\u306bLet&#8217;s Encrypt\u306e\u8868\u793a\u304c\u51fa\u308c\u3070OK\u3067\u3059\u3002Ctrl+C\u3067\u7d42\u4e86\u3057\u307e\u3059\u3002\n<\/div>\n<\/div>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">\u78ba\u8a8d<\/h2>\n\n\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n\u30c1\u30a7\u30c3\u30af\u7528\u306e\u30b5\u30a4\u30c8\u304c\u5e7e\u3064\u304b\u3042\u3063\u305f\u306e\u3067\u3001\u9069\u5f53\u306b\u9078\u3093\u3067\u3084\u3063\u3066\u307f\u307e\u3059\u3002<br><a href=\"https:\/\/mxtoolbox.com\/mta-sts.aspx\">https:\/\/mxtoolbox.com\/mta-sts.aspx<\/a><br>\u8a2d\u5b9a\u3057\u305f\u30e1\u30fc\u30eb\u30c9\u30e1\u30a4\u30f3\uff08example.com\uff09\u3092\u5165\u529b\u3057\u307e\u3059\u3002\n<\/div>\n<\/div>\n\n\n\n\n\u7d50\u679c\u3092\u898b\u3066\u554f\u984c\u304c\u7121\u3051\u308c\u3070OK\u3067\u3059\u3002\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.lancard.com\/blog\/wp-content\/uploads\/2023\/05\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"182\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/uploads\/2023\/05\/image-2-602x182.png\" alt=\"\" class=\"wp-image-7462\" srcset=\"https:\/\/www.lancard.com\/blog\/wp-content\/uploads\/2023\/05\/image-2-602x182.png 602w, https:\/\/www.lancard.com\/blog\/wp-content\/uploads\/2023\/05\/image-2-400x121.png 400w, https:\/\/www.lancard.com\/blog\/wp-content\/uploads\/2023\/05\/image-2-768x233.png 768w, https:\/\/www.lancard.com\/blog\/wp-content\/uploads\/2023\/05\/image-2.png 944w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/a><\/figure>\n\n\n\n\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F7439&amp;t=MTA-STS%E3%81%AE%E5%8F%97%E4%BF%A1%E5%81%B4%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B&amp;s=100&amp;p[url]=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F7439&amp;p[images][0]=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-content%2Fuploads%2F2023%2F05%2Fimage-2-602x182.png&amp;p[title]=MTA-STS%E3%81%AE%E5%8F%97%E4%BF%A1%E5%81%B4%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"http:\/\/twitter.com\/share?url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F7439&amp;text=MTA-STS%E3%81%AE%E5%8F%97%E4%BF%A1%E5%81%B4%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&amp;url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F7439&amp;title=MTA-STS%E3%81%AE%E5%8F%97%E4%BF%A1%E5%81%B4%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-tumblr nolightbox\" data-provider=\"tumblr\" target=\"_blank\" rel=\"nofollow\" title=\"Share on tumblr\" href=\"https:\/\/tumblr.com\/share?s=&amp;v=3&amp;t=MTA-STS%E3%81%AE%E5%8F%97%E4%BF%A1%E5%81%B4%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B&amp;u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F7439\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"tumblr\" title=\"Share on tumblr\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/tumblr.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=MTA-STS%E3%81%AE%E5%8F%97%E4%BF%A1%E5%81%B4%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B&amp;body=%E3%82%B7%E3%82%A7%E3%82%A2%E3%81%99%E3%82%8B%EF%BC%9A:%20https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F7439\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>MTA-STS\u306b\u3064\u3044\u3066\u3001\u53d7\u4fe1\u5074\u3060\u3051\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3059\u3002https\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001\u3053\u308c\u307e\u3067\u306e\u3088\u3046\u306a\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u306a\u304f\u3001\u30c9\u30e1\u30a4\u30f3\u3092\u53d6\u5f97\u3057\u3066\u884c\u3044\u307e\u3059\u3002\u9001\u4fe1\u306b\u3064\u3044\u3066\u306f\u3088\u308a\u9762\u5012\u305d\u3046\u306a\u306e\u3067\u3001\u4fdd\u7559\u3002<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7439","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/7439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/comments?post=7439"}],"version-history":[{"count":42,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/7439\/revisions"}],"predecessor-version":[{"id":7483,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/7439\/revisions\/7483"}],"wp:attachment":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/media?parent=7439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/categories?post=7439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/tags?post=7439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}