Search results The results is only based on Apollo89.com
1 posts are related to '다람쥐메일'
  1. 2007/06/30 메일설정(sendmail, imap, squirrelmail-다람쥐메일, apache설정,한글설정)

오늘 마음먹고 미뤄왔던 메일설정을 했다ㅋ

처음부터 시작해서 다는데 2시간 반 정도 걸린듯..ㅡㅡ;;

간만에 해봐서 기억이 가물가물ㅡㅡ;

여기저기 인터넷 뒤져서 겨우 했다..ㅋ

간단히 정리하면..

Mail 설정
1. sendmail, imap 확인 (rpm으로 설치..ㅡㅡ;)
# rpm -qa sendmail
# rpm -qa imap

2. imap 활성화
# vi /etc/xinetd.d/imap      -> disable 되어있는거 활성화 시키고
# /etc/init.d/xinetd restart  -> 리스타트
# netstat -npl |grep 143     -> 포트 열렸는지 확인

3. Virtusertable 설정
# vi /etc/mail/virtusertable
# makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable

4. local-host-names 설정
# vi /etc/mail/local-host-names

5. DNS 확인 (호스팅업체에 신청해둬서 따로 설정 안했다ㅋ)
# nslookup
> server ns.aaa.com
Default server: ns.aaa.com
Address: xxx.xxx.xxx.xxx#zz
> set q=mx
> xxx.com
Server:         ns.aaa.com
Address:      xxx.xxx.xxx.xxx#zz

xxx.com      mail exchanger = 10 mail.xxx.com.

6. sendmail.cf 생성
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
# /etc/rc.d/init.d/sendmail restart -> 재시작
# netstat -npl -> 포트확인

7. outlook으로 mail이 잘 설정 되었는지 확인


다람쥐 메일 설정(무료웹메일)
1. 다운
http://www.squirrelmail.org/download.php
squirrelmail-1.4.6-1.noarch.rpm
squirrelmail-i18n-1.4.6-1.noarch.rpm

2. rpm설치
# rpm -Uvh --nodeps --force squirrelmail-*.noarch.rpm

3. 권한 설정
# chown nobody -R /usr/share/squirrelmail/
# chown nobody -R /etc/squirrelmail/config.php
# chown nobody.nobody -R /var/lib/squirrelmail/prefs/
# chown nobody.nobody -R /var/spool/squirrelmail/attach/
# chmod 777 /var/spool/squirrelmail/attach/
-불필요한 파일 제거
rm -f /etc/cron.daily/squirrelmail.cron
rm -f /etc/httpd/conf.d/

4. 아파치 설정
# vi httpd.conf
Alias /mail "/usr/share/squirrelmail"
<Directory "/webmail">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

5. php.ini 파일 수정
register_globals = On
session.use_cookies = 1
file_uploads = On
sendmail_path = /usr/sbin/sendmail

6. 한글 설정.
/usr/share/squirrelmail/config/config.php
27 $squirrelmail_default_language = 'euc-KR';
28 $default_charset       = 'euc-KR';
메일확인

크리에이티브 커먼즈 라이센스
Creative Commons License
2007/06/30 19:13 2007/06/30 19:13


Total: 213282 (Today: 73, Yesterday: 81)

RSS
읽고 있는 책