Views 4454 Votes 0 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

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. [linux] 셀 스크립트 if, for, case in..

    Date2003.04.23 CategorySystem/OS Byhooni Views13684
    Read More
  2. [linux] 센드메일 동적릴레이 설치

    Date2003.04.23 CategorySystem/OS Byhooni Views15228
    Read More
  3. [linux] 새 하드디스크 추가하기..(내공쌓기)

    Date2003.04.23 CategorySystem/OS Byhooni Views13807
    Read More
  4. [linux] 메타(기호)문자의 의미와 사용

    Date2003.04.23 CategorySystem/OS Byhooni Views16381
    Read More
  5. [linux] 메일서버 세팅정보(sendmail)

    Date2003.04.23 CategorySystem/OS Byhooni Views17407
    Read More
  6. [linux] 리눅스,유닉스 /proc/stat 파일 보는 법

    Date2013.04.23 CategorySystem/OS Byhooni Views17916
    Read More
  7. [linux] 리눅스, 유닉스 CPU 이용률 확인..

    Date2013.04.23 CategorySystem/OS Byhooni Views23782
    Read More
  8. [linux] 리눅스 활용 팁^^

    Date2003.04.23 CategorySystem/OS Byhooni Views14629
    Read More
  9. [linux] 리눅스 파일시스템과 디렉토리 설명

    Date2013.04.23 CategorySystem/OS Byhooni Views26877
    Read More
  10. [linux] 랜카드가 2개 일 때 네트워크 설정

    Date2003.04.23 CategorySystem/OS Byhooni Views30015
    Read More
  11. [linux] 랜카드 2개 설정 & iptables 로 사설 ip..

    Date2003.04.23 CategorySystem/OS Byhooni Views14730
    Read More
  12. [linux] 데스크탑환경(GNOME/KDE) 바꾸기..

    Date2003.04.23 CategorySystem/OS Byhooni Views12101
    Read More
  13. [linux] 데비안(debian.org) 리눅스 명령어 예제

    Date2006.04.23 CategorySystem/OS Byhooni Views10422
    Read More
  14. [linux] 네트웍 트래픽 모니터링(MRTG)

    Date2003.04.23 CategorySystem/OS Byhooni Views41766
    Read More
  15. [linux] 네트워크 커널 설정..

    Date2003.04.23 CategorySystem/OS Byhooni Views16470
    Read More
  16. [linux] 꿀통(honeyd) 설치하기.. 메뉴얼 과정

    Date2006.04.23 CategorySystem/OS Byhooni Views20219
    Read More
Board Pagination Prev 1 ... 6 7 8 9 10 13 Next
/ 13