정보 보안을 향한 항해

dovecot 설치와 구성파일 설정 본문

카테고리 없음

dovecot 설치와 구성파일 설정

금홍자 2021. 10. 6. 11:01

dovecot 설치한다

# yum -y install dovecot

 

 

dovecot 설정파일 수정

# nano -c /etc/dovecot/dovecot.conf

 

20줄 주석제거

 

78줄

!include conf.d/*.conf

http web server 와 비슷하게 운영됨을 확인한다.

# nano -c /etc/dovecot/conf.d/10-mail.conf 

24 줄 주석 제거

auth 인증 파일

 

nano -c /etc/dovecot/conf.d/10-auth.conf 

9줄 주석삭제후 no 로 변경

 

 

 

 

97줄

uth_mechanisms = plain

 

 

설정파일

# nano -c /etc/dovecot/conf.d/10-master.conf

82 줄 주석 삭제

83 주석 삭제

 

서비스 시작과 runlevel 조정

 

 

 

 

[root@centos1 new]# yum -y install dovecot
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
 * epel: d2lzkl7pfhq30w.cloudfront.net
Resolving Dependencies
--> Running transaction check
---> Package dovecot.x86_64 1:2.0.9-22.el6_10.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch          Version                      Repository      Size
================================================================================
Installing:
 dovecot        x86_64        1:2.0.9-22.el6_10.1          updates        1.9 M

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 1.9 M
Installed size: 5.7 M
Downloading Packages:
dovecot-2.0.9-22.el6_10.1.x86_64.rpm                     | 1.9 MB     00:02     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:dovecot-2.0.9-22.el6_10.1.x86_64                           1/1 
  Verifying  : 1:dovecot-2.0.9-22.el6_10.1.x86_64                           1/1 

Installed:
  dovecot.x86_64 1:2.0.9-22.el6_10.1                                            

Complete!
[root@centos1 new]# clear

[root@centos1 new]# nano -c /etc/dovecot/dovecot.conf 
[root@centos1 new]# getenforce
Permissive
[root@centos1 new]# chkconfig --level 35 dovecat on ; chkconfig --list | grep dovecat
error reading information on service dovecat: No such file or directory
[root@centos1 new]# chkconfig --level 35 dovecot on ; chkconfig --list | grep dovecot
dovecot        	0:off	1:off	2:off	3:on	4:off	5:on	6:off
[root@centos1 new]# service dovecot start
Starting Dovecot Imap:                                     [  OK  ]
[root@centos1 new]# netstat -nltp | grep dovecot
tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LISTEN      4753/dovecot        
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LISTEN      4753/dovecot        
tcp        0      0 0.0.0.0:995                 0.0.0.0:*                   LISTEN      4753/dovecot        
tcp        0      0 0.0.0.0:110                 0.0.0.0:*                   LISTEN      4753/dovecot        
tcp        0      0 :::143                      :::*                        LISTEN      4753/dovecot        
tcp        0      0 :::993                      :::*                        LISTEN      4753/dovecot        
tcp        0      0 :::995                      :::*                        LISTEN      4753/dovecot        
tcp        0      0 :::110                      :::*                        LISTEN      4753/dovecot        
[root@centos1 new]#