{"id":11211,"date":"2022-05-01T03:50:28","date_gmt":"2022-04-30T18:50:28","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=11211"},"modified":"2022-05-02T16:38:15","modified_gmt":"2022-05-02T07:38:15","slug":"ubuntu-20-04-lts-%e3%82%b5%e3%83%bc%e3%83%90%e6%a7%8b%e7%af%89-postfix%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=11211","title":{"rendered":"Ubuntu 20.04 LTS \u30b5\u30fc\u30d0\u69cb\u7bc9 &#8211; Postfix\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u524d\u56de\u306e<a href=\"https:\/\/www.webcyou.com\/?p=11205\">Ubuntu 20.04 LTS \u30b5\u30fc\u30d0\u69cb\u7bc9 \u2013 Let\u2019s Encrypt\u3067SSL\/TLS\u5316<\/a>\u306e\u7d9a\u304d\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001Postfix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h4>\u30e1\u30cb\u30e5\u30fc<\/h4>\n<ul>\n<li><a href=\"https:\/\/www.webcyou.com\/?p=11191\">Ubuntu 20.04 LTS \u30b5\u30fc\u30d0\u69cb\u7bc9 \u2013 \u521d\u671f\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/a><\/li>\n<li><a href=\"https:\/\/www.webcyou.com\/?p=11197\">Ubuntu 20.04 LTS \u30b5\u30fc\u30d0\u69cb\u7bc9 \u2013 Nginx\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li>\n<li><a href=\"https:\/\/www.webcyou.com\/?p=11205\">Ubuntu 20.04 LTS \u30b5\u30fc\u30d0\u69cb\u7bc9 \u2013 Let\u2019s Encrypt\u3067SSL\/TLS\u5316<\/a><\/li>\n<li><a href=\"https:\/\/www.webcyou.com\/?p=11211\">Ubuntu 20.04 LTS \u30b5\u30fc\u30d0\u69cb\u7bc9 \u2013 Postfix\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li>\n<li><a href=\"https:\/\/www.webcyou.com\/?p=11218\">Ubuntu 20.04 LTS \u30b5\u30fc\u30d0\u69cb\u7bc9 \u2013 Dovecot\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li>\n<li><a href=\"https:\/\/www.webcyou.com\/?p=11221\">Ubuntu 20.04 LTS \u30b5\u30fc\u30d0\u69cb\u7bc9 \u2013 Postfix SASL\u8a8d\u8a3c<\/a><\/li>\n<li><a href=\"https:\/\/www.webcyou.com\/?p=11230\">Ubuntu 20.04 LTS \u30b5\u30fc\u30d0\u69cb\u7bc9 \u2013 Postfix Let\u2019s Encrypt\u3067TLS\u5316<\/a><\/li>\n<li><a href=\"https:\/\/www.webcyou.com\/?p=11234\">Ubuntu 20.04 LTS \u30b5\u30fc\u30d0\u69cb\u7bc9 \u2013 DKIM\u3001DMARC\u3092\u8a2d\u5b9a\u3059\u308b<\/a><\/li>\n<\/ul>\n<h4>DNS\u30ec\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0<\/h4>\n<p>\u4ee5\u4e0b\u306eDNS\u30ec\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0<\/p>\n<table style=\"width: 463.672px;\">\n<tbody>\n<tr>\n<th style=\"width: 54px;\">\u30bf\u30a4\u30d7<\/th>\n<th style=\"width: 32px;\">\u540d\u79f0<\/th>\n<th style=\"width: 37px;\">TTL<\/th>\n<th style=\"width: 311.672px;\">\u5024<\/th>\n<\/tr>\n<tr>\n<td style=\"width: 54px;\">A(\u901a\u5e38)<\/td>\n<td style=\"width: 32px;\">mail<\/td>\n<td style=\"width: 37px;\">3600<\/td>\n<td style=\"width: 311.672px;\">(VPS\u306eIP\u30a2\u30c9\u30ec\u30b9)<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 54px;\">MX<\/td>\n<td style=\"width: 32px;\">@<\/td>\n<td style=\"width: 37px;\">3600<\/td>\n<td style=\"width: 311.672px;\">\u30dd\u30a4\u30f3\u30c8\u5148 mail.(\u30c9\u30e1\u30a4\u30f3) \u512a\u5148\u5ea6 10<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 54px;\">TXT<\/td>\n<td style=\"width: 32px;\">@<\/td>\n<td style=\"width: 37px;\">3600<\/td>\n<td style=\"width: 311.672px;\">\u00a0v=spf1 ip4:(VPS\u306eIP\u30a2\u30c9\u30ec\u30b9) ~all<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Postfix\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>\u30ed\u30fc\u30ab\u30eb\u306eapt\u30d1\u30c3\u30b1\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo apt update<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d7\u30ed\u30bb\u30b9\u306e\u8ffd\u52a0\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u70ba \u74b0\u5883\u5909\u6570 DEBIAN_PRIORITY=low \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u306b\u6e21\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo DEBIAN_PRIORITY=low apt install postfix<\/pre>\n<p>\u5bfe\u8a71\u578b\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u958b\u304d\u307e\u3059\u306e\u3067\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5fdc\u7b54\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11212\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2022\/05\/ubuntu_lets1.png\" alt=\"\" width=\"591\" height=\"434\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2022\/05\/ubuntu_lets1.png 656w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2022\/05\/ubuntu_lets1-300x220.png 300w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/p>\n<ul>\n<li>\u30e1\u30fc\u30eb\u8a2d\u5b9a\u306e\u4e00\u822c\u7684\u306a\u30bf\u30a4\u30d7: Internet Site<\/li>\n<li>\u30b7\u30b9\u30c6\u30e0\u30e1\u30fc\u30eb\u540d:\u00a0example.com \uff08mail.example.com\u3067\u306f\u306a\u3044\uff09<\/li>\n<li>root\u304a\u3088\u3073postmaster\u30e1\u30fc\u30eb\u53d7\u4fe1\u8005: \u30d7\u30e9\u30a4\u30de\u30eaLinux\u30a2\u30ab\u30a6\u30f3\u30c8\u30e6\u30fc\u30b6\u30fc\u540d\uff08\u4f8b\u3067\u306fwebapp\uff09<\/li>\n<li>\u30e1\u30fc\u30eb\u3092\u53d7\u4fe1\u3059\u308b\u4ed6\u306e\u5b9b\u5148:\u00a0$myhostname,\u00a0example.com\u3001localhost.example.com\u3001localhost<\/li>\n<li>\u30e1\u30fc\u30eb\u30ad\u30e5\u30fc\u306e\u540c\u671f\u66f4\u65b0\u3092\u5f37\u5236\u3057\u307e\u3059\u304b\uff1f: No<\/li>\n<li>\u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af:\u00a0127.0.0\/8 [:ffff:127.0.0.0]\/104 [:1]\/128<\/li>\n<li>\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306e\u30b5\u30a4\u30ba\u5236\u9650:\u00a00<\/li>\n<li>\u30ed\u30fc\u30ab\u30eb\u30a2\u30c9\u30ec\u30b9\u62e1\u5f35\u6587\u5b57:\u00a0+<\/li>\n<li>\u4f7f\u7528\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30d7\u30ed\u30c8\u30b3\u30eb: all<\/li>\n<\/ul>\n<p>\u518d\u8a2d\u5b9a\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo dpkg-reconfigure postfix<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d7\u30ed\u30bb\u30b9\u304c\u7d42\u4e86\u3057\u3001Postfix\u8a2d\u5b9a\u3092\u66f4\u65b0\u3059\u308b\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u3002<\/p>\n<h4>Postfix\u8a2d\u5b9a\u306e\u5909\u66f4<\/h4>\n<p>Postfix\u306epostconf\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066`\/etc\/postfix\/main.cf`\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u4fee\u6b63\u305b\u305a\u3001\u30af\u30a8\u30ea\u306b\u3066\u4fee\u6b63\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>myhostname\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo postconf -e 'myhostname=mail.example.com'<\/pre>\n<p>home_mailbox\u5909\u6570\u3092 Maildir\/ \u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo postconf -e 'home_mailbox= Maildir\/'<\/pre>\n<p>\u4efb\u610f\u306e\u30e1\u30fc\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u3092Linux\u30b7\u30b9\u30c6\u30e0\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u305f\u3081\u3001virtual_alias_maps \u30c6\u30fc\u30d6\u30eb\u306e\u5834\u6240\u3092\u8a2d\u5b9a\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo postconf -e 'virtual_alias_maps= hash:\/etc\/postfix\/virtual'<\/pre>\n<p>\u30c9\u30e1\u30a4\u30f3\u540d(\u9001\u4fe1\u5143\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u8a2d\u5b9a \u4f8b\uff1aexample.com)<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo postconf -e 'masquerade_domains= example.com'<\/pre>\n<p>MTA\u60c5\u5831\u306e\u96a0\u853d<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo postconf -e 'smtpd_banner = $myhostname ESMTP'<\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3088\u308a\u3001\/etc\/postfix\/main.cf \u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u306e\u69d8\u306b\u4fee\u6b63\u3001\u8ffd\u52a0\u3055\u308c\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">myhostname = mail.example.com\r\nhome_mailbox = Maildir\/\r\nvirtual_alias_maps = hash:\/etc\/postfix\/virtual\r\nmasquerade_domains = example.com\r\nsmtpd_banner = $myhostname ESMTP<\/pre>\n<p>\u8a2d\u5b9a\u5185\u5bb9\u78ba\u8a8d<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ postconf -n<\/pre>\n<p>\u8a2d\u5b9a\u5185\u5bb9\u30c1\u30a7\u30c3\u30af<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo postfix check<\/pre>\n<p>\u4ee5\u4e0b\u306e\u69d8\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u304c\u53d6\u308a\u6562\u3048\u305a\u554f\u984c\u306a\u3044<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">postfix\/postfix-script: warning: symlink leaves directory: \/etc\/postfix\/.\/makedefs.out<\/pre>\n<p>Postfix\u30d7\u30ed\u30bb\u30b9\u3092\u518d\u8d77\u52d5\u3067\u3059\u3079\u3066\u306e\u5909\u66f4\u3092\u9069\u7528\u3055\u305b\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo systemctl restart postfix<\/pre>\n<p>\u3053\u3053\u307e\u3067\u3067Postfix\u306b\u3088\u308b\u9001\u4fe1\u7528\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n<h4>telnet\u3067\u9001\u4fe1\u30c6\u30b9\u30c8<\/h4>\n<h5>telnet\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h5>\n<p>\u30c6\u30b9\u30c8\u30e1\u30fc\u30eb\u306e\u9001\u4fe1telnet\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u306e\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ apt list --installed | grep telnet<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u3001telnet\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo apt install telnet<\/pre>\n<h4>telnet\u3067SMTP\u63a5\u7d9a<\/h4>\n<p>telnet\u30b3\u30de\u30f3\u30c9\u3067SMTP\u63a5\u7d9a\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ telnet localhost 25<\/pre>\n<p>\u6b63\u5e38\u63a5\u7d9a\u3067\u304d\u308c\u3070\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9220\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Trying 127.0.0.1...\r\nConnected to localhost.\r\nEscape character is '^]'.\r\n220 mail.(\u30c9\u30e1\u30a4\u30f3\u540d) ESMTP Postfix (Ubuntu)<\/pre>\n<p>\u5165\u529b\u5f85\u6a5f\u72b6\u614b\u3068\u306a\u308b\u305f\u3081\u4e0b\u8a18\u306ehelo\u30b3\u30de\u30f3\u30c9\u3067\u5fdc\u7b54\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">helo localhost<\/pre>\n<p>\u554f\u984c\u306a\u3051\u308c\u3070\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9 250\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">250 mail.(\u30c9\u30e1\u30a4\u30f3\u540d)<\/pre>\n<p>mail from\u30b3\u30de\u30f3\u30c9\u3067\u9001\u4fe1\u5143\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mail from:(Ubuntu\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u540d)@(\u30c9\u30e1\u30a4\u30f3\u540d)\r\n\r\n250 2.1.0 Ok<\/pre>\n<p>rcpt to: \u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u969b\u306b\u78ba\u8a8d\u3067\u304d\u308b\u9001\u4fe1\u5148\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">rcpt to:hoge@test.com(\u9001\u4fe1\u5148\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9)\r\n\r\n250 2.1.5 Ok<\/pre>\n<p>\u30e1\u30fc\u30eb\u672c\u6587\u3092\u4f5c\u6210\u3057\u3066\u3044\u304f\u306e\u3067\u3001data\u30b3\u30de\u30f3\u30c9\u3067\u30e1\u30fc\u30eb\u672c\u6587\u3092\u5165\u529b\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">data\r\n354 End data with .\r\nHello! sendmail test<\/pre>\n<p>\u672c\u6587\u5165\u529b\u5f8c\u3001`.`\u00a0\u3067\u5165\u529b\u3067\u30e1\u30fc\u30eb\u4f5c\u6210\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">.\r\n250 2.0.0 Ok: queued as 17867FC6EB<\/pre>\n<p>\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9250\u304c\u8fd4\u3063\u3066\u6765\u3066\u3001\u30ad\u30e5\u30fc\u306b\u5165\u3063\u305f\u8868\u793a\u3068\u306a\u308c\u3070\u9001\u4fe1\u5b8c\u4e86\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>quit\u30b3\u30de\u30f3\u30c9\u3067SMTP\u63a5\u7d9a\u3092\u5207\u65ad\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">quit\r\n221 2.0.0 Bye\r\nConnection closed by foreign host.<\/pre>\n<p>\u9001\u4fe1\u5148\u306e\u53d7\u4fe1\u30dc\u30c3\u30af\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u30e1\u30fc\u30eb\u304c\u5c4a\u3044\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u5927\u62b5\u8ff7\u60d1\u30e1\u30fc\u30eb\u3068\u3057\u3066\u6271\u308f\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u8ff7\u60d1\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u3092\u78ba\u8a8d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11213\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2022\/05\/ubuntu_lets2.png\" alt=\"\" width=\"215\" height=\"120\" \/><\/p>\n<p>\u73fe\u72b6\u306e\u30e1\u30fc\u30eb\u306e\u8a8d\u8a3c\u306fSPF\u306e\u307fPASS\u3057\u3066\u3044\u308b\u72b6\u6cc1\u306a\u306e\u3067\u3001\u8ffd\u3063\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u53d6\u308a\u6562\u3048\u305a\u3001\u9001\u4fe1\u78ba\u8a8d\u306f\u53d6\u308c\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u3068\u3057\u3066\u30e1\u30fc\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h4>\u30e1\u30fc\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u30de\u30c3\u30d4\u30f3\u30b0<\/h4>\n<p>Linux\u30b7\u30b9\u30c6\u30e0\u306e\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u3001\u30e1\u30fc\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo vim \/etc\/postfix\/virtual<\/pre>\n<p>info@example.com\u3068contact@example.com\u3067\u30e1\u30fc\u30eb\u3092\u53d7\u4fe1\u3057\u3001\u305d\u306e\u30e1\u30fc\u30eb\u3092Linux\u30e6\u30fc\u30b6\u30fc\u306ewebapp\u00a0\u306b\u914d\u4fe1\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u69d8\u306b\u4f5c\u6210\u3002<\/p>\n<p><strong>\/etc\/postfix\/virtual<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">info@example.com webapp\r\ncontact@example.com webapp<\/pre>\n<p>\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u9069\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo postmap \/etc\/postfix\/virtual<\/pre>\n<p>Postfix\u30d7\u30ed\u30bb\u30b9\u3092\u518d\u8d77\u52d5\u3057\u3066\u3001\u3059\u3079\u3066\u306e\u5909\u66f4\u304c\u9069\u7528\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo systemctl restart postfix<\/pre>\n<p>UFW\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a\u3067\u3001Postfix\u30b5\u30fc\u30d3\u30b9\u3078\u306e\u63a5\u7d9a\u3092\u8a31\u53ef\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ sudo ufw allow Postfix<\/pre>\n<p>Postfix\u306f\u5916\u90e8\u63a5\u7d9a\u3092\u53d7\u3051\u5165\u308c\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u3001SASL\u8a8d\u8a3c\u3084\u53d7\u4fe1\u3082\u884c\u3048\u308b\u3088\u3046\u306b\u3001Dovecot\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/?p=11218\">Ubuntu 20.04 LTS \u30b5\u30fc\u30d0\u69cb\u7bc9 \u2013 Dovecot\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306eUbuntu 20.04 LTS \u30b5\u30fc\u30d0\u69cb\u7bc9 \u2013 Let\u2019s Encrypt\u3067SSL\/TLS\u5316\u306e\u7d9a\u304d\u3067\u3059\u3002 \u4eca\u56de\u306f\u3001Postfix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u30e1\u30cb\u30e5\u30fc Ubuntu 20.04 LTS \u30b5\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11192,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[248],"tags":[221,44,45,293],"class_list":{"0":"post-11211","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-ubuntu","8":"tag-linux","9":"tag-web","11":"tag-293"},"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/11211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11211"}],"version-history":[{"count":7,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/11211\/revisions"}],"predecessor-version":[{"id":11261,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/11211\/revisions\/11261"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/media\/11192"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}