{"id":69,"date":"2011-11-17T23:24:03","date_gmt":"2011-11-17T19:24:03","guid":{"rendered":"http:\/\/blog.mgvmi-hipl.ru\/?p=69"},"modified":"2011-11-17T23:24:03","modified_gmt":"2011-11-17T19:24:03","slug":"squirrelmail-and-mysql","status":"publish","type":"post","link":"https:\/\/blog.5flor.ru\/?p=69","title":{"rendered":"SquirrelMail and MySQL"},"content":{"rendered":"<p>SquirrelMail and MySQL<\/p>\n<p>SquirrelMail can use a database backend like MySQL to store address books and preferences. This article describes how to configure SquirrelMail to use a MySQL address book.<br \/>\nyum install1. Install the requirements using the command below.<\/p>\n<p>yum install mysql-server php-pear-DB<\/p>\n<p>Service Configuration2. Start the mysqld service. Learn how to start and stop services here.<br \/>\nCreate Postfix Admin db3. Launch the MySQL command line tool using the command below.<\/p>\n<p>mysql -u root -p<\/p>\n<p>The default root password of MySQL is a blank password. Next, create a new MySQL database for SquirrelMail using the commands below.<\/p>\n<p>mysql&gt; CREATE DATABASE squirrelmail;<br \/>\nmysql&gt; CREATE USER squirrelmail@localhost IDENTIFIED BY &#8216;your_password&#8217;;<br \/>\nmysql&gt; GRANT ALL PRIVILEGES ON squirrelmail.* TO squirrelmail;<br \/>\nmysql&gt; USE squirrelmail;<br \/>\nmysql&gt; CREATE TABLE address (<br \/>\nowner varchar(128) DEFAULT &#187; NOT NULL,<br \/>\nnickname varchar(16) DEFAULT &#187; NOT NULL,<br \/>\nfirstname varchar(128) DEFAULT &#187; NOT NULL,<br \/>\nlastname varchar(128) DEFAULT &#187; NOT NULL,<br \/>\nemail varchar(128) DEFAULT &#187; NOT NULL,<br \/>\nlabel varchar(255),<br \/>\nPRIMARY KEY (owner,nickname),<br \/>\nKEY firstname (firstname,lastname)<br \/>\n);<br \/>\nmysql&gt; CREATE TABLE global_abook (<br \/>\nowner varchar(128) DEFAULT &#187; NOT NULL,<br \/>\nnickname varchar(16) DEFAULT &#187; NOT NULL,<br \/>\nfirstname varchar(128) DEFAULT &#187; NOT NULL,<br \/>\nlastname varchar(128) DEFAULT &#187; NOT NULL,<br \/>\nemail varchar(128) DEFAULT &#187; NOT NULL,<br \/>\nlabel varchar(255),<br \/>\nPRIMARY KEY (owner,nickname),<br \/>\nKEY firstname (firstname,lastname)<br \/>\n);<\/p>\n<p>yum install4. Configure SquirrelMail the command below.<\/p>\n<p>\/usr\/share\/squirrelmail\/config\/conf.pl<\/p>\n<p>Select menu 9, Database and update the values of the following.<\/p>\n<p>DSN for Address Book : mysql:\/\/squirrelmail:password@localhost\/squirrelmail<br \/>\nDSN for Global Address Book : mysql:\/\/squirrelmail:password@localhost\/squirrelmail<br \/>\nAllow writing into Global Address Book : true<br \/>\nAllow listing of Global Address Book : true<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SquirrelMail and MySQL SquirrelMail can use a database backend like MySQL to store address books and preferences. This article describes how to configure SquirrelMail to use a MySQL address book. yum install1. Install the requirements using the command below. yum &hellip; <a href=\"https:\/\/blog.5flor.ru\/?p=69\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,8,5],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-apache","category-mail","category-postfix"],"_links":{"self":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/69"}],"collection":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=69"}],"version-history":[{"count":0,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/69\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}