Contents

조회 수 4442 댓글 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
번호 분류 제목 글쓴이 날짜 조회 수
841 Develop 프로그램 문서 관리 (Doxygen) hooni 2013.04.23 16384
840 Develop 프로그래밍에서 foo, bar 함수의 유래 file hooni 2013.06.25 21243
839 Develop 프로그래밍 소스 관련 사이트.. hooni 2013.04.23 16484
838 Develop 페이팔에서 돈 찾기 (Paypal withdraw) file hooni 2014.02.20 10954
837 Develop 캘리포니아 운전면허 족보 file hooni 2017.06.12 724
836 Develop 최근 논문 자료 (2011/01/03, 만현형한테 보낸거..) secret hooni 2013.04.23 10366
835 Develop 참고하고 지울 자료.. 집에서 바야지.. ㅋㅋ file hooni 2013.04.23 12115
834 Develop 정리할 자료. file hooni 2015.07.02 674
833 Develop 자주 쓰는 Docker 명령어 alias hooni 2020.01.10 268719
832 Develop 이어서 작업할 내용~ secret hooni 2013.11.21 0
831 Develop 웹페이지 성능 테스트 툴 설명 hooni 2013.04.23 27443
830 Develop 알고리즘 성능분석 file hooni 2014.06.24 2957
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 71 Next
/ 71