Skip to content

조회 수 11096 추천 수 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
번호 제목 글쓴이 날짜 조회 수
82 SPF 레코드등록.. 이틀간의 삽질의 결과물..(hotmail) ADMINPLAY 2010.06.04 19074
81 네임서버에 SPF 적용하기(bind) l2zeo 2010.05.29 15320
80 qmail relay, 암호 인증, STARTTLS ADMINPLAY 2010.05.12 13861
79 해외(Hotmail 등)로 안정적인 메일발송방법 - Reverse DNS... ADMINPLAY 2010.03.10 14026
78 RBL 참조사이트 이용 및 스팸차단 설정 ADMINPLAY 2010.01.22 12224
77 qmail queue 서브디렉토리 복구 ADMINPLAY 2009.12.25 10300
76 Q메일서버 관리 1 ADMINPLAY 2009.12.25 11088
75 qmail 큐삭제 ADMINPLAY 2009.12.25 14531
74 리눅스 메일로그 분석 및 확인 ADMINPLAY 2009.12.23 13688
73 sendmail mqueue 에 쌓인 메일삭제 주기수정 ADMINPLAY 2009.12.14 15156
72 telnet을 이용한 SMTP 테스트 ADMINPLAY 2009.11.26 11956
71 qmail error (unable to lock directory /var/log/qmail/s... ADMINPLAY 2009.11.26 11257
70 폼메일 테스트 방법 ADMINPLAY 2009.11.26 11290
69 spamassassin 필터 설치하기 ADMINPLAY 2009.11.24 9293
68 Sendmail 계정 및 도메인생성 ADMINPLAY 2009.11.24 13322
» squirrelmail (다람쥐메일) 설치하기관리자 file ADMINPLAY 2009.11.24 11096
66 roundcube첨부파일 한글일때 깨지는 문제해결 ADMINPLAY 2009.11.01 12411
65 /var/spool/mail/에 저장된 메일 다른 메일로 보내기 ADMINPLAY 2009.11.01 9452
64 주요포탈업체 IP차단해제하기 ADMINPLAY 2009.11.01 11036
63 Sendmail 세부설정 ADMINPLAY 2009.10.20 9947
Board Pagination Prev 1 2 3 4 5 6 Next
/ 6

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234