{"id":353,"date":"2019-09-15T16:34:38","date_gmt":"2019-09-15T08:34:38","guid":{"rendered":"https:\/\/freeapp.sbs\/blog\/?p=353"},"modified":"2025-06-22T06:36:33","modified_gmt":"2025-06-21T21:36:33","slug":"cns4ekv9g52yebq","status":"publish","type":"post","link":"https:\/\/eternalsphere.net\/echoes\/index.php\/2019\/09\/15\/cns4ekv9g52yebq\/","title":{"rendered":"squirrelmail"},"content":{"rendered":"<p>1\u3001\u66f4\u65b0\u7cfb\u7edf<br \/>\nsudo apt update<br \/>\n2\u3001\u5b89\u88c5apache2\u548cphp5<br \/>\nsudo apt install apache2<br \/>\n\u5982\u679c\u51fa\u73b0\u8def\u5f84\u9501\u5b9a\u95ee\u9898\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4<br \/>\nsudo rm \/var\/lib\/dpkg\/lock<br \/>\nsudo rm \/var\/lib\/apt\/lists\/lock<br \/>\nsudo rm \/var\/cache\/apt\/archives\/lock<br \/>\n3\u3001\u5b89\u88c5postfix<br \/>\nsudo apt install postfix<br \/>\n\u70b9OK\u786e\u8ba4\uff0cconfiguration\u9009\u62e9\u9ed8\u8ba4\u7684\u9879\uff1aInternet Site\uff0csystem mail name\u9ed8\u8ba4\u8ba1\u7b97\u673a\u540d<br \/>\n4\u3001\u91cd\u65b0\u8f7d\u5165postfix\u670d\u52a1<br \/>\nsudo service postfix restart<br \/>\n5\u3001\u5b89\u88c5dovecot<br \/>\nsudo apt install dovecot-imapd dovecot-pop3d<br \/>\n6\u3001\u91cd\u65b0\u8f7d\u5165dovecot\u670d\u52a1<br \/>\nsudo service dovecot restart<br \/>\n7\u3001\u5b89\u88c5squirrelmail<br \/>\nsudo apt install squirrelmail<br \/>\n8\u3001\u8bbe\u7f6esquirrelmail<br \/>\nsudo squirrelmail-configure<br \/>\n\u9009\u62e92.server settings<br \/>\n\u9009\u62e91.domain<br \/>\n\u8f93\u5165\u81ea\u5df1\u7684\u57df\u540d\uff1acyclamen.tech<br \/>\n\u9009\u62e9R\u8fd4\u56de\u4e3b\u83dc\u5355<br \/>\n\u9009\u62e94.generaloptions<br \/>\n\u9009\u62e911.allow server-site sorting<br \/>\n\u8f93\u5165y\uff0c\u56de\u8f66<br \/>\n\u8f93\u5165S save data<br \/>\n\u8f93\u5165Q quit<br \/>\n9\u3001\u590d\u5236\u914d\u7f6e\u6587\u4ef6\u5230\u53e6\u4e00\u76ee\u5f55<br \/>\nsudo cp \/etc\/squirrelmail\/apache.conf \/etc\/apache2\/sites-available\/squirrelmail.conf<br \/>\n10\u3001\u4f7f\u914d\u7f6e\u6587\u4ef6\u751f\u6548\uff0c\u67e5\u627e\u547d\u4ee4<br \/>\nsudo a2ensite squirrelmail.conf<br \/>\n11\u3001\u4f7f\u751f\u6548<br \/>\nsudo service apache2 reload<br \/>\n12\u3001\u6dfb\u52a0\u7528\u6237<br \/>\nsudo useradd user<br \/>\n13\u3001\u8bbe\u7f6e\u5bc6\u7801<br \/>\nsudo passwd user<br \/>\n14\u3001\u521b\u5efa\u76ee\u5f55<br \/>\nsudo mkdir -p \/var\/www\/html\/user<br \/>\n15\u3001\u6539\u53d8\u4ece\u5c5e\u5173\u7cfb<br \/>\nsudo chown -R user.user \/var\/www\/html\/user<br \/>\n16\u3001\u66f4\u6539\u6743\u9650<br \/>\nsudo usermod -m -d \/var\/www\/html\/user user<br \/>\n17\u3001\u767b\u5f55<\/p>\n<p>ERROR: Could not complete request.<br \/>\nQuery: SELECT &#8220;INBOX&#8221;<br \/>\nReason Given: [SERVERBUG] Internal error occurred. Refer to server log for more information. [2017-12-18 12:44:48] (0.000 + 0.000 secs).<\/p>\n<p>\u521b\u5efa\u76ee\u5f55\/var\/www\/html\/user\/mail\/INBOX<br \/>\n\u66f4\u6539\u76ee\u5f55\u6743\u9650chmod a+rwxt \/var\/mail<\/p>\n<p>\u8865\u5145\u8bf4\u660e<\/p>\n<p>1\u3001Squirrelmail\u5de5\u4f5c\u572825\u7aef\u53e3\uff0c\u9996\u5148\u8981\u8fdb\u884c\u7aef\u53e3\u6620\u5c04\u5e76\u6253\u5f00\u9632\u706b\u5899<br \/>\n2\u3001\u5df2\u7ecf\u66f4\u65b0\u6234\u5c14\u4e3b\u673a\u811a\u672c<br \/>\nssh -C -f -N -g -R 80:localhost:80 root@domain.com<br \/>\nssh -C -f -N -g -R 443:localhost:443 root@domain.com<br \/>\nssh -C -f -N -g -R 23587:localhost:22 root@domain.com<br \/>\nssh -C -f -N -g -R 25:localhost:25 root@domain.com<br \/>\n3\u3001\u5b89\u88c5Squirrelmail\u4e4b\u540e\uff0c\u4e3b\u8981\u9700\u8981\u68c0\u67e5\u4e09\u4e2a\u4f4d\u7f6e\u7684\u6587\u4ef6\uff0c\u5b89\u88c5\u6b65\u9aa4\u6309\u7167\u65e9\u671f\u7684\u8bf4\u660e\u5373\u53ef\u3002\u4f46\u662f\u9047\u5230INBOX\u65e0\u6cd5\u6253\u5f00\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u4e0d\u7528\u7ba1\u5b83\uff0c\u56e0\u4e3a\u8fd9\u662f\u6743\u9650\u8bbe\u7f6e\u7684\u539f\u56e0\uff0c\u5e76\u975e\u6587\u4ef6\u6216\u8005\u6587\u4ef6\u5939\u7684\u7f3a\u5931\uff0c\u524d\u9762\u7684\u8bf4\u660e\u5e76\u4e0d\u6b63\u786e\u3002<br \/>\n(1) \/etc\/postfix.main.cf<br \/>\n\u4fdd\u8bc1<br \/>\ninet_interfaces = all<br \/>\nmydestination = $myhostname, dell, localhost.localdomain, , localhost, domain.com, 126.com, qq.com, gmail.com<br \/>\n\u8fd9\u6837\u8bbe\u7f6e\u624d\u53ef\u4ee5\u63a5\u6536\u5176\u4ed6\u90ae\u7bb1\u7684\u90ae\u4ef6<br \/>\n(2) \/var\/www\/html\/user_name\/mail<br \/>\n-rw&#8212;&#8212;- 1 user_name user_name 0 Feb 16 13:54 INBOX.Drafts<br \/>\n-rw&#8212;&#8212;- 1 user_name user_name 777 Feb 16 13:57 INBOX.Sent<br \/>\n-rw&#8212;&#8212;- 1 user_name user_name 0 Feb 16 13:54 INBOX.Trash<br \/>\n\u4e09\u4e2a\u6587\u4ef6\u7684\u610f\u4e49\u5982\u540d\u5b57\u6240\u793a<br \/>\n(3) \/var\/mail<br \/>\n-rwxrwx&#8212; 1 user_name mail 8394 Feb 16 15:32 user_name<br \/>\n\u8fd9\u4e2a\u6587\u4ef6\u5c31\u662f\u6536\u4ef6\u7bb1\uff0c\u9700\u5c06\u6743\u9650\u66f4\u6539\u4e3a\u53ef\u8bfb\u5199\u3002<br \/>\n\u6240\u6709\u7684\u5de5\u4f5c\u5230\u6b64\u5b8c\u6210\u3002<\/p>\n<p>\u7cfb\u7edf\u65e5\u5fd7<br \/>\npostfix\/smtpd[23788]: NOQUEUE: reject: RCPT from localhost[::1]: 454<br \/>\n4.7.1 &lt;user_name@domain.com&gt;: Relay access denied; from=&lt;user_name@126.com&gt; to=&lt;user_name@domain.com&gt; proto=ESMTP helo=&lt;m15-82.126.com&gt;<br \/>\n\u662f\u56e0\u4e3a\u90ae\u7bb1\u4e0d\u63a5\u6536126\u90ae\u7bb1\u7684\u90ae\u4ef6\uff0c\u8bbe\u7f6e\u540e\u5373\u53ef\u3002\u6bcf\u6b21\u66f4\u6539\u8bbe\u7f6e\u9700\u8981\u91cd\u65b0\u542f\u52a8\u670d\u52a1 sudo service postfix restart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u66f4\u65b0\u7cfb\u7edf sudo apt update 2\u3001\u5b89\u88c5apache2\u548cphp5 sudo apt install apache2 \u5982\u679c\u51fa\u73b0\u8def\u5f84\u9501\u5b9a\u95ee\u9898\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4 sudo rm \/var\/lib\/dpkg\/lock sudo rm \/var\/lib\/apt\/lists\/lock sudo rm \/var\/cache\/apt\/archives\/lock 3\u3001\u5b89\u88c5postfix sudo apt install postfix \u70b9OK\u786e\u8ba4\uff0cconfiguration\u9009\u62e9\u9ed8\u8ba4\u7684\u9879\uff1aInternet Site\uff0csystem mail name\u9ed8\u8ba4\u8ba1\u7b97\u673a\u540d 4\u3001\u91cd\u65b0\u8f7d\u5165postfix\u670d\u52a1 sudo service postfix restart 5\u3001\u5b89\u88c5dovecot sudo apt install dovecot-imapd dovecot-pop3d 6\u3001\u91cd\u65b0\u8f7d\u5165dovecot\u670d\u52a1 sudo service dovecot restart 7\u3001\u5b89\u88c5squirrelmail sudo apt install squirrelmail 8\u3001\u8bbe\u7f6esquirrelmail &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-vuwvtm6m4vkbg"],"_links":{"self":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/comments?post=353"}],"version-history":[{"count":1,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/353\/revisions"}],"predecessor-version":[{"id":2260,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/353\/revisions\/2260"}],"wp:attachment":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/media?parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/categories?post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/tags?post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}