{"id":752,"date":"2019-10-13T02:08:38","date_gmt":"2019-10-12T17:08:38","guid":{"rendered":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/?p=752"},"modified":"2022-05-21T23:57:22","modified_gmt":"2022-05-21T14:57:22","slug":"postfix%e3%82%92%e3%82%bd%e3%83%bc%e3%82%b9%e3%81%8b%e3%82%89%e5%b0%8e%e5%85%a5%e3%81%97smtp-gmail-com%e7%b5%8c%e7%94%b1%e3%81%a7%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99","status":"publish","type":"post","link":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/archives\/752","title":{"rendered":"Postfix\u3092\u30bd\u30fc\u30b9\u304b\u3089\u5c0e\u5165\u3057smtp.gmail.com\u7d4c\u7531\u3067\u30e1\u30fc\u30eb\u3092\u9001\u4fe1"},"content":{"rendered":"\n<p>OS: Ubuntu Server 18.04<br>Postfix 3.4.7<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Postfix\u3092\u30bd\u30fc\u30b9\u304b\u3089\u5c0e\u5165<\/h3>\n\n\n\n<p>\u5148\u305a\u4ee5\u3066\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5c55\u958b\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ wget -c http:\/\/mirror.postfix.jp\/postfix-release\/official\/postfix-3.4.7.tar.gz\n$ tar zxvf postfix-3.4.7.tar.gz\n$ cd postfix-3.4.7\/<\/pre>\n\n\n\n<p>\u7d9a\u3051\u3056\u307e\u306b <code>make<\/code> \u3092\u5b9f\u884c\u3057\u3066\u3057\u307e\u3046\u3068\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u65e8\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u901a\u77e5\u3055\u308c\u308b\u3002\u305d\u308c\u304b\u3089smtp.gmail.com\u306b\u30e1\u30fc\u30eb\u3092\u30ea\u30ec\u30fc\u3059\u308b\u306b\u306fSMTP\u8a8d\u8a3c\u3084STARTTLS\u306b\u3082\u5bfe\u5fdc\u305b\u306d\u3070\u306a\u3089\u306c\u304b\u3089\u3001\u5176\u308c\u7b49\u306b\u7e8f\u308f\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u4f75\u305b\u3066\u5c0e\u5165\u3057\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt install libdb-dev m4 libssl-dev libsasl2-dev<\/pre>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/th><th>\u5bfe\u5fdc\u7b56<\/th><\/tr><tr><td>No &lt;db.h&gt; include file fjound.<br>Install the appropriate db*-devel package first.<\/td><td>$ sudo apt install libdb-dev<\/td><\/tr><tr><td>extract_cfg.sh: 42: extract_cfg.sh: m4: not found<\/td><td>$ sudo apt install m4<\/td><\/tr><tr><td>.\/mail_params.h:20:10: fatal error:<br>openssl\/opensslv.h: No such file or directory<\/td><td>$ sudo apt install libssl-dev<\/td><\/tr><tr><td>host smtp.gmail.com[108.177.97.109] said:<br>530-5.5.1 Authentication Required.<\/td><td>$ sudo apt install libsasl2-dev<\/td><\/tr><\/tbody><\/table><figcaption>\u88681. make\u6642\u306b\u8868\u793a\u3055\u308c\u308b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u5bfe\u5fdc\u7b56<\/figcaption><\/figure>\n\n\n\n<p>\u7d9a\u3044\u3066 <code>make makefiles<\/code> \u3067\u5fc5\u8981\u3068\u306a\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a18\u8ff0\u3059\u308b\u3002CCARGS\u306b\u3042\u308b <code>-DUSE_TLS<\/code> \u3067STARTTLS\u306b\u5bfe\u5fdc\u3057\u3001<code>-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I\/usr\/include\/sasl<\/code> \u304cSMTP-AUTH\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u8a18\u8f09\u7121\u3057\u306b\u30d3\u30eb\u30c9\u3092\u9032\u3081\u3066\u30e1\u30fc\u30eb\u3092\u9001\u308a\u4ed8\u3051\u308b\u3068\u7d42\u3044\u306b\u306f <code>host smtp.gmail.com[108.177.97.109] said: 530 5.7.0 Must issue a STARTTLS command first.<\/code> \u3067\u3042\u308b\u3068\u304b <code>host smtp.gmail.com[108.177.97.109] said: 530-5.5.1 Authentication Required.<\/code> \u3068\u3044\u3063\u305f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9802\u6234\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u304b\u3089 <code>make install<\/code> \u3092\u5b9f\u65bd\u3059\u308b\u3088\u308a\u3082\u5148\u3093\u3058\u3066postfix\u30e6\u30fc\u30b6\u3068postdrop\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u3066\u304a\u304b\u306d\u3070 <code>postfix-install: Error: \"postfix\" needs an entry in the passwd file.<\/code> \u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u73fe\u308c\u3066\u51e6\u7406\u304c\u7d42\u4e86\u3057\u3066\u3057\u307e\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo useradd -s \/bin\/false postfix\n$ sudo groupadd postdrop\n$ make makefiles CCARGS=\"-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I\/usr\/include\/sasl\" AUXLIBS=\"-lssl -lcrypto -lsasl2\"\n$ make\n$ sudo make install<\/pre>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u6059\u7121\u304f\u5b8c\u4e86\u3059\u308c\u3070 <code>main.cf<\/code> \u306e\u7de8\u96c6\u3078\u79fb\u308b\u3002\u3044\u3063\u307d\u3046\u3067\u4f55\u3089\u304b\u306e\u30a8\u30e9\u30fc\u306b\u898b\u821e\u308f\u308c\u305f\u3089\u3046\u307e\u3044\u5177\u5408\u306b\u8abf\u6574\u3057\u3066\u518d\u30d3\u30eb\u30c9\u306b\u53d6\u308a\u7d44\u307e\u306d\u3070\u306a\u3089\u306a\u3044\u3002\u518d\u30d3\u30eb\u30c9\u306e\u969b\u306f <code>make makefiles<\/code> \u306b\u5148\u3093\u3058\u3066 <code>make tidy<\/code> \u3067\u524d\u56de\u30d3\u30eb\u30c9\u6642\u306e\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u9664\u53bb\u3057\u3066\u304a\u304f\u3002\u307e\u305f\u3001 <code>make install<\/code> \u306b\u4ee3\u308f\u3063\u3066 <code>make upgrade<\/code> \u3092\u7528\u3044\u308b\u306e\u304c\u826f\u3055\u305d\u3046\u306a\u60c5\u52e2\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\u3068\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u751f\u6210<\/h3>\n\n\n\n<p><code>main.cf<\/code> \u306b\u306f\u6b64\u5ea6\u306e\u52d5\u4f5c\u8981\u4ef6\u3092\u6e80\u305f\u3059\u5fc5\u8981\u6700\u4f4e\u9650\u306e\u8a2d\u5b9a\u3092\u6295\u5165\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/postfix\/main.cf\nalias_maps   = hash:\/etc\/aliases\nhome_mailbox = Maildir\/\nrelayhost    = smtp.gmail.com:587\n\nsmtp_tls_security_level        = may\nsmtp_sasl_auth_enable          = yes\nsmtp_sasl_password_maps        = hash:\/etc\/postfix\/sasl_passwd\nsmtp_sasl_mechanism_filter     = digest-md5 cram-md login plain\nsmtp_sasl_tls_security_options = noanonymous<\/pre>\n\n\n\n<p>alias_maps \u306f\u3088\u3057\u306a\u306b\u30bb\u30c3\u30c8\u3057\u3066\u304a\u304b\u306d\u3070Postfix\u8d77\u52d5\u5f8c\u306b <code>error: open database \/etc\/aliases.db: No such file or directory<\/code> \u3068\u304b <code>warning: dict_nis_init: NIS domain name not set - NIS lookups disabled<\/code> \u306a\u3069\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u73fe\u308c\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/aliases\nroot:        guro\npostmaster:  guro\n\n$ sudo newaliases<\/pre>\n\n\n\n<p>2\u6bb5\u968e\u8a8d\u8a3c\u30d7\u30ed\u30bb\u30b9\u3092\u30aa\u30f3\u306b\u3057\u3066\u3044\u308b\u306a\u3089\u3070 <code>smtp_sasl_password_maps<\/code> \u3067\u6307\u5b9a\u3057\u305f <code>\/etc\/postfix\/sasl_passwd<\/code> \u306e\u8a2d\u5b9a\u3078\u53d6\u308a\u639b\u304b\u308b\u524d\u306b<a href=\"https:\/\/myaccount.google.com\/security\">Google\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u53f8\u308b\u30da\u30fc\u30b8<\/a>\u3067\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail1.png\" alt=\"\" class=\"wp-image-757\" width=\"734\" height=\"302\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail1.png 978w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail1-300x123.png 300w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail1-768x316.png 768w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/a><figcaption>\u56f31. \u300c\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u3092\u9078\u629e<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail2.png\" alt=\"\" class=\"wp-image-758\" width=\"511\" height=\"301\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail2.png 681w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail2-300x177.png 300w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/a><figcaption>\u56f32. \u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u753b\u9762<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail3.png\" alt=\"\" class=\"wp-image-759\" width=\"321\" height=\"209\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail3.png 428w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail3-300x195.png 300w\" sizes=\"auto, (max-width: 321px) 100vw, 321px\" \/><\/a><figcaption>\u56f33. \u300c\u30a2\u30d7\u30ea\u3092\u9078\u629e\u300d\u2192\u300c\u30e1\u30fc\u30eb\u300d<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail4.png\" alt=\"\" class=\"wp-image-760\" width=\"389\" height=\"314\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail4.png 518w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail4-300x243.png 300w\" sizes=\"auto, (max-width: 389px) 100vw, 389px\" \/><\/a><figcaption>\u56f34. \u300c\u30c7\u30d0\u30a4\u30b9\u3092\u9078\u629e\u300d\u2192\u300c\u305d\u306e\u4ed6\uff08\u540d\u524d\u3092\u5165\u529b\uff09\u300d<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail5.png\" alt=\"\" class=\"wp-image-761\" width=\"506\" height=\"182\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail5.png 675w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail5-300x108.png 300w\" sizes=\"auto, (max-width: 506px) 100vw, 506px\" \/><\/a><figcaption>\u56f35. \u30c7\u30d0\u30a4\u30b9\u540d\u3092\u5165\u529b\u3057\u300c\u751f\u6210\u300d\u3092\u30af\u30ea\u30c3\u30af<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u751f\u6210\u3055\u308c\u305f\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u6c7a\u3057\u3066\u4eba\u69d8\u306b\u77e5\u3089\u308c\u306c\u3088\u3046\u53b3\u683c\u306b\u53d6\u308a\u6271\u308f\u306d\u3070\u306a\u3089\u306a\u3044\u3002\u3055\u3082\u306a\u3051\u308c\u3070\u77ac\u304f\u9593\u306b\u91cd\u5927\u306a\u30a4\u30f3\u30b7\u30c7\u30f3\u30c8\u3068\u76f8\u6210\u308a\u59cb\u672b\u66f8\u306f\u514d\u308c\u306a\u3044\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail6.png\" alt=\"\" class=\"wp-image-763\" width=\"497\" height=\"367\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail6.png 662w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail6-300x222.png 300w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/a><figcaption>\u56f36. \u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u300c\u5b8c\u4e86\u300d\u3092\u30af\u30ea\u30c3\u30af<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u7528\u610f\u3057\u305f\u3089 <code>sasl_passwd<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u30022\u6bb5\u968e\u8a8d\u8a3c\u30d7\u30ed\u30bb\u30b9\u3092\u30aa\u30f3\u306b\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u901a\u5e38\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u5b9c\u3057\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/postfix\/sasl_passwd\nsmtp.gmail.com:587      www7390uo:yufpcclzluerkvsf<\/pre>\n\n\n\n<p>\u4f5c\u6210\u3092\u7d42\u3048\u305f\u3089 postmap \u3092\u5b9f\u884c\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u30fb\u66f4\u65b0\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u809d\u306b\u9298\u3058\u3066\u304a\u304f\u3002\u3053\u308c\u3092\u6020\u308b\u3068\u5185\u5bb9\u304c\u53cd\u6620\u3055\u308c\u306a\u3044\u304b\u3089\u3001\u610f\u56f3\u3057\u305f\u52d5\u4f5c\u3068\u306f\u7570\u306a\u308b\u7d50\u679c\u306b\u614c\u3066\u308b\u3053\u3068\u306b\u306a\u308b\u3002\u307b\u3093\u3068\u3046\u306b\u3042\u308f\u3066\u305f\u3002\u305d\u308c\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092600\u306b\u3057\u3066root\u30e6\u30fc\u30b6\u4ee5\u5916\u306e\u8aad\u307f\u66f8\u304d\u3092\u5236\u9650\u3057\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo postmap \/etc\/postfix\/sasl_passwd\n$ sudo chmod 600 \/etc\/postfix\/sasl_passwd*\n$ ls -l \/etc\/postfix\/sasl_passwd*\n-rw------- 1 root root    43 Oct 12 12:01 \/etc\/postfix\/sasl_passwd\n-rw------- 1 root root 12288 Oct 12 12:02 \/etc\/postfix\/sasl_passwd.db<\/pre>\n\n\n\n<p>\u3042\u3068\u306f\u8a2d\u5b9a\u306b\u9593\u9055\u3044\u304c\u306a\u3044\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3001\u5185\u5bb9\u306b\u5dee\u3057\u969c\u308a\u304c\u306a\u3044\u3088\u3046\u3067\u3042\u308c\u3070Postfix\u3092\u8d77\u52d5\u3059\u308b\u3060\u3051\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo postfix check\n$ sudo postfix start<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u30e1\u30fc\u30eb\u9001\u4fe1\u30c6\u30b9\u30c8<\/h3>\n\n\n\n<p>\u4e8b\u524d\u306b\u7d44\u307f\u4e0a\u3052\u3066\u304a\u3044\u305fSMTP\u30b3\u30de\u30f3\u30c9\u3067\u4ee5\u3063\u3066\u30c6\u30b9\u30c8\u30e1\u30fc\u30eb\u3092\u6295\u3052\u3064\u3051\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ telnet localhost 25\nehlo localhost\nmail from: &lt;guro&gt;\nrcpt to: &lt;www7390uo@gmail.com&gt;\ndata\nFrom: guro\nTo: www7390uo@gmail.com\nSubject: test\n\ntest\n.\nquit<\/pre>\n\n\n\n<p>\u6059\u7121\u304f\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3067\u304d\u3066\u3044\u308b\u6a21\u69d8\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"219\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail7.png\" alt=\"\" class=\"wp-image-764\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail7.png 606w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/10\/postfix-gmail7-300x108.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/a><figcaption>\u56f37. \u30c6\u30b9\u30c8\u30e1\u30fc\u30eb\u3092\u53d7\u4fe1\u3057\u305f\u69d8\u5b50<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4e0d\u8981\u3068\u306a\u308c\u3070 <a href=\"https:\/\/myaccount.google.com\/security\">Google\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u53f8\u308b\u30da\u30fc\u30b8<\/a> \u304b\u3089\u524a\u9664\u3092\u3059\u308b\u3002\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u305f\u969b\u306b <code>SASL authentication failed; server smtp.gmail.com[64.233.189.109] said: 535-5.7.8 Username and Password not accepted.<\/code> \u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u30ed\u30b0\u306b\u8a18\u9332\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u898b\u5c4a\u3051\u308c\u3070\u7d42\u3044\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<h3 class=\"link\">\u53c2\u8003:<\/h3>\n<ul>\n <li><a href=\"http:\/\/www.postfix.org\/postconf.5.html\">Postfix Configuration Parameters<\/a><\/li>\n <li><a href=\"https:\/\/support.google.com\/mail\/answer\/185833?hl=ja\">\u30a2\u30d7\u30ea \u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3 &#8211; Gmail \u30d8\u30eb\u30d7<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>OS: Ubuntu Server 18.04Postfix 3.4.7 Postfix\u3092\u30bd\u30fc\u30b9\u304b\u3089\u5c0e\u5165 \u5148\u305a\u4ee5\u3066\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5c55\u958b\u3059\u308b\u3002 $ wget -c http:\/\/mirror.postfix.jp\/postfix-release\/official\/postfix-3.4.7.tar.gz $ tar zxvf postfix-3.4.7.tar.gz $ cd post &#8230; <a title=\"Postfix\u3092\u30bd\u30fc\u30b9\u304b\u3089\u5c0e\u5165\u3057smtp.gmail.com\u7d4c\u7531\u3067\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\" class=\"read-more\" href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/archives\/752\" aria-label=\"Postfix\u3092\u30bd\u30fc\u30b9\u304b\u3089\u5c0e\u5165\u3057smtp.gmail.com\u7d4c\u7531\u3067\u30e1\u30fc\u30eb\u3092\u9001\u4fe1 \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[162],"tags":[200,165],"class_list":["post-752","post","type-post","status-publish","format-standard","hentry","category-162","tag-postfix","tag-165"],"views":7426,"_links":{"self":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts\/752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=752"}],"version-history":[{"count":0,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts\/752\/revisions"}],"wp:attachment":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}