Skip to content

조회 수 11042 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
squirrelmail (다람쥐메일) 설치하기

* 다람쥐 메일에는 imap 기반으로 운영. sendmail 경우에는 xinetd의 imap, dovecot (uw) 부분을 활용하면 된다.
* qmail 을 사용하는 경우는 대개 courier-imap 을 많이 사용함 ( courier-authlib , courier-imap )

※다람쥐 웹메일을 사용하려면 적어도 php버전이 4.0.6 이상이 되어야 한다. IMAP 서버가 설치되어 있어야 한다. 다람쥐 메
 일은 웹에서 접근 가능한 위치에 설치되어 있어야 한다. 첨부파일 디렉토리를 nobody유저 nobody그룹의 소유로 만드어 놓아야 한다. 첨부파일 디렉토리의 퍼미션은 730으로 설정하도록 한다. configure파일로 전체 설정을 할 수 있다.

### courier-authlib-0.58 설치 ###
cd /usr/local/src
wget http://shupp.org/software/courier-authlib-0.58.tar.bz2
tar jvxf courier-authlib-0.58.tar.bz2
chown -R root.root courier-authlib-0.58
cd courier-authlib-0.58


./configure --prefix=/usr/local/courier-authlib --without-authpam --without-authldap --without-authpwd --without-authmysql --without-authpgsql --without-authshadow --without-authuserdb --without-authcustom --without-authcram --without-authpipe --with-authvchkpw --with-redhat

※안될경우 그냥 default로 설정(트러블슈팅도 귀찮다)
./configure --prefix=/usr/local/courier-authlib --with-redhat

make
make install
make install-configure

cp courier-authlib.sysvinit /etc/rc.d/init.d/courier-authlib
chmod 744 /etc/rc.d/init.d/courier-authlib
chkconfig --add courier-authlib
/etc/rc.d/init.d/courier-authlib start



### courier-imap-4.0.6 설치 ###
cd /usr/local/src
wget http://optusnet.dl.sourceforge.net/sourceforge/courier/courier-imap-4.0.6.tar.bz2
tar jvxf courier-imap-4.0.6.tar.bz2
chown -R root.root courier-imap-4.0.6
cd courier-imap-4.0.6

export COURIERAUTHCONFIG=/usr/local/courier-authlib/bin/courierauthconfig
export CPPFLAGS=-I/usr/local/courier-authlib/include
./configure --prefix=/usr/local/courier-imap --disable-root-check --with-redhat

make
make install
make install-configure

vi /usr/local/courier-imap/etc/imapd

MAXDAEMONS=40
MAXPERIP=40
IMAP_EMPTYTRASH=Trash:7,Sent:30
IMAPDSTART=YES

cp courier-imap.sysvinit /etc/rc.d/init.d/courier-imap
chmod 744 /etc/rc.d/init.d/courier-imap
chkconfig --add courier-imap
/etc/rc.d/init.d/courier-imap start



### squirrelamil (다람쥐메일) 설치 ###
cd /usr/local/src
wget http://www.squirrelmail.org/countdl.php?fileurl=http%3A%2F%2Fprdownloads.sourceforge.net%2Fsquirrelmail%2Fsquirrelmail-1.4.13.tar.gz ===> http://www.squirrelmail.org/download.php (다운페이지)
cd /usr/local/apache/htdocs
tar xvzf /usr/local/src/squirrelmail-1.4.13.tar.gz
chown -R nobody.nobody squirrelmail-1.4.13
chmod -R 750 squirrelmail-1.4.13
ln -s squirrelmail-1.4.13 squirrelmail

mkdir /var/squirrelmail
mkdir /var/squirrelmail/data
mkdir /var/squirrelmail/attach

cd squirrelmail
cp data/default_pref /var/squirrelmail/data
chown -R nobody.nobody /var/squirrelmail
chmod -R 0770 /var/squirrelmail/data
chmod -R 0730 /var/squirrelmail/attach

cd config
./conf.pl

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 on
S Save data
Q Quit

Command >> D

Please select your IMAP server:
cyrus = Cyrus IMAP server
uw = University of Washington's IMAP server (xinetd 의 imap 경우 -> 보통 sendmail에 다람쥐메일설치할경우 선택)
exchange = Microsoft Exchange IMAP server
courier = Courier IMAP server
macosx = Mac OS X Mailserver
hmailserver = hMailServer
quit = Do not change anything
Command >> courier


1 ] Organization Preferences
1. Organization Name : Webmail
2. Organization Logo : ../images/sm_logo.png
3. Org. Logo Width/Height : (308/111)
4. Organization Title : Webmail
5. Signout Page :
6. Top Frame : _top
7. Provider link : http://www.adminplay.com/
8. Provider name : adminplay webmail

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

Command >>

2 ] Server Settings

General
-------
1. Domain : example.com => ( adminplay.com 으로 수정.)
2. Invert Time : false
3. Sendmail or SMTP : SMTP

A. Update IMAP Settings : localhost:143 (courier)
B. Update SMTP Settings : localhost:25

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

Command >>

3 ] Folder Defaults

1. Default Folder Prefix : INBOX. (imap을 dovecot으로 사용할경우 INBOX.를 쓸필요없음)
2. Show Folder Prefix Option : false
3. Trash Folder : Trash
4. Sent Folder : Sent
5. Drafts Folder : Drafts
6. By default, move to trash : true
7. By default, move to sent : true
8. By default, save as draft : true
9. List Special Folders First : true
10. Show Special Folders Color : true
11. Auto Expunge : true
12. Default Sub. of INBOX : false
13. Show 'Contain Sub.' Option : false
14. Default Unseen Notify : 2
15. Default Unseen Type : 2 -> ( 1-=>2 로 수정)
16. Auto Create Special Folders : true
17. Folder Delete Bypasses Trash : true
18. Enable /NoSelect folder fix : false

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

