라운드큐브 메일 설치(postfix+dovecot)# E-Mail2022. 6. 4. 22:14
Table of Contents
728x90
반응형
자 이제 스텝1,2를 마쳤다면!
라운드큐브를 설치 레고레고
설치환경
[daraksharavim.tistory.com]$ cat /etc/redhat-release
Rocky Linux release 8.6 (Green Obsidian)
[daraksharavim.tistory.com]$ httpd -v
Server version: Apache/2.4.37 (rocky)
Server built: May 10 2022 18:05:14
[daraksharavim.tistory.com]$ php -v
PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.24, Copyright (c) 1999-2018, by Zend Technologies
[daraksharavim.tistory.com]$ mysql -V
mysql Ver 15.1 Distrib 10.7.4-MariaDB, for Linux (x86_64) using readline 5.1
IMAP 포트(143) 방화벽 오픈
[daraksharavim.tistory.com]$ vi /etc/sysconfig/iptables
# 143포트 추가
-A INPUT -p tcp -m state --state NEW -m tcp --dport 143 -j ACCEPT
[daraksharavim.tistory.com]$ systemctl restart iptables.service
다운로드 및 압축해제
[daraksharavim.tistory.com]$ wget https://github.com/roundcube/roundcubemail/releases/download/1.5.2/roundcubemail-1.5.2-complete.tar.gz
--2022-06-04 22:11:35-- https://github.com/roundcube/roundcubemail/releases/download/1.5.2/roundcubemail-1.5.2-complete.tar.gz
Resolving github.com (github.com)... 15.164.81.167
Connecting to github.com (github.com)|15.164.81.167|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/4224042/bb277914-1e83-4db2-8057-96937c2132d2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220604%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220604T131135Z&X-Amz-Expires=300&X-Amz-Signature=ca1df30bd6b9f8983c12e77cbfb7305abadd2f0b164bbe041fbfcdabbcf8917e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=4224042&response-content-disposition=attachment%3B%20filename%3Droundcubemail-1.5.2-complete.tar.gz&response-content-type=application%2Foctet-stream [following]
--2022-06-04 22:11:35-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/4224042/bb277914-1e83-4db2-8057-96937c2132d2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220604%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220604T131135Z&X-Amz-Expires=300&X-Amz-Signature=ca1df30bd6b9f8983c12e77cbfb7305abadd2f0b164bbe041fbfcdabbcf8917e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=4224042&response-content-disposition=attachment%3B%20filename%3Droundcubemail-1.5.2-complete.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7852981 (7.5M) [application/octet-stream]
Saving to: ‘roundcubemail-1.5.2-complete.tar.gz’
roundcubemail-1.5.2-complete.tar.gz 100%[====================================================================================================>] 7.49M 3.74MB/s in 2.0s
2022-06-04 22:11:38 (3.74 MB/s) - ‘roundcubemail-1.5.2-complete.tar.gz’ saved [7852981/7852981]
[daraksharavim.tistory.com]$ tar -xvf roundcubemail-1.5.2-complete.tar.gz
DB생성
[daraksharavim.tistory.com]$ mysql -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 4
Server version: 10.7.4-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> CREATE DATABASE roundcubemail CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
Query OK, 1 row affected (0.001 sec)
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| roundcubemail |
+--------------------+
5 rows in set (0.002 sec)
MariaDB [(none)]> create user 'roundcube'@'localhost' identified by 'roundcube1234';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> grant all privileges on roundcubemail.* to 'roundcube'@'localhost';
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> quit
Bye
[daraksharavim.tistory.com]$ cd SQL/
[daraksharavim.tistory.com]$ pwd
/home/roundcube/roundcubemail-1.5.2/SQL
[daraksharavim.tistory.com]$ ls -l
합계 72
drwxr-xr-x 2 501 80 4096 12월 30 07:29 mssql
-rw-r--r-- 1 501 80 15406 12월 30 07:29 mssql.initial.sql
drwxr-xr-x 2 501 80 4096 6월 4 22:20 mysql
-rw-r--r-- 1 501 80 9235 12월 30 07:29 mysql.initial.sql
drwxr-xr-x 2 501 80 270 6월 4 22:20 oracle
-rw-r--r-- 1 501 80 7890 12월 30 07:29 oracle.initial.sql
drwxr-xr-x 2 501 80 4096 6월 4 22:20 postgres
-rw-r--r-- 1 501 80 9421 12월 30 07:29 postgres.initial.sql
drwxr-xr-x 2 501 80 4096 6월 4 22:20 sqlite
-rw-r--r-- 1 501 80 5897 12월 30 07:29 sqlite.initial.sql
[daraksharavim.tistory.com]$ mysql -u roundcube -p roundcubemail < mysql.initial.sql
Enter password:
[daraksharavim.tistory.com]$ mysql -u roundcube -p roundcubemail
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 177
Server version: 10.7.4-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [roundcubemail]> show tables;
+-------------------------+
| Tables_in_roundcubemail |
+-------------------------+
| cache |
| cache_index |
| cache_messages |
| cache_shared |
| cache_thread |
| collected_addresses |
| contactgroupmembers |
| contactgroups |
| contacts |
| dictionary |
| filestore |
| identities |
| searches |
| session |
| system |
| users |
+-------------------------+
16 rows in set (0.000 sec)
[daraksharavim.tistory.com]$ cd config/
[daraksharavim.tistory.com]$ ll
합계 76
-rw-r--r-- 1 501 80 4118 12월 30 07:29 config.inc.php.sample
-rw-r--r-- 1 501 80 62578 12월 30 07:29 defaults.inc.php
-rw-r--r-- 1 501 80 2806 12월 30 07:29 mimetypes.php
[daraksharavim.tistory.com]$ mv config.inc.php.sample config.inc.php
[daraksharavim.tistory.com]$ vi config.inc.php
# 28번라인 DB연결정보수정
$config['db_dsnw'] = 'mysql://roundcube:roundcube1234@localhost/roundcubemail';
# 추가
$config['enable_installer'] = true;
설치페이지 URL접속
예) http://192.168.245.131/roundcubemail/installer/?_step=1
Intl, zip확장모듈 설치
[daraksharavim.tistory.com]$ yum -y install php-intl.x86_64 php-pecl-zip
php.ini 타임존설정
[daraksharavim.tistory.com]$ vi /etc/php.ini
# 902번 라인
date.timezone = Asia/Seoul
temp폴더와 logs폴더 권한을 707로 변경
[daraksharavim.tistory.com]$ chmod 707 temp logs
IMAP테스트
Jun 04 23:58:31 imap-login: Info: Login: user=<kajin7>, method=PLAIN, rip=::1, lip=::1, mpid=8499, secured, session=<UIvieKDgSOQAAAAAAAAAAAAAAAAAAAAB>
Jun 04 23:58:31 imap(kajin7)<8499><UIvieKDgSOQAAAAAAAAAAAAAAAAAAAAB>: Info: Disconnected: Logged out in=29 out=572 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
웹메일 로그인
728x90
반응형
'# E-Mail' 카테고리의 다른 글
telnet IMAP command (0) | 2022.08.31 |
---|---|
pop3 연결(사용자 인증) 및 명령어 (0) | 2022.06.30 |
IMAP&POP3서버 구축(dovecot) (0) | 2022.06.04 |
지메일 외부메일 가져오기 설정 (0) | 2022.06.02 |
SMTP서버 구축(postfix) (0) | 2022.06.02 |
@다크쉐라빔 :: 다크쉐라빔의 주절주절
안녕하세요. 이곳은 IT위주의 잡다한 정보를 올려두는 개인 블로그입니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!