Contents

조회 수 4472 댓글 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



?

  1. [mac] 맥에서 기본 실행 앱 변경하기

    Date2018.03.02 CategorySystem/OS Byhooni Views1817
    Read More
  2. [mac] 맥에서 APM(apache,php,mysql) 구성하기

    Date2013.04.23 CategorySystem/OS Byhooni Views38621
    Read More
  3. [mac] 맥OSX에서 NTFS 쓰기 기능 활성화

    Date2014.03.12 CategorySystem/OS Byhooni Views4290
    Read More
  4. [mac] 맥(OSX)에서 root 패스워드 설정하기

    Date2013.04.23 CategorySystem/OS Byhooni Views22426
    Read More
  5. [mac] 맥(OSX)에서 NTFS, 윈도우에서 HFS+ 사용하기

    Date2014.03.12 CategorySystem/OS Byhooni Views5121
    Read More
  6. [mac] VirtualBox 실행 스크립트와 bash_profile 설정

    Date2020.07.08 CategorySystem/OS Byhooni Views975
    Read More
  7. [mac] SVN 1.8 업데이트 방법

    Date2013.09.24 CategorySystem/OS Byhooni Views14573
    Read More
  8. [mac] OSX(맥) 단축키 설명 ㅎㅎ

    Date2013.04.23 CategorySystem/OS Byhooni Views29573
    Read More
  9. [mac] OS X 요세미티 사용자가 많이 겪는 버그와 몇몇 불편사항

    Date2015.01.04 CategorySystem/OS Byhooni Views1536
    Read More
  10. [mac] OS X 엘 캐피탄에서 Soudflower 사용하기

    Date2016.10.03 CategorySystem/OS Byhooni Views886
    Read More
  11. [mac] Mac에서 Mac으로 원격제어하기 (맥에서 맥으로)

    Date2013.10.08 CategorySystem/OS Byhooni Views36998
    Read More
  12. [mac] Mac OS에서 재생되는 사운드를 녹음하는 방법

    Date2016.10.03 CategorySystem/OS Byhooni Views1450
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 17 Next
/ 17