mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
946b7e10a6
MySQL and IMAP. Features include: Rich UI, WYSIWYG editor, HTML mail composing and message caching. WWW: http://dracmail.net/ PR: ports/153987 Submitted by: Marian Jamrich <jamrich.majo@gmail.com> Feature safe: yes
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
-----------------------------------------------------------------------------
|
|
Installation has successfully completed!
|
|
-----------------------------------------------------------------------------
|
|
DracMail Webmail is now installed in documentoroot: %%WWWDIR%%.
|
|
|
|
For installation please see: http://dracmail.net/?page=documentation or:
|
|
|
|
1) MySQL:
|
|
|
|
cd %%WWWDIR%%
|
|
mysql -u root -p'your_root_password'
|
|
|
|
CREATE USER 'WEBMAIL_USERNAME'@'localhost' IDENTIFIED BY 'PASSWORD';
|
|
CREATE DATABASE WEBMAIL_DATABASE_NAME;
|
|
USE 'WEBMAIL_DATABASE_NAME';
|
|
mysql -u root -p'your_root_password' < ./api/SQL/dracmail.sql;
|
|
GRANT SELECT, INSERT, UPDATE, DELETE ON WEBMAIL_DATABASE_NAME.* TO WEBMAIL_USERNAME@localhost;
|
|
FLUSH PRIVILEGES;
|
|
quit;
|
|
|
|
2) Copy and edit configuration.php:
|
|
|
|
cp api/configuration.php.sample api/configuration.php
|
|
|
|
3) Config your IMAP and MYSQL:
|
|
|
|
nano api/configuration.php
|
|
|
|
IMAP Server configuration:
|
|
|
|
define('IMAP_SERVER_HOST', "localhost"); // Your server hostname, default to 'localhost'
|
|
define('IMAP_SERVER_PORT', "143"); // Your server port, default to 143
|
|
|
|
MySQL Server configuration:
|
|
|
|
define('MYSQL_HOST', 'localhost'); // Your MySQL server hostname, default to 'localhost'
|
|
define('MYSQL_USER', 'WEBMAIL_USERNAME'); // Your webmail username
|
|
define('MYSQL_PASS', 'PASSWORD'); // Your webmail user password
|
|
define('MYSQL_DB', 'WEBMAIL_DATABASE_NAME'); // Database name, default to 'dracmail'
|
|
|
|
3) And finally connect: http://your-server/dracmail.
|
|
|
|
-----------------------------------------------------------------------------
|