티스토리 뷰

EN/Debian 6

Debian 6 MAIL Server Configure SSL

ServerWorld 2016.05.19 09:12

Debian 6 MAIL Server Configure SSL


Configure SSL

  Configure SSL settings in order to encrypt datas in connection. 



1. Create certificates first, check my blog.


2. Configure Postfix and Dovecot for SSL


root@mail:~# vi /etc/postfix/main.cf 


# add at the last line

smtpd_use_tls = yes

smtpd_tls_cert_file = /etc/ssl/certs/server.crt

smtpd_tls_key_file = /etc/ssl/certs/server.key

smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache 


root@mail:~# vi /etc/postfix/master.cf 


# line 17-18: uncomment

smtps       inet   n       -       n       -       -       smtpd

  -o smtpd_tls_wrappermode=yes




root@mail:~# vi /etc/dovecot/dovecot.conf 


# line 95: uncomment

ssl = yes


# line 100,101: uncomment and specify certificate

ssl_cert_file = /etc/ssl/certs/server.crt 

ssl_key_file = /etc/ssl/certs/server.key 


root@mail:~# /etc/init.d/postfix restart 

Stopping Postfix Mail Transport Agent: postfix.

Starting Postfix Mail Transport Agent: postfix.


root@mail:~# /etc/init.d/dovecot restart 

Restarting IMAP/POP3 mail server: dovecot.

저작자 표시 비영리 변경 금지
신고
댓글