Instalace Mail serveru Postfix, Dovecot pro POP3 a IMAP server, a DKIM na CentOS 6.X.
shell# yum install postfix.x86_64 dovecot.x86_64 opendkim.x86_64
# Postfix config: main.cf append_dot_mydomain = no readme_directory = no # SASL CONF smtpd_sasl_auth_enable = yes smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination # tls config smtpd_tls_cert_file = /etc/pki/tls/certs/www.isn.cz.crt smtpd_tls_key_file = /etc/pki/tls/private/www.isn.cz.key smtpd_use_tls = yes smtpd_tls_session_cache_database = btree:$data_directory/smtpd_scache smtp_tls_session_cache_database = btree:$data_directory/smtp_scache # network settings myhostname = mail.isn.cz alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = mail.isn.cz, localhost.localdomain, localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all # dkim milter_protocol = 2 milter_default_action = accept smtpd_milters = inet:8891@localhost non_smtpd_milters = $smtpd_milters
# Postfix smtp-auth unix_listener /var/spool/postfix/private/auth { mode = 0666 }
shell# mkdir /etc/opendkim/keys/isn.cz shell# opendkim-genkey -D /etc/opendkim/keys/isn.cz/ -d isn.cz -s default shell# chown -R root:opendkim /etc/opendkim/keys/isn.cz shell# chmod 640 /etc/opendkim/keys/isn.cz/default.private shell# chmod 644 /etc/opendkim/keys/isn.cz/default.txt