{"id":281,"date":"2023-02-24T21:42:49","date_gmt":"2023-02-24T13:42:49","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=281"},"modified":"2023-04-30T15:13:59","modified_gmt":"2023-04-30T07:13:59","slug":"tencent-enterprise-email-configuration-tutorial","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/24\/tencent-enterprise-email-configuration-tutorial\/","title":{"rendered":"\u817e\u8baf\u4f01\u4e1a\u90ae\u7bb1\u914d\u7f6e\u56fe\u6587\u6559\u7a0b"},"content":{"rendered":"<h2>\u8d26\u53f7\u6ce8\u518c<\/h2>\n<p>\u5b98\u65b9\u4e3b\u9875\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/exmail.qq.com\/\">https:\/\/exmail.qq.com\/<\/a><br \/>\n\u514d\u8d39\u7248\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/exmail.qq.com\/signupfree#signup\/free\">https:\/\/exmail.qq.com\/signupfree#signup\/free<\/a><br \/>\n\u767b\u9646\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/exmail.qq.com\/login\">https:\/\/exmail.qq.com\/login<\/a><\/p>\n<p><!-- more --><\/p>\n<h2>\u57df\u540d\u89e3\u6790<\/h2>\n<p>\u4ee5\u963f\u91cc\u4e91\u4e3a\u4f8b\uff0c\u6dfb\u52a0\u4e24\u4e2aMX\u8bb0\u5f55\uff0c\u8bb0\u5f55\u503c\u5206\u522b\u4e3a \u201cmxbiz1.qq.com.\u201d \u548c \u201cmxbiz2.qq.com.\u201d\uff0c\u4f18\u5148\u7ea7\u5206\u522b\u4e3a5\u548c10<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u8fd0\u7ef4\/\u817e\u8baf\u4f01\u4e1a\u90ae\u7bb1_\u57df\u540d\u89e3\u6790.png\" alt=\"\u817e\u8baf\u4f01\u4e1a\u90ae\u7bb1_\u57df\u540d\u89e3\u6790\" \/><\/p>\n<p>\u5728\u8fd9\u91cc\u987a\u4fbf\u518d\u6dfb\u52a0\u4e00\u6761A\u8bb0\u5f55\uff0c\u4e0b\u4e00\u6b65\u57df\u540d\u8df3\u8f6c\u8981\u7528\u5230\u3002\u8fd9\u91cc\u4e3b\u673a\u8bb0\u5f55\u586b\u5199 mail\uff0c\u8bb0\u5f55\u503c\u5c31\u662f\u4e91\u670d\u52a1\u5668\u7684\u516c\u7f51IP\u3002<\/p>\n<h2>\u57df\u540d\u8df3\u8f6c<\/h2>\n<p>\u817e\u8baf\u4f01\u4e1a\u90ae\u7bb1\u514d\u8d39\u7248\u540e\u9762\u4e0d\u518d\u652f\u6301\u76f4\u63a5\u4f7f\u7528\u57df\u540d\u201cmail.\u57df\u540d\u201d\u7684\u4e2a\u6027\u5316\u767b\u9646\u5730\u5740\u7684\u65b9\u5f0f\u6253\u5f00\uff0c\u6211\u4eec\u53ef\u4ee5\u91c7\u7528\u9875\u9762\u8df3\u8f6c\u7684\u65b9\u5f0f\u5b9e\u73b0\uff0c\u4f7f\u7528PHP\u4e2d\u7684header\u51fd\u6570\u3002<\/p>\n<blockquote>\n<p>\u6ce8\u610f\uff0c\u8be5\u65b9\u6cd5\u7684\u524d\u63d0\u662f\u60a8\u7684\u57df\u540d\u5df2\u7ecf\u5907\u6848\uff0c\u5426\u5219\u56fd\u5185\u7684\u4e91\u670d\u52a1\u5668\u4e00\u822c\u4e0d\u4f1a\u5c06\u60a8\u5728\u865a\u62df\u4e3b\u673a\u7ed1\u5b9a\u7684\u57df\u540d\u52a0\u5165\u767d\u540d\u5355\u3002<\/p>\n<\/blockquote>\n<pre><code># cd \/data\/www\/\n# mkdir mail\n# chown -R www \/data\/www\n# vim \/data\/server\/nginx\/conf\/vhosts\/mail.conf \n\nserver {\n    listen                    80;\n    server_name               mail.appblog.cn;\n    index                     index.html index.htm index.php;\n    root                      \/data\/www\/mail;\n    server_name_in_redirect   off;\n\n    location ~ .+\\.php($|\/)\n    {\n        #fastcgi_pass  unix:\/tmp\/php-cgi.sock;\n        fastcgi_pass  127.0.0.1:9000;\n        fastcgi_index index.php;\n        include       fastcgi.conf;\n        fastcgi_split_path_info  ^(.+\\.php)(\/.*)$;\n        fastcgi_param  PATH_INFO $fastcgi_path_info;\n    }\n    location ~ .*\\.(gif|jpg|jpeg|png|bmp|swf)$\n    {\n        expires 30d;\n    }\n    location ~ .*\\.(js|css)?$\n    {\n        expires 1h;\n    }\n    #\u4f2a\u9759\u6001\u89c4\u5219\n    #include \/data\/server\/nginx\/conf\/rewrite\/default.conf;\n    error_log \/data\/www\/logs\/mail-error.log;\n    access_log \/data\/www\/logs\/mail-access.log;\n}\n\n# sbin\/nginx -s reload  \/\/\u4f7fNginx\u914d\u7f6e\u91cd\u65b0\u751f\u6548<\/code><\/pre>\n<p>\u901a\u8fc7FTP\u4e0a\u4f20PHP\u9875\u9762\u8df3\u8f6c\u6587\u4ef6index.php\u81f3mail\u76ee\u5f55\u4e0b\uff0c\u5185\u5bb9\u4e3a\uff1a<\/p>\n<pre><code class=\"language-php\">&lt;?php\n    \/\/$url = $_SERVER[&#039;SERVER_NAME&#039;];\n    $url = $_SERVER[&#039;HTTP_HOST&#039;];\n    $domain = substr($url, 5);    \/\/mail.appblog.cn\n    $location = &quot;http:\/\/exmail.qq.com\/cgi-bin\/loginpage?t=logindomain&amp;param=@&quot; . $domain;\n    header(&#039;Location: &#039; . $location);\n?&gt;<\/code><\/pre>\n<p>\u597d\u4e86\uff0c\u73b0\u5728\u53ea\u8981\u6211\u4eec\u5728\u6d4f\u89c8\u5668\u8f93\u5165 mail.appblog.cn\uff0c\u5219\u76f4\u63a5\u8df3\u8f6c\u767b\u9646\u9875\u9762<br \/>\n<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/exmail.qq.com\/cgi-bin\/loginpage?t=logindomain&amp;param=@appblog.cn\">http:\/\/exmail.qq.com\/cgi-bin\/loginpage?t=logindomain&#038;param=@appblog.cn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8d26\u53f7\u6ce8\u518c \u5b98\u65b9\u4e3b\u9875\uff1ahttps:\/\/exmail.qq.com\/ \u514d\u8d39\u7248\uff1ahttps:\/\/exmail.qq. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[90],"tags":[],"class_list":["post-281","post","type-post","status-publish","format-standard","hentry","category-cloud-devops"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=281"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/281\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}