問題
IMAP/POPサーバでSSLでアクセスできるように証明書の設定を行っているのですが
証明書を設定してrestartするとエラーが表示されております。
クライアントからの受信は可能なのですが気持ちわるいので
何か対処方法がお分かりの方がいればご助力いただければ幸いです。
Err
1service dovecot restart 2Stopping Dovecot Imap: [FAILED] 3Starting Dovecot Imap: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf 4doveconf: Warning: Obsolete setting in /etc/dovecot/conf.d/10-ssl.conf:17: ssl_cert_file has been replaced by ssl_cert = <file 5doveconf: Warning: Obsolete setting in /etc/dovecot/conf.d/10-ssl.conf:18: ssl_key_file has been replaced by ssl_key = <file 6 [ OK ]
config
1/etc/dovecot/conf.d/10-ssl.conf 2 3sslconf 4# SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt> 5# disable plain pop3 and imap, allowed are only pop3+TLS, pop3s, imap+TLS and imaps 6# plain imap and pop3 are still allowed for local connections 7ssl = yes 8 9# PEM encoded X.509 SSL/TLS certificate and private key. They're opened before 10# dropping root privileges, so keep the key file unreadable by anyone but 11# root. Included doc/mkcert.sh can be used to easily generate self-signed 12# certificate, just make sure to update the domains in dovecot-openssl.cnf 13# ssl_cert = </etc/pki/dovecot/certs/dovecot.pem 14# ssl_key = </etc/pki/dovecot/private/dovecot.pem 15 16ssl_cert_file = /etc/pki/tls/certs/crt.pem 17ssl_key_file = /etc/pki/tls/certs/crt.pem
/etc/dovecot/conf.d/10-master.conf # Internal user is used by unprivileged processes. It should be separate from # login user, so that login processes can't disturb other processes. #default_internal_user = dovecot service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } # Number of connections to handle before starting a new process. Typically # the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0 # is faster. <doc/wiki/LoginProcess.txt> #service_count = 1 # Number of processes to always keep waiting for more connections. #process_min_avail = 0 # If you set service_count=0, you probably need to grow this. #vsz_limit = $default_vsz_limit } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } }
試したこと
- crt.pemのアクセス権を644に変更
→変わらず
- 証明書のパスを以下に変更
ssl_cert_file = </etc/pki/tls/certs/crt.pem
ssl_key_file = </etc/pki/tls/certs/crt.pem
→FAILが表示されdovecotが起動できず
環境
Amazon Linux AMI release 2018.03
Dovecot 2.2.10
何故certとkeyに同じファイルを指定しているのですか?
返信ありがとうございます。
pemファイルなので、keyと証明書が同じファイルに入っていると認識しております
https://www.ecoop.net/memo/archives/guide-for-pem.html
なるほどー

回答2件
あなたの回答
tips
プレビュー