Unix

Round Cube 설치

알 수 없는 사용자 2013. 5. 28. 19:21

http://roundcube.net/

버전업이 꽤 되어서 이제 0.9까지 왔다.

별달리 어렵진 않다.

압축 해제하고 installer 폴더의 index.php를 브라우저를 통해 접속하면 된다.

/var/www/mail -> /var/www/roundcubemail-0.9.1 이렇게 향하게 소프트 링크를 걸고...

robots.txt가 있는데 이는 /var/www/robots.txt 에 내용을 조금은 생각해서 넣어줘야 한다?

User-agent: *

Disallow: /mail/

Disallow: /roundcubemail-0.9.1/

이런식이 되는 것이다. RoundCube는 자기가 /var/www 에 있다고 생각하기 때문에 robots.txt를 /var/www/robots.txt 를 수정하는 것으로 대체해야 한다.


Round Cube는 DB가 필요한데, 복잡하게 MySQL 말고 SqLite를 쓰라고 했다. 패키지가 필요한데, php5-sqlite 를 깔면 된다.

/var/www/db 란 폴더를 만들어서, apache가 읽고 쓸 수 있게 한다. 그리고 안에 .htaccess파일을 만든다. 내용은

deny from all

한줄이면 된다. 남이 DB를 함부로 열어보고 그러면 안 되니까.

인스톨러가 거의 다 알아서 하는데... 도메인은, IMAP의 경우 localhost라고 절대 적지 말고, 자기 메일서버의 도메인을 적자. localhost라고 적어도 로그인은 되는데, 문제는 뭐냐면, 웹메일로 로그인 한 뒤 메일을 보내면 id@localhost 이런 식으로 보낸이가 되어버려서, 남이 나한테 답을 못 하게 된다는 것이다.

이윽고 인스톨러가 db.inc.php랑 main.inc.php를 만들어주는데, db설정은 SQLite라 별 볼일 없고, main.inc.php가 좀 중요하다. 필자의 경우 main.inc.php.dist와의 차이점이 아래와 같다:

--- main.inc.php.dist 2013-05-17 03:06:29.000000000 +0900

+++ main.inc.php 2013-05-28 18:53:59.643648444 +0900

@@ -25,7 +25,7 @@

 $rcmail_config['debug_level'] = 1;

 

 // log driver:  'syslog' or 'file'.

-$rcmail_config['log_driver'] = 'file';

+$rcmail_config['log_driver'] = 'syslog';

 

 // date format for log entries

 // (read http://php.net/manual/en/function.date.php for all format characters)  

@@ -75,7 +75,7 @@

 // For example %n = mail.domain.tld, %t = domain.tld

 // WARNING: After hostname change update of mail_host column in users table is

 //          required to match old user data records with the new host.

-$rcmail_config['default_host'] = '';

+$rcmail_config['default_host'] = 'acme.xxx.ac.kr';

 

 // TCP port used for IMAP connections

 $rcmail_config['default_port'] = 143;

@@ -143,7 +143,7 @@

 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)

 // %z - IMAP domain (IMAP hostname without the first part)

 // For example %n = mail.domain.tld, %t = domain.tld

-$rcmail_config['smtp_server'] = '';

+$rcmail_config['smtp_server'] = 'localhost';

 

 // SMTP port (default is 25; use 587 for STARTTLS or 465 for the

 // deprecated SSL over SMTP (aka SMTPS))

@@ -276,7 +276,7 @@

 // this key is used to encrypt the users imap password which is stored

 // in the session record (and the client cookie if remember password is enabled).

 // please provide a string of exactly 24 chars.

-$rcmail_config['des_key'] = 'zzzzzzzzzzzzzzzzzzzzzzzz';

+$rcmail_config['des_key'] = 'yyyyyyyyyyyyyyyyyyyyyyy';

 

 // Automatically add this domain to user names for login

 // Only for IMAP servers that require full e-mail addresses for login

@@ -319,7 +319,7 @@

 $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;

 

 // use this name to compose page titles

-$rcmail_config['product_name'] = 'Roundcube Webmail';

+$rcmail_config['product_name'] = '... Mail';

 

 // try to load host-specific configuration

 // see http://trac.roundcube.net/wiki/Howto_Config for more details

@@ -363,7 +363,7 @@

 // 2 - one identity with possibility to edit all params

 // 3 - one identity with possibility to edit all params but not email address

 // 4 - one identity with possibility to edit only signature

-$rcmail_config['identities_level'] = 0;

+$rcmail_config['identities_level'] = 1;

 

 // Mimetypes supported by the browser.

 // attachments of these types will open in a preview window

@@ -761,7 +761,7 @@

 

 // compose html formatted messages by default

 // 0 - never, 1 - always, 2 - on reply to HTML message, 3 - on forward or reply to HTML message

-$rcmail_config['htmleditor'] = 0;

+$rcmail_config['htmleditor'] = 2;

 

 // show pretty dates as standard

 $rcmail_config['prettydate'] = true;

@@ -789,7 +789,7 @@

 // 0 - Full RFC 2231 compatible

 // 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)

 // 2 - Full 2047 compatible

-$rcmail_config['mime_param_folding'] = 1;

+$rcmail_config['mime_param_folding'] = 0;

 

 // Set true if deleted messages should not be displayed

 // This will make the application run slower

설치 끝.