Skip to content

조회 수 11045 추천 수 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 웹메일에서 메일 발송시 php_network_getaddress: getaddr... ADMINPLAY 2009.06.04 9546
81 /etc/mail/submit.cf: line 0: cannot open: Permission d... ADMINPLAY 2009.06.04 9034
80 squirremail "알수 없는 사용자 로그인 에러 조치 사항" ADMINPLAY 2009.06.04 7992
79 qmail 설치시 궁금한점 ADMINPLAY 2009.06.04 8297
78 qmail 점검 사항 ADMINPLAY 2009.06.04 9990
77 kisa rbl 설정 ADMINPLAY 2009.06.04 8485
76 qmail queue 수동 삭제 ADMINPLAY 2009.06.04 9630
75 vpopmail 에서 각 바이너리 파일들의 용도 ADMINPLAY 2009.06.04 8771
74 qmail + vpopmail 사용환경에서의 procmail 설정 ADMINPLAY 2009.06.04 8972
73 qmail 구조도 ADMINPLAY 2009.06.04 7881
72 supervise: fatal: unable to acquire qmail-send/supervi... ADMINPLAY 2009.06.04 9837
71 courier-imap 설치(imap, pop3) ADMINPLAY 2009.06.04 8982
70 qmail vchkpw 인증 오류 대처 방안 ADMINPLAY 2009.06.04 9287
69 qmail 한글 홈페이지 FAQ ADMINPLAY 2009.06.04 8052
68 qmail설치 ADMINPLAY 2009.06.04 8848
67 메일 릴레이 허용 테스트 페이지 ADMINPLAY 2009.06.04 8454
66 메일 헤더 구성 요소 ADMINPLAY 2009.06.04 10015
65 mail 명령어 사용법 ADMINPLAY 2009.06.04 13367
64 간단한 메일 로그 분석 ADMINPLAY 2009.06.04 7835
63 /var/spool/mail/에 저장된 메일 다른 메일로 보내기 ADMINPLAY 2009.06.04 8737
Board Pagination Prev 1 2 3 4 5 6 Next
/ 6

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234