본문 바로가기

리눅스

[리눅스] Squirrelmail Install

728x90

Squirrelmail Install

1. apache 설치(httpd)

[root@sangchul server]$ yum install httpd

 

2. mysql, mysql-server 설치

[root@sangchul server]$ yum install mysql mysql-server

 

3. php 설치

[root@sangchul server]$ yum install php

 

4. php-mysql 연동 설치

[root@sangchul server]$ yum install php-mysql

 

5. SquirrelMail 설치

[root@sangchul server]$ yum -y install php-mbstring

[root@sangchul server]$ yum -y install squirrelmail

[root@sangchul server]$ /usr/share/squirrelmail/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 >> 2
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
 
General
-------
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
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]: sangchul.kr
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
 
General
-------
1.  Domain                 : sangchul.kr
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 >> A
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
 
General
-------
1.  Domain                 : sangchul.kr
2.  Invert Time            : false
3.  Sendmail or SMTP       : Sendmail
 
IMAP Settings
--------------
4.  IMAP Server            : localhost
5.  IMAP Port              : 143
6.  Authentication type    : login
7.  Secure IMAP (TLS)      : false
8.  Server software        : uw
9.  Delimiter              : /
 
B.  Change Sendmail Config : /usr/sbin/sendmail
H.  Hide IMAP Server Settings
 
R   Return to Main Menu
C   Turn color off
S   Save data
Q   Quit
 
Command >> 4
This is the hostname where your IMAP server can be contacted.
[localhost]: sangchul.kr
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
 
General
-------
1.  Domain                 : sangchul.kr
2.  Invert Time            : false
3.  Sendmail or SMTP       : Sendmail
 
IMAP Settings
--------------
4.  IMAP Server            : sangchul.kr
5.  IMAP Port              : 143
6.  Authentication type    : login
7.  Secure IMAP (TLS)      : false
8.  Server software        : uw
9.  Delimiter              : /
 
B.  Change Sendmail Config : /usr/sbin/sendmail
H.  Hide IMAP Server Settings
 
R   Return to Main Menu
C   Turn color off
S   Save data
Q   Quit
 
Command >> 8
Each IMAP server has its own quirks.  As much as we tried to stick
to standards, it doesn't help much if the IMAP server doesn't follow
the same principles.  We have made some work-arounds for some of
these servers.  If you would like to use them, please select your
IMAP server.  If you do not wish to use these work-arounds, you can
set this to "other", and none will be used.
    cyrus       = Cyrus IMAP server
    uw          = University of Washington's IMAP server
    exchange    = Microsoft Exchange IMAP server
    courier     = Courier IMAP server
    macosx      = Mac OS X Mailserver
    hmailserver = hMailServer
    other       = Not one of the above servers
[uw]: other
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
 
General
-------
1.  Domain                 : sangchul.kr
2.  Invert Time             : false
3.  Sendmail or SMTP       : Sendmail
 
IMAP Settings
--------------
4.  IMAP Server            : sangchul.kr
5.  IMAP Port              : 143
6.  Authentication type    : login
7.  Secure IMAP (TLS)      : false
8.  Server software        : other
9.  Delimiter              : /
 
B.  Change Sendmail Config : /usr/sbin/sendmail
H.  Hide IMAP Server Settings
 
R   Return to Main Menu
C   Turn color off
S   Save data
Q   Quit
 
Command >> S
Data saved in config.php
Press enter to continue...
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
 
General
-------
1.  Domain                 : sangchul.kr
2.  Invert Time            : false
3.  Sendmail or SMTP       : Sendmail
 
IMAP Settings
--------------
4.  IMAP Server            : sangchul.kr
5.  IMAP Port              : 143
6.  Authentication type    : login
7.  Secure IMAP (TLS)      : false
8.  Server software        : other
9.  Delimiter              : /
 
B.  Change Sendmail Config : /usr/sbin/sendmail
H.  Hide IMAP Server Settings
 
R   Return to Main Menu
C   Turn color off
S   Save data
Q   Quit
 
Command >> Q
Exiting conf.pl.
You might want to test your configuration by browsing to
http://your-squirrelmail-location/src/configtest.php
Happy SquirrelMailing!

웹 접속

http://mail.sangchul.kr/webmail/src/login.php

(http 설정 /etc/httpd/conf.d/squirrelmail.conf)

[root@sangchul ~]$ cat /etc/httpd/conf.d/squirrelmail.conf
#
# SquirrelMail is a webmail package written in PHP.
#
 
Alias /webmail /usr/share/squirrelmail

웹 설정

URL : http://webmail.sangchul.kr

[root@sangchul ~]$ tail /etc/httpd/conf/httpd.conf
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
    ServerAdmin webmaster@sangchul.kr
    DocumentRoot /usr/share/squirrelmail
    ServerName webmail.sangchul.kr
    ErrorLog logs/webmail.sangchul.kr-error_log
    CustomLog logs/webmail.sangchul.kr-access_log common
</VirtualHost>

 

 

 

728x90