#Postfix設定ファイル編集。インストールが必要なら yum -y install postfix
[root@ufuso ~]# vi /etc/postfix/main.cf
# INTERNET HOST AND DOMAIN NAMES
#…
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld #追加(自FQDN名を指定) myhostname = ufuso.dip.jp
# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# …
#mydomain = domain.tld #追加(自ドメイン名を指定) mydomain = ufuso.dip.jp
#dovecot.confの設定
[root@ufuso ~]# vi /etc/dovecot/dovecot.conf
# A comma separated list of IPs or hosts where to listen in for connections.
# “*” listens in all IPv4 interfaces, “::” listens in all IPv6 interfaces.
# If you want to specify non-default ports or anything more complex,
# edit conf.d/master.conf.
#listen = *, :: #追記。IPv6を無効化 listen = *
#10-auth.confの設定
[root@ufuso ~]# vi /etc/dovecot/conf.d/10-auth.conf
# Disable LOGIN command and all other plaintext authentications unless
# SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
# matches the local IP (ie. you’re connecting from the same computer), the
# connection is considered secure and plaintext authentication is allowed.
# See also ssl=required setting.
#disable_plaintext_auth = yes #追記。プレーンテキスト認証も許可 disable_plaintext_auth = no
# Space separated list of wanted authentication mechanisms:
# plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi otp skey
# gss-spnego
# NOTE: See also disable_plaintext_auth setting. #ログイン認証も許可
auth_mechanisms = plain login
#10-ssl.confの設定(sslの設定がまだならこちら)
[root@ufuso ~]# vi /etc/dovecot/conf.d/10-ssl.conf
##…
# SSL/TLS support: yes, no, required.
# disable plain pop3 and imap, allowed are only pop3+TLS, pop3s, imap+TLS and imaps
# plain imap and pop3 are still allowed for local connections #行頭に#を付加 #ssl = required #sslを許可 ssl = yes
…
…
# 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 #行頭に#を付加 #ssl_cert = </etc/pki/dovecot/certs/dovecot.pem #行頭に#を付加 #ssl_key = </etc/pki/dovecot/private/dovecot.pem #server.crtの場所を明示 ssl_cert =</etc/pki/tls/certs/server.crt #server.keyの場所を明示 ssl_key = </etc/pki/tls/certs/server.key
#10-mail.confの設定
[root@ufuso ~]# vi /etc/dovecot/conf.d/10-mail.conf
# See doc/wiki/Variables.txt for full list. Some examples:
#
# mail_location = maildir:~/Maildir
# mail_location = mbox:~/mail:INBOX=/var/mail/%u
# mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
#
#
#
#mail_location = #メールボックス形式をMaildir形式に mail_location = maildir:~/Maildir