{"id":34,"date":"2023-06-05T13:16:45","date_gmt":"2023-06-05T05:16:45","guid":{"rendered":"http:\/\/pro369.com\/linux\/?p=34"},"modified":"2019-03-15T04:32:26","modified_gmt":"2019-03-15T04:32:26","slug":"%e5%9c%a8linux%e4%b8%bb%e6%a9%9f%e4%b8%8a%e5%ae%89%e8%a3%9dopen-webmail%e8%88%87%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/por.tw\/linux\/%e5%9c%a8linux%e4%b8%bb%e6%a9%9f%e4%b8%8a%e5%ae%89%e8%a3%9dopen-webmail%e8%88%87%e8%a8%ad%e5%ae%9a\/","title":{"rendered":"\u5728Linux\u4e3b\u6a5f\u4e0a\u5b89\u88ddOpen WebMail\u8207\u8a2d\u5b9a"},"content":{"rendered":"<p><span style=\"background-color: #ffff00; font-size: medium;\"><strong>\u5728Linux\u4e3b\u6a5f\u4e0a\u5b89\u88ddOpen WebMail\u8207\u8a2d\u5b9a<\/strong><\/span><\/p>\n<p>\u8a2d\u5b9a Open WebMail<\/p>\n<p>\u5728 cgi-bin\/openwebmail\/etc \u53ef\u4ee5\u767c\u73fe\u6709 openwebmail.conf.default, openwebmail.conf.help \u548c openwebmail.conf \u9019\u4e09\u500b\u6a94, \u5176\u4e2d<br \/>\nopenwebmail.conf.default \u00a0\u00a0 \u00a0\u5167\u5b9a\u7684\u8a2d\u5b9a\u6a94, \u5305\u542b\u6240\u6709 Open WebMail \u53ef\u4ee5\u9802\u7684\u9078\u9805<br \/>\nopenwebmail.conf.help \u00a0\u00a0 \u00a0openwebmail.conf.default \u6240\u6709\u9078\u9805\u7684\u8aaa\u660e\u6a94<br \/>\nopenwebmail.conf<\/p>\n<p>\u4e3b\u8981\u7684\u8a2d\u5b9a\u6a94, \u7ba1\u7406\u8005\u8981\u8a2d\u5b9a\u7684\u9078\u9805, \u61c9\u8a72\u90fd\u5beb\u5728\u9019\u500b\u6a94\u6848\u88e1\u982d, \u800c\u4e0d\u61c9\u8a72\u76f4\u63a5\u53bb\u6539 openwebmail.conf.default<\/p>\n<p>&nbsp;<\/p>\n<p>openwebmail.conf \u7684\u5167\u5bb9<\/p>\n<p># Open WebMail configuration file<br \/>\n#<br \/>\n# This file contains just the overrides from openwebmail.conf.default<br \/>\n# please make all changes to this file.<br \/>\n#<br \/>\n# This file sets options for all domains and all users.<br \/>\n# To set options on per domain basis, please put them in sites.conf\/domainname<br \/>\n# To set options on per user basis, please put them in users.conf\/username<br \/>\n#<\/p>\n<p>domainnames auto<br \/>\nauth_module auth_unix.pl<br \/>\nmailspooldir \/var\/mail<br \/>\ndbm_ext .db<br \/>\ndbmopen_ext none<br \/>\ndbmopen_haslock no<br \/>\now_cgidir \/usr\/local\/www\/cgi-bin\/openwebmail<br \/>\now_cgiurl \/cgi-bin\/openwebmail<br \/>\now_htmldir \/usr\/local\/www\/data\/openwebmail<br \/>\now_htmlurl \/openwebmail<br \/>\nlogfile \/var\/log\/openwebmail.log<br \/>\nspellcheck \/usr\/local\/bin\/ispell<br \/>\ndefault_language en<\/p>\n<p>&lt;default_signature&gt;<br \/>\n&#8212;<br \/>\nOpen WebMail Project (http:\/\/openwebmail.org)<br \/>\n&lt;\/default_signature&gt;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/visdacom.com\/linux\/wp-content\/uploads\/2019\/03\/Linux-Server-Project-9-650x433.jpg\" alt=\"\" class=\"alignnone size-medium wp-image-497\" width=\"650\" height=\"433\" \/><\/p>\n<p>\u4ee5\u4e0a\u7684\u5167\u5bb9\u53ef\u80fd\u96a8\u8457\u60a8\u7cfb\u7d71\u800c\u6709\u6240\u4e0d\u540c, \u4e0d\u904e\u5728\u60a8\u5b8c\u6210\u524d\u8ff0\u7684\u5b89\u88dd\u5f8c, \u60a8\u53ef\u4ee5\u4fee\u6539\u4ee5\u4e0b\u5e7e\u500b\u9078\u9805<\/p>\n<p>domainnames<\/p>\n<p>\u4e00\u822c\u60c5\u6cc1\u4e0b, openwebmail \u61c9\u8a72\u80fd\u6b63\u78ba\u5730\u5224\u65b7\u51fa\u60a8 server \u7684 domainname, \u9032\u800c\u6b63\u78ba\u5730\u8a2d\u5b9a\u4f7f\u7528\u8005\u7684\u9810\u8a2d Email address, \u4f46\u5982\u679c\u767c\u751f openwebmail \u5224\u65b7\u932f\u8aa4\u6216\u662f\u60a8\u5e0c\u671b\u8a2d\u5b9a\u6210\u5176\u4ed6\u7684 domainname, \u4f60\u53ef\u4ee5\u5c07\u9019\u500b\u9078\u9805\u7531 auto \u6539\u6210\u60a8\u6240\u8981\u7684 domainname, \u5982 mail.myserver.com.tw<\/p>\n<p>spellcheck<\/p>\n<p>\u8a2d\u5b9a\u62fc\u5b57\u6aa2\u67e5\u7a0b\u5f0f\u6240\u5728\u7684\u8def\u5f91, \u4e00\u822c\u800c\u8a00, \u53ef\u80fd\u662f\u4ee5\u4e0b\u5176\u4e2d\u4e4b\u4e00, \u60a8\u53ef\u4ee5\u7528 ls -l filename \u65b9\u5f0f\u6aa2\u67e5\u770b\u770b<\/p>\n<p>\/usr\/bin\/apsell<br \/>\n\/usr\/bin\/ispell<br \/>\n\/usr\/local\/bin\/aspell<br \/>\n\/usr\/local\/bin\/ispell<\/p>\n<p>default_language<\/p>\n<p>\u5167\u5b9a\u7684\u8a9e\u8a00, \u6211\u5011\u628a\u5b83\u7531 en(\u82f1\u6587) \u6539\u6210 zh_TW.Big5 (\u7e41\u9ad4\u4e2d\u6587)<\/p>\n<p>\u8a3b: \u81ea 2.0 \u7248 20030416 \u4ee5\u5f8c, \u5df2\u7d93\u4e0d\u9700\u8981\u5728 openwebmail.conf \u4e2d\u8a2d\u5b9a default_language \u9019\u500b\u9078\u9805\u4e86, openwebmail \u6703\u6839\u64da\u4f7f\u7528\u8005\u6240\u7528\u7684\u700f\u89bd\u5668\u8a2d\u5b9a, \u81ea\u52d5\u9078\u64c7\u9069\u5408\u7684\u5167\u5b9a\u7684\u8a9e\u8a00<\/p>\n<p>default_signature<\/p>\n<p>\u8a2d\u5b9a\u9810\u8a2d\u7684\u7c3d\u540d\u6a94, \u8a2d\u5728\u9019\u88e1\u7684\u503c\u6703\u6210\u70ba\u6bcf\u500b\u65b0\u4f7f\u7528\u8005\u7684\u9810\u8a2d\u7c3d\u540d\u6a94, \u4e0d\u904e\u4f7f\u7528\u6642\u6bcf\u500b\u4f7f\u7528\u8005\u53ef\u4ee5\u4f9d\u81ea\u5df1\u7684\u9700\u6c42, \u8a2d\u5b9a\u6210\u5176\u4ed6\u7684\u5167\u5bb9<\/p>\n<p>\u521d\u59cb\u5316 Open WebMail<\/p>\n<p>\u5728\u524d\u9762\u7684\u5b89\u88dd\u6b65\u9a5f\u88e1\u982d, \u6700\u5f8c\u4e00\u500b\u6b65\u9a5f\u662f<\/p>\n<p>cd the_direcotry_of_openwebmail_cgi_scripts<br \/>\n.\/openwebmail-tool.pl &#8211;init<\/p>\n<p>\u9019\u500b\u52d5\u4f5c\u6703\u5efa\u7acb\u4e00\u4e9b Open WebMail \u5728\u57f7\u884c\u6642\u6703\u7528\u5230\u7684\u5c0d\u61c9\u8868, \u5982\u7c21\u7e41\u8f49\u63db, \u9670\u967d\u66c6\u8f49\u63db\u7b49. \u5982\u679c\u9019\u500b\u52d5\u4f5c\u6c92\u6709\u505a\u7684\u8a71, \u4f7f\u7528\u8005\u5c07\u7121\u6cd5\u900f\u904e Web \u4ecb\u9762\u4f7f\u7528 Open WebMail<\/p>\n<p>\u800c\u7531\u65bc\u5728\u5404\u7a2e\u4e0d\u540c\u4f5c\u696d\u7cfb\u7d71\u4e0a\u7684 perl \u7248\u672c\u7684\u5dee\u7570, \u5176\u6240\u4f7f\u7528\u7684 dbm \u7a2e\u985e\u4e5f\u4e0d\u76e1\u76f8\u540c, \u6709\u7684\u53ef\u80fd\u9700\u8981\u7279\u6b8a\u7684\u8a2d\u5b9a\u5f8c\u624d\u80fd\u4f7f\u7528, &#8211;init \u5728\u5efa\u7acb\u4e0a\u8ff0\u5c0d\u61c9\u8868\u4e4b\u524d, \u6703\u6e2c\u8a66\u7cfb\u7d71\u4e0a perl \u7684 dbm \u7a2e\u985e, \u4e26\u4e14\u63d0\u4f9b\u4e00\u4e9b\u5fc5\u8981\u7684\u5efa\u8b70\u4e8b\u9805<\/p>\n<p>1. \u9996\u5148\u6703\u6aa2\u67e5 openwebmail.conf \u4e2d\u7684 dbm_ext, dbmopen_ext \u548c dbmopen_haslock \u4e09\u500b\u9078\u9805\u7684\u8a2d\u5b9a\u662f\u5426\u6b63\u78ba, \u5982\u679c\u8a2d\u5b9a\u6709\u8aa4\u7684\u8a71, \u60a8\u6703\u770b\u5230\u5982\u4e0b\u7684\u756b\u9762<\/p>\n<p>Please change the following 3 options in openwebmail.conf<\/p>\n<p>from<\/p>\n<p>dbm_ext .db<br \/>\ndbmopen_ext none<br \/>\ndbmopen_haslock no<\/p>\n<p>to<\/p>\n<p>dbm_ext .db<br \/>\ndbmopen_ext %dbm_ext%<br \/>\ndbmopen_haslock yes<\/p>\n<p>2. \u5176\u6b21\u662f\u6aa2\u67e5\u7cfb\u7d71\u4e0a\u7684 dbm \u662f\u5426\u5167\u5b9a\u4f7f\u7528 DB_File.pm \u9019\u500b\u6a21\u7d44, \u5982\u679c\u662f\u800c\u4e14\u6709\u9700\u8981\u7684\u8a71, \u6703\u5efa\u8b70\u60a8\u5c0d DB_File.pm \u4f5c\u4e00\u4e9b\u5fc5\u8981\u7684\u4fee\u6539 (\u9019\u500b\u4fee\u6539\u662f\u7531 DB_File.pm \u4f5c\u8005\u6240\u63d0\u4f9b\u7684), \u60a8\u6703\u770b\u5230\u5982\u4e0b\u756b\u9762<\/p>\n<p>Please modify \/usr\/libdata\/perl\/5.00503\/mach\/DB_File.pm by adding<\/p>\n<p>$arg[3] = 0666 unless defined $arg[3];<\/p>\n<p>before the following text (about line 247)<\/p>\n<p># make recno in Berkeley DB version 2 work like recno in version 1<\/p>\n<p>\u8acb\u52d9\u5fc5\u4f9d\u7167\u4ee5\u4e0a\u7684\u5efa\u8b70\u4f5c\u4fee\u6539, \u5426\u5247\u60a8\u7684 Open WebMail \u53ef\u80fd\u6703\u7121\u6cd5\u5b8c\u5168\u6b63\u5e38\u52d5\u4f5c, \u4e5f\u8acb\u8a18\u5f97\u5728\u505a\u5b8c\u4fee\u6539\u4e4b\u5f8c, \u5225\u5fd8\u4e86\u91cd\u65b0\u57f7\u884c\u4e00\u6b21 &#8216;.\/openwebmail-tool.pl &#8211;init&#8217;<\/p>\n<p>\u6e2c\u8a66 Open WebMail<\/p>\n<p>\u5728\u5b8c\u6210\u4e0a\u9762\u7684\u6b65\u9a5f\u5f8c, \u60a8\u53ef\u4ee5\u9023\u7dda\u5230<\/p>\n<p>http:\/\/your_server_hostname\/cgi-bin\/openwebmail\/openwebmail.pl<\/p>\n<p>\u4e26\u4e14\u767b\u5165\u770b\u770b\u662f\u5426\u4e00\u5207\u6b63\u5e38<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Linux\u4e3b\u6a5f\u4e0a\u5b89\u88ddOpen WebMail\u8207\u8a2d\u5b9a \u8a2d\u5b9a Open WebMail \u5728 cgi-bin\/op [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":497,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[20],"class_list":["post-34","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/posts\/34"}],"collection":[{"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":0,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/media\/497"}],"wp:attachment":[{"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}