티스토리 뷰

EN/Fedora 18

Feodra 18 MAIL Server Configure SSL

ServerWorld 2016.04.22 21:06

Feodra 18 MAIL Server Configure SSL


Configure SSL

 

Configure SSL settings in order to encrypt datas in connection.



1. Create certificates first, see here.


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/pki/tls/certs/server.crt

smtpd_tls_key_file = /etc/pki/tls/certs/server.key

smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_scache


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


# line 22-24: uncomment

smtps       inet   n       -       n       -       -       smtpd

  -o syslog_name=postfix/smtps

  -o smtpd_tls_wrappermode=yes


[root@mail ~]# vi /etc/dovecot/conf.d/10-ssl.conf


# line 8: change

ssl = yes


# line 14,15: uncomment and specify certificate

ssl_cert = </etc/pki/tls/certs/server.crt

ssl_key = </etc/pki/tls/certs/server.key


[root@mail ~]# systemctl restart postfix.service 

[root@mail ~]# systemctl restart dovecot.service 

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