Contents

조회 수 4443 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

CentOS 7 버전에 Squirrelmail 설치하기


Squirrelmail(다람쥐 메일)은 imap 기반으로 동작하는 웹메일이다. 따라서, 웹 서버, MTA(Mail Transfer Agent; 메일서버), SMTP 서버가 동작하는 상태에서 확인이 가능하다.

Postfix, Dovecot 등의 선행작업에 대한 내용은 다음 링크에서 확인할 수 있다.

[참고] Postfix, Dovecot, SSL/TLS 설치 및 설정




1. EPEL 저장소 추가.

기본 CentOS에는 Squirrelmail 저장소가 제공되지 않으므로 다음 명령어를 통해 EPEL 저장소를 추가한다.

[root@hooni ~]# yum -y install epel-release




2. Squirrelmail을 설치

[root@hooni ~]# yum -y install squirrelmail




3. 환경설정 스크립트 실행

설치 후 제공되는 스크립트를 실행하면 환경설정을 할 수 있다.

[root@hooni ~]# cd /usr/share/squirrelmail/config/
[root@hooni config]# ./conf.pl



설정 스크립트를 실행하면 다음과 같은 화면을 볼 수 있다.

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages

D.  Set pre-defined settings for specific IMAP servers

C   Turn color off
S   Save data
Q   Quit

Command >> 1




4. 환경설정 (Option 1. Organization Preferences; 조직)

옵션 1에서는 조직에 대한 기본 설정을 변경할 수 있다. 조직의 환경에 맞게 설정하는 것이 좋다.

필요에 따라 조직의 이름, 로고 및 제목을 변경할 수 있다.

옵션 1을 선택하면 다음과 같은 화면이 출력된다.

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Organization Preferences
1.  Organization Name      : SquirrelMail
2.  Organization Logo      : ../images/sm_logo.png
3.  Org. Logo Width/Height : (308/111)
4.  Organization Title     : SquirrelMail $version
5.  Signout Page           : 
6.  Top Frame              : _top
7.  Provider link          : http://squirrelmail.org/
8.  Provider name          : SquirrelMail

R   Return to Main Menu
C   Turn color off
S   Save data
Q   Quit

Command >>


완료 후 R 명령을 사용하여 주 메뉴로 다시 돌아간다.




4. 환경설정 (Option 2. Sever Settings; 서버)

서버 설정을 위해 주 메뉴에서 옵션 2를 선택하면 다음과 같은 화면이 출력된다.

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server SettingsGeneral
-------
1.  Domain                 : localhost
2.  Invert Time            : false
3.  Sendmail or SMTP       : Sendmail

A.  Update IMAP Settings   : localhost:143 (uw)
B.  Change Sendmail Config : /usr/sbin/sendmail

R   Return to Main Menu
C   Turn color off
S   Save data
Q   Quit

Command >> 1



옵션 1을 선택하여 도메인 이름을 변경한다.

The domain name is the suffix at the end of all email addresses.  If
for example, your email address is jdoe@example.com, then your domain
would be example.com.
[localhost]: hooni.net



이제 옵션 3을 선택하여 MTA(Mail Transfer Agent)를 변경한다.

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server SettingsGeneral
-------
1.  Domain                 : hooni.net
2.  Invert Time            : false
3.  Sendmail or SMTP       : Sendmail

A.  Update IMAP Settings   : localhost:143 (uw)
B.  Change Sendmail Config : /usr/sbin/sendmail

R   Return to Main Menu
C   Turn color off
S   Save data
Q   QuitCommand >> 3

You now need to choose the method that you will use for sending
messages in SquirrelMail.  You can either connect to an SMTP server
or use sendmail directly.

1. Sendmail
2. SMTP
Your choice [1/2] [1]: 2


우리는 SMTP를 사용할 것이므로 2를 선택한다.


메뉴 화면에서 S를 선택해서 저장 한다.

저장이 완료되면 Q를 선택해서 스크립트를 종료한다.




5. 웹서버 설정

Apache 웹서버 설정 파일

[root@hooni ~]# vi /etc/httpd/conf/httpd.conf



가상 호스트 추가, Squirrelmail 디렉토리의 설정

#Alias /webmail /usr/share/squirrelmail
<Directory "/usr/share/squirrelmail">
    Options Indexes FollowSymLinks
    RewriteEngine On
    AllowOverride All
    DirectoryIndex index.php
    Order allow,deny
    Allow from all
</Directory>

<VirtualHost *:80>
    ServerName mail.hooni.net
    DocumentRoot /usr/share/squirrelmail
    ErrorLog logs/mail.hooni.net.error_log
    CustomLog logs/mail.hooni.net.access_log common
</VirtualHost>



설정을 저장하고 웹서버 재시작

[root@hooni ~]# systemctl start httpd
[root@hooni ~]# systemctl enable httpd




6. 이메일 계정(사용자) 추가

사용자를 추가하려면 다음과 같은 명령 형식으로 계정을 추가한다. 새로운 사용자  hooni를 추가하며 -s /sbin/nologin 옵션은 콘솔(SSH)을 사용하지 않는다는 옵션이다.

[root@hooni ~]# useradd -m hooni -s /sbin/nologin
[root@hooni ~]# passwd hooni




7. 웹 메일 확인

브라우저에서 해당 URL로 접속해서 확인한다.

http://mail.hooni.net



?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
58 System/OS [linux] 초간단 Postfix, Covecot, SSL/TLS (SMTP) file hooni 2017.12.11 9304
57 System/OS [linux] 간단한 find 명령어 설명(업데이트 해야 함) hooni 2013.04.23 9111
56 System/OS [linux] man 명령어 뽀개기.. hooni 2003.04.23 8721
55 System/OS HTTPS와 SSL 인증서 file hooni 2014.03.11 7542
54 System/OS SVN(Subversion) 설치와 설정 (sasl 인증 적용 포함) file hooni 2014.09.11 5653
53 System/OS [windows] 윈도우즈 콘솔에서 정품인증 하는 방법 hooni 2017.05.24 5262
52 System/OS [mac] 맥(OSX)에서 NTFS, 윈도우에서 HFS+ 사용하기 file hooni 2014.03.12 5113
51 System/OS [linux] awk 명령어 hooni 2014.03.11 4951
50 System/OS [linux] CentOS 6.5 에서 "Bringing up interface eth0: Determining if ip address 121.78.127.197 is already in use for device eth0..." hooni 2014.04.05 4828
49 System/OS [linux] resolv.con 초기화 되는 문제 hooni 2014.04.05 4608
48 System/OS [linux] CentOS Apache Httpd에 https 적용 hooni 2014.03.05 4476
» System/OS [linux] 초간단 SquirrelMail 설치/설정 (다람쥐 메일) hooni 2017.12.11 4443
Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 Next
/ 17