4 ] General Options

1. Data Directory : ../data/ => ( /var/squirrelmail/data/ ) 로 수정
2. Attachment Directory : $data_dir => ( /var/squirrelmail/attach/) 로 수정
3. Directory Hash Level : 0
4. Default Left Size : 150
5. Usernames in Lowercase : false => ( true ) 로 수정
6. Allow use of priority : true
7. Hide SM attributions : false => ( true ) 로 수정
8. Allow use of receipts : true
9. Allow editing of identity : true
Allow editing of name : true
Remove username from header : false
10. Allow server thread sort : false
11. Allow server-side sorting : false
12. Allow server charset search : true
13. Enable UID support : true
14. PHP session name : SQMSESSID

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

Command >>


6 ] Address Books

1. Change LDAP Servers
2. Use Javascript Address Book Search : fault => ( true ) 로 수정
3. Global file address book :
4. Allow writing into global file address book : false

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

Command >>

8 ] Plugins

Installed Plugins
1. delete_move_next
2. spamcop
3. administrator
4. newmail
5. abook_take
6. message_details
7. info
8. mail_fetch
9. translate
10. listcommands
11. calendar
12. bug_report
13. filters
14. sent_subfolders
15. squirrelspell

Available Plugins:
16. fortune

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

10 ] Language preferences

1. Default Language : en_US => ( ko_KR)
2. Default Charset : iso-8859-1 => ( EUC-KR )
3. Enable lossy encoding : false

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

Command >>

cd /usr/local/src

wget http://www.squirrelmail.org/plugins/quota_usage-1.2.tar.gz
wget http://www.squirrelmail.org/plugins/compatibility-1.3.tar.gz

cd /usr/local/apache/htdocs/squirrelmail/plugins
tar xvzf /usr/local/src/quota_usage-1.2.tar.gz
cp quota_usage/config.php.sample quota_usage/config.php
chown -R nobody.nobody quota_usage
chmod -R o-rx quota_usage

vi quota_usage/functions.php
Go to line 43 and change the value 1000000 to 1048576
==> 43 라인 부분에서 1000000 을1048576 으로 수정,

tar xzf /usr/local/src/compatibility-1.3.tar.gz
chown -R nobody.nobody compatibility
chmod -R o-rx compatibility

cd ../config
./conf.pl

8 ] Plugins
부분에서
quota_usage
compatibility 을

-> Installed Plugins 으로 선택하여 올려준다.

# vi /usr/local/apache/conf/httpd.conf 부분에 webmail 페이지 띄우기 위해 버추얼 호스트 설정.

<VirtualHost *:80>
ServerAdmin webmaster@adminplay.com
DocumentRoot /home/squirrelmail
ServerName webmail.adminplay.comt
ErrorLog logs/webmail.adminplay.com
CustomLog logs/webmail.adminplay.com-access_log common
</VirtualHost>

* named 설정에서 서브도메인 'webmail'을 사용할 수 있어야 한다. (예: webmail.adminplay.com)

* 다람쥐메일 한글화

http://www.squirrelmail.org/download.php 에서 다람쥐메일 설치버전에 맞는 언어팩설치

cd /usr/local/apache/htdocs/squirrelmail/
wget http://heanet.dl.sourceforge.net/sourceforge/squirrelmail/all_locales-1.4.5-20050904.tar.gz
tar xvzf all_locales-1.4.5-20050904.tar.gz
chmod 750 locale
chown -R nobody.nobody locale
cd locale ==> 부분에 ko_KR 이있는지 확인.

==> http://webmail.도메인

List of Articles
번호 제목 글쓴이 날짜 조회 수
» squirrelmail (다람쥐메일) 설치하기관리자 file ADMINPLAY 2009.11.24 11042
61 Q메일서버 관리 1 ADMINPLAY 2009.12.25 11035
60 다람쥐메일(squirrelmail) 첨부파일 용량 늘이기 ADMINPLAY 2008.11.03 10988
59 주요포탈업체 IP차단해제하기 ADMINPLAY 2009.11.01 10977
58 메일 포워딩 시키기 ADMINPLAY 2009.05.22 10926
57 Jul 5 15:53:46 www sendmail[25566]: NOQUEUE: [211.192.... ADMINPLAY 2009.09.20 10867
56 메일 오류(되돌아올때) ADMINPLAY 2009.05.22 10755
55 다람쥐 메일 + qmail 에러 해결 팁 ADMINPLAY 2009.06.04 10705
54 sendmail log분석 ADMINPLAY 2009.05.22 10543
53 무료 웹메일 라운드 큐브 Roundcubemail 0.2.1 설치 ADMINPLAY 2009.06.04 10517
52 [Imap] Qmail + Vpopmail + Dovecot 연동하기 ADMINPLAY 2009.06.01 10499
51 SendMail 설정 하기 file ADMINPLAY 2009.10.20 10438
50 qmail queue 서브디렉토리 복구 ADMINPLAY 2009.12.25 10250
49 You have new mail in /var/spool/mail/root ADMINPLAY 2009.04.14 10152
48 메일 헤더 구성 요소 ADMINPLAY 2009.06.04 10011
47 qmail 점검 사항 ADMINPLAY 2009.06.04 9986
46 Sendmail 세부설정 ADMINPLAY 2009.10.20 9910
45 메일서버 구축하기(sendmail) ADMINPLAY 2009.06.12 9835
44 supervise: fatal: unable to acquire qmail-send/supervi... ADMINPLAY 2009.06.04 9834
43 메일서버(Sendmail) 구축 ADMINPLAY 2009.07.18 9699
Board Pagination Prev 1 2 3 4 5 6 Next
/ 6

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234