CAFE

Linux

dovecot설치

작성자r00t|작성시간10.06.16|조회수161 목록 댓글 0

 

1.dovecot 설치

[root@linux ~] yum install dovecot

 

2. dovecot config 수정

[root@linux ~] vi  /etc/dovecot.conf

수정해야 할 부분은 딱 두 군데 뿐이다. (protocols, listen)

다음에 표시된 빨간색 protocols, listen을 참고 삼아서 똑 같이 수정한다.

# Protocols we want to be serving: imap imaps pop3 pop3s
# If you only want to use dovecot-auth, you can set this to "none".
protocols = imap imaps pop3 pop3s

# IP or host address where to listen in for connections. It's not currently
# possible to specify multiple addresses. "*" listens in all IPv4 interfaces.
# "[::]" listens in all IPv6 interfaces, but may also listen in all IPv4
# interfaces depending on the operating system.
#
# If you want to specify ports for each service, you will need to configure
# these settings inside the protocol imap/pop3 { ... } section, so you can
# specify different ports for IMAP/POP3. For example:
#   protocol imap {
#     listen = *:10143
#     ssl_listen = *:10943
#     ..
#   }
#   protocol pop3 {
#     listen = *:10100
#     ..
#   }
listen = [::]

 

3. dovecot 서비스 재시작

[root@linux ~] service dovecot restart
Stopping Dovecot Imap:                                  [  OK  ]
Starting Dovecot Imap:                                    [  OK  ]

 

4. dovecot imap4 서비스 테스트

[root@linux mail]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK Dovecot ready.

 

5. dovecot pop3 서비스 테스트

[root@linux mail]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Dovecot ready.


※ 만약 localhost를 제외한 외부에서 sendmail 혹은 dovecot(imap, pop3)에 텔넷 연결이 되지 않을 경우

    다음 세 가지 사항을 점검해 볼 필요가 있다.

    1. iptables            25번, 110번, 143번 포트가 방화벽에서 허용되고 있는지 유/무

    2. netstat -avp     LISTENINIG 포트 체크

    3. ps -ef | grep sendmail        혹은   ps -ef | grep dovecot

 

 ※ 페도라 버전에서 SMTP 인증을 사용하기 위해서는 saslauthd 데몬이 실행되어 있어야만 한다.

[root@linux mail]# service saslauthd start

 

 

다음검색
현재 게시글 추가 기능 열기

댓글

댓글 리스트
맨위로

카페 검색

카페 검색어 입력폼