Subscribe:

2010/11/16

SMTPS,IMAPS,POP3Sをインストール

openssl 0.9.8e
# cd /etc/pki/tls/certs
# make sendmail.pem
Country Name (2 letter code) [GB]:JP
State or Province Name (full name) [Berkshire]:Tokyo
Locality Name (eg, city) [Newbury]:Shinzyuku
Organization Name (eg, company) [My Company Ltd]:Sakura
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:mail.calltella.com
Email Address []:calltella@calltella.com

# vi /etc/mail/sendmail.mc
DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl

define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
define(`confCACERT', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confSERVER_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confSERVER_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl

# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
# /etc/init.d/sendmail restart

# vi /etc/dovecot.conf
protocols = imaps pop3s
ssl_disable = no
ssl_cert_file = /etc/pki/tls/certs/sendmail.pem
ssl_key_file = /etc/pki/tls/certs/sendmail.pem

FireWallにてSMTPS(465),IMAPS(993),POP3S(995)を開ける。

参考にさせていただいたサイト:一途なベン

0 件のコメント: