{"id":9377,"date":"2022-03-07T22:18:35","date_gmt":"2022-03-07T14:18:35","guid":{"rendered":"https:\/\/blog.hoyo.idv.tw\/?p=9377"},"modified":"2022-03-08T20:19:03","modified_gmt":"2022-03-08T12:19:03","slug":"google-apps-%e8%87%aa%e6%95%91-04-%e6%83%b3%e7%9b%a1%e8%be%a6%e6%b3%95%e7%b9%bc%e7%ba%8c%e8%b9%ad-google","status":"publish","type":"post","link":"https:\/\/blog.hoyo.idv.tw\/?p=9377","title":{"rendered":"Google Apps \u81ea\u6551 - 04 \u60f3\u76e1\u8fa6\u6cd5\u7e7c\u7e8c\u8e6d Google"},"content":{"rendered":"<p>--<\/p>\n<h2>\u5148\u8aaa\u7d50\u8ad6<\/h2>\n<p>\u5728\u5f8c\u9762\u7684 mbox \u9084\u539f\u8cc7\u6599\u7684\u6e2c\u8a66\u5f8c\u767c\u73fe\uff0c\u5927\u91cf\u5bc4\u4fe1\u7d66 gmail \u6703\u88ab\u7576\u4f5c\u767c\u5ee3\u544a\u4fe1\u800c\u88ab\u5c01\u9396\uff0c\u6240\u4ee5\u7121\u6cd5\u8e6d Google \u53ea\u597d\u81ea\u5df1\u67b6\u8a2d Mail Server<\/p>\n<ul>\n<li><a href=\"https:\/\/support.google.com\/mail\/answer\/188131?p=UnsolicitedMessageError&amp;visit_id=637803510955240935-3988270869&amp;rd=1\" target=\"_blank\" rel=\"noopener\">\u70ba\u4ec0\u9ebc Gmail \u5c01\u9396\u6211\u7684\u90f5\u4ef6\uff1f<\/a><\/li>\n<li><a href=\"https:\/\/support.google.com\/mail\/answer\/81126\" target=\"_blank\" rel=\"noopener\">\u907f\u514d\u5bc4\u7d66 Gmail \u4f7f\u7528\u8005\u7684\u90f5\u4ef6\u906d\u5230\u5c01\u9396\u6216\u6b78\u985e\u70ba\u5783\u573e\u90f5\u4ef6<\/a><\/li>\n<\/ul>\n<p>--<\/p>\n<h2>\u53c3\u8003\u8cc7\u6e90<\/h2>\n<ul>\n<li><a href=\"https:\/\/shkspr.mobi\/blog\/2022\/01\/how-to-migrate-google-for-your-domain-to-normal-gmail\/\" target=\"_blank\" rel=\"noopener\">How to migrate Google For Your Domain to normal Gmail<\/a><\/li>\n<li><a href=\"https:\/\/support.google.com\/mail\/thread\/29798218\/how-can-i-import-a-gmail-export-file?hl=en\" target=\"_blank\" rel=\"noopener\">how can I import a gmail export file<\/a><\/li>\n<li><a class=\"question-hyperlink\" href=\"https:\/\/serverfault.com\/questions\/63518\/how-can-i-forward-mail-while-saving-a-copy-using-postfix-and-mysql\" target=\"_blank\" rel=\"noopener\">How can I forward mail while saving a copy using postfix and mysql?<\/a><\/li>\n<li><a href=\"https:\/\/blog.tiger-workshop.com\/ubuntu-postfix-mail-server-mysql-dovecot-user-domain-alias-management\/\" target=\"_blank\" rel=\"noopener\">Ubuntu Postfix Mail Server \u8a2d\u5b9a\u7b46\u8a18 (\u516b) \u4f7f\u7528 MySQL \u7ba1\u7406 User, Domain \u548c Alias<\/a><\/li>\n<li><a href=\"https:\/\/www.itread01.com\/article\/1531187998.html\" target=\"_blank\" rel=\"noopener\">\u8a73\u89e3\/etc\/postfix\u4e0b main.cf \u914d\u7f6e\u6a94\u6848<\/a><\/li>\n<\/ul>\n<p>\u65b9\u6848\u662f\u5c07\u4fe1\u4ef6\u8f49\u5230 @gmail.com\uff0c\u8b93 Gmail \u4f86\u904e\u6ffe\u4fe1\u4ef6\uff0c\u5c31\u53ef\u4ee5\u4fdd\u6301\u539f\u5148\u7684\u4f7f\u7528\u7fd2\u6163<\/p>\n<p>--<\/p>\n<h2>MySQL<\/h2>\n<p>\u70ba\u4e86\u65b9\u4fbf\u4f7f\u7528\uff0c\u6240\u4ee5\u8f49\u4fe1\u7684\u8a2d\u5b9a\u9084\u662f\u5e0c\u671b\u53ef\u4ee5\u5728\u8cc7\u6599\u5eab\u7dad\u8b77<\/p>\n<p>\u5efa\u7acb\u8cc7\u6599\u8868<\/p>\n<pre class=\"lang:default decode:true\">CREATE TABLE `Aliases` (\r\n  `id` int NOT NULL,\r\n  `Source` varchar(256) COLLATE utf8_unicode_520_ci NOT NULL,\r\n  `Destination` varchar(256) COLLATE utf8_unicode_520_ci NOT NULL\r\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_520_ci;\r\n\r\nALTER TABLE `Aliases` ADD PRIMARY KEY (`id`);\r\nALTER TABLE `Aliases` MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;<\/pre>\n<p>--<\/p>\n<h2>\u8a2d\u5b9a<\/h2>\n<p>\u5c07 alias \u95dc\u4fc2\u8a2d\u5b9a\u5230 MySQL \u8cc7\u6599\u5eab<\/p>\n<p>\/etc\/postfix\/main.cf<\/p>\n<pre class=\"lang:default decode:true\">virtual_alias_maps = mysql:\/etc\/postfix\/mysql-aliases-maps.cf<\/pre>\n<p>\/etc\/postfix\/mysql-aliases-maps.cf<\/p>\n<pre class=\"lang:default decode:true\">hosts = 127.0.0.1\r\nuser = mysql_username\r\npassword = mysql_password\r\ndbname = mysql_database\r\nquery = SELECT Destination FROM `Aliases` WHERE Source='%s'<\/pre>\n<p>\u91cd\u65b0\u555f\u52d5\u670d\u52d9<\/p>\n<pre class=\"lang:default decode:true\"># systemctl restart postfix<\/pre>\n<p>--<\/p>\n<h2>\u8a2d\u5b9a\u8f49\u4fe1<\/h2>\n<p>\u5728\u8cc7\u6599\u5eab\u5167\u65b0\u589e\u4e00\u7b46\u9019\u6a23\u5b50\u7684\u8cc7\u6599\u5c31\u53ef\u4ee5\u5c07\u4fe1\u4ef6\u8f49\u5230 @gmail.com<\/p>\n<p><a href=\"https:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2022\/03\/Image-071.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-9651\" src=\"https:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2022\/03\/Image-071-300x51.png\" alt=\"\" width=\"300\" height=\"51\" srcset=\"https:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2022\/03\/Image-071-300x51.png 300w, https:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2022\/03\/Image-071-500x85.png 500w, https:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2022\/03\/Image-071.png 524w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>--<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"9377\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;933&nbsp;total views<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>-- \u5148\u8aaa\u7d50\u8ad6 \u5728\u5f8c\u9762\u7684 mb...<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"9377\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;933&nbsp;total views<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[316],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/9377"}],"collection":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9377"}],"version-history":[{"count":13,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/9377\/revisions"}],"predecessor-version":[{"id":9652,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/9377\/revisions\/9652"}],"wp:attachment":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}