Dovecot
- POP3, IMAP 프로토콜을 지원하는며 TLS/SSL을 지원하는 서비스 데몬이다.
참고 사이트 : http://www.dovecot.org/
-------------------------------------------------------------------
1. dovecot 설치
[root@bban2 ~]# rpm -qa | grep dovecot
[root@bban2 ~]# yum install dovecot
- 중략
Installed: dovecot.i386 0:1.0.7-2.el5
Dependency Installed: mysql.i386 0:5.0.45-7.el5
Complete!
[root@bban2 ~]# rpm -qa | grep dovecot
dovecot-1.0.7-2.el5
[root@bban2 ~]# rpm -qi dovecot
Name : dovecot Relocations: (not relocatable)
Version : 1.0.7 Vendor: CentOS
Release : 2.el5 Build Date:
Install Date: Build Host: builder16.centos.org
Group : System Environment/Daemons Source RPM: dovecot-1.0.7-2.el5.src.rpm
Size : 3728454 License: LGPL
Signature : DSA/SHA1, 2008년 06월 15일 (일) 오전 08시 30분 33초, Key ID a8a447dce8562897
URL : http://www.dovecot.org/
Summary : Dovecot 보안 imap 서버
Description :
Dovecot is an IMAP server for Linux/UNIX-like systems, written with security
primarily in mind. It also contains a small POP3 server. It supports mail
in either of maildir or mbox formats.
[root@bban2 ~]#
-------------------------------------------------------------------
2. 환경설정 파일 설정
[root@bban2 ~]# vi /etc/dovecot.conf
18 # Protocols we want to be serving: imap imaps pop3 pop3s
19 # If you only want to use dovecot-auth, you can set this to "none".
20 #protocols = imap imaps pop3 pop3s
21 protocols = imap pop3
23 # IP or host address where to listen in for connections. It's not currently
24 # possible to specify multiple addresses. "*" listens in all IPv4 interfaces.
25 # "[::]" listens in all IPv6 interfaces, but may also listen in all IPv4
26 # interfaces depending on the operating system.
27 #
28 # If you want to specify ports for each service, you will need to configure
29 # these settings inside the protocol imap/pop3 { ... } section, so you can
30 # specify different ports for IMAP/POP3. For example:
31 # protocol imap {
32 # listen = *:10143
33 # ssl_listen = *:10943
34 # ..
35 # }
36 # protocol pop3 {
37 # listen = *:10100
38 # ..
39 # }
40 #listen = [::]
41 listen = *
136 # User to use for the login process. Create a completely new user for this,
137 # and don't use it anywhere else. The user must also belong to a group where
138 # only it has access, it's used to control access for authentication process.
139 # Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt>
140 #login_user = dovecot
141 login_user = dovecot
206 # mail_location = maildir:~/Maildir
207 # mail_location = mbox:~/mail:INBOX=/var/mail/%u
208 mail_location = mbox:~/mail:INBOX=/var/mail/%u - 사용자 별로 mbox 사용
209 # mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
508 protocol imap {
509 # Login executable location.
510 #login_executable = /usr/libexec/dovecot/imap-login
511 login_executable = /usr/libexec/dovecot/imap-login - imap-login 데몬 실행 파일 위치를 지정한다.
523 #mail_executable = /usr/libexec/dovecot/imap
524 mail_executable = /usr/libexec/dovecot/imap
575 protocol pop3 {
576 # Login executable location.
577 #login_executable = /usr/libexec/dovecot/pop3-login
578 login_executable = /usr/libexec/dovecot/pop3-login - pop3-login 데몬 실행 파일 위치를 지정한다.
580 # POP3 executable location. See IMAP's mail_executable above for examples
581 # how this could be changed.
582 #mail_executable = /usr/libexec/dovecot/pop3
583 mail_executable = /usr/libexec/dovecot/pop3
684 # Executable location
685 #auth_executable = /usr/libexec/dovecot/dovecot-auth
686 auth_executable = /usr/libexec/dovecot/dovecot-auth - 인증 실행
[root@bban2 ~]# service dovecot start
Dovecot Imap (을)를 시작 중: [ OK ]
[root@bban2 ~]# netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN ---pop3
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN ---imap
-------------------------------------------------------------------
3. devocot 확인
-------------------------------------------------------------------
3-1. 프로그램 -> 인터넷 -> 전자메일 선택
-------------------------------------------------------------------
3-2. 에볼루션 설정 - POP3, IMAP 형식 중 POP3 형식으로 설정해본다.
그리고 메일 보내기 해보고 보내기 받기 하면 메일이 온다. 이때 해당 사용자의 패스워드를 입력한다.
메일 주고 받기가 성공했다면 guest 사용자에게 메일을 보내본다.
[root@bban2 ~]# mail guest@bban2.co.kr
Subject: test mail
Hi guest.
I'm admin user.
Nice to meet you
.
Cc:
[root@bban2 ~]# mailq
/var/spool/mqueue is empty
Total requests: 0
메일이 온 것을 확인할 수 있다.
'Linux Server 구축 > 3-1. Mail Server' 카테고리의 다른 글
Mail Server - aliases & virtusertable & .forward & etc (0) | 2008.12.22 |
---|---|
Webmail - Squirrelmail (0) | 2008.12.19 |
사설 IP 내에서 메일 전송 (0) | 2008.12.19 |
Mail Server (0) | 2008.12.19 |