| はじめての自宅サーバ構築 - Fedora/CentOS - | Last Update | 2008/07/25 | |
| It opened to 2004/09/19. 当サイトはFedora9で運用しています |
Visitors Pageviews Today(IP/PV) |
3,374,122 12,762,148 1,280/8,770 |
サーバ証明書とサーバ秘密鍵をpostfixで使用するため、シンボリックリンクを貼る Webサーバ証明書にシンボリックリンクを貼る # ln -s /etc/httpd/conf/server.crt /etc/postfix/server.crt Webサーバ秘密鍵にシンボリックリンクを貼る # ln -s /etc/httpd/conf/server.key /etc/postfix/server.key postfix設定ファイル編集 # vi /etc/postfix/main.cf 最終行に以下を追加する smtpd_tls_cert_file = /etc/postfix/server.crt smtpd_tls_key_file = /etc/postfix/server.key smtpd_use_tls = yes 【FedoraCore1 / FedoraCore2 / FedoraCore3 の場合】 smtpd_tls_session_cache_database = sdbm:/etc/postfix/smtpd_scache 【FedoraCore4 / FedoraCore5 / FedoraCore6 / Fedora7 / Fedora8 / Fedora9 / CentOS4 / CentOS5 の場合】 smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_scache postfix設定ファイル編集 # vi /etc/postfix/master.cf # # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master"). # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - n - - smtpd #submission inet n - n - - smtpd # -o smtpd_enforce_tls=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject 先頭の"#"を外す(有効にする) smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject ※:「permit_sasl_authenticated,reject」の意味は、SASL認証したクライアントだけに中継を許可する #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup |
dovecot設定ファイル編集 # vi /etc/dovecot.conf # Disable SSL/TLS support. 先頭の"#"を外す(有効にする) ssl_disable = no # PEM encoded X.509 SSL/TLS certificate and private key. They're opened before # dropping root privileges, so keep the key file unreadable by anyone but # root. Included doc/mkcert.sh can be used to easily generate self-signed # certificate, just make sure to update the domains in dovecot-openssl.cnf 先頭の"#"を外しWebサーバ証明書を指定する ssl_cert_file = /etc/postfix/server.crt 先頭の"#"を外しWebサーバ秘密鍵を指定する ssl_key_file = /etc/postfix/server.key |
postfixを再起動する # /etc/rc.d/init.d/postfix restart Shutting down postfix: [ OK ] Starting postfix: [ OK ] dovecotを再起動する # /etc/rc.d/init.d/dovecot restart Dovecot Imapを停止中: [ OK ] Dovecot Imap を起動中: [ OK ] |